Buon giorno chiedevo due screener con i seguenti parametri:
a) screener su grafici daily che estragga i titoli che sono su un pivot mese S2 così da monitorare eventuali entrate buy su azioni
b ) screener su grafici weekly che estragga i titoli che sono su un pivot annuale S2 così da monitorare eventuali entrate buy su azioni
grazie mille
a)screener su grafici daily che estragga i titoli che sono su un pivot mese S2 così da monitorare eventuali entrate buy su azioni
// Threshold defines the maximum percentage distance to allow detection
// For example 1 means 1% distance from the S2 level
threshold = 1
// --- Higher Timeframe Calculation ---
TIMEFRAME(Monthly)
// We get the High, Low and Close of the previous month
prevHigh = High[1]
prevLow = Low[1]
prevClose = Close[1]
// Pivot Point Calculation (Standard)
PP = (prevHigh + prevLow + prevClose) / 3
// S2 Support Calculation
S2Monthly = PP - (prevHigh - prevLow)
// --- Execution Timeframe ---
TIMEFRAME(Daily)
// Calculate absolute distance in percentage
distancePercent = ABS(Close - S2Monthly) / Close * 100
// Condition: Price is within the threshold distance
condition = distancePercent <= threshold
//return PP, S2Monthly coloured("red")
SCREENER[condition](distancePercent AS "Dist %")
b) screener su grafici weekly che estragga i titoli che sono su un pivot annuale S2 così da monitorare eventuali entrate buy su azioni
// Threshold defines the maximum percentage distance to allow detection
// Usually weekly/yearly levels might need a slightly larger threshold
threshold = 2
// --- Higher Timeframe Calculation ---
TIMEFRAME(Yearly)
// We get the High, Low and Close of the previous year
prevHigh = High[1]
prevLow = Low[1]
prevClose = Close[1]
// Pivot Point Calculation (Standard)
PP = (prevHigh + prevLow + prevClose) / 3
// S2 Support Calculation
S2Yearly = PP - (prevHigh - prevLow)
// --- Execution Timeframe ---
TIMEFRAME(Weekly)
// Calculate absolute distance in percentage
distancePercent = ABS(Close - S2Yearly) / Close * 100
// Condition: Price is within the threshold distance
condition = distancePercent <= threshold
SCREENER[condition](distancePercent AS "Dist %")