Et si on souhaite avoir les actions qui ont franchies le résistance dynamique en journalier ?
monthlySignal = 0
weeklySignal = 0
TIMEFRAME(monthly)
Trend, ignored, Expansion, ignored, ignored = CALL “ExtraTrend”[0, 0, 0, 0, 0, 0](close)
inForce = close > Trend
if Trend <> Expansion and inForce then
monthlySignal = 1
endif
TIMEFRAME(weekly)
Trend, ignored, Expansion, ignored, ignored = CALL “ExtraTrend”[0, 0, 0, 0, 0, 0](close)
inForce = close > Trend
if Trend <> Expansion and inForce and monthlySignal then
weeklySignal = 1
endif
TIMEFRAME(daily)
okvol = highest[20](close*volume)>300000
Trend, ignored, ignored, ReDyn, ignored = CALL “ExtraTrend”[0, 1, 0, 0, 0, 0](close)
inForce = Trend <> ReDyn and close > Trend
signal = monthlySignal and weeklySignal and inForce
if signal then
distance = (close / ReDyn) * 100
endif
SCREENER[signal and okvol](distance as “%Distance”)