Hi!
Would love if someone could help me code a screener using this indicator:
Heikin Ashi smoothed with signals
Candle going from red to green.
and also if possible to code a screener showing when going from red to green in BOTH daily and weekly at same time
>> Please update your country flag in your profile. Thank you 🙂 <<
Give a try to this screener, it should detect if the Heikin Ashi smooth go from red to green on both timeframes (daily and weekly).
SmoothPeriod=2
period=5
timeframe(weekly)
IF BarIndex=0 THEN
wxClose = (open+high+low+close)/4
wxOpen = open
ELSE
wxClose = (open+high+low+close)/4
wxOpen = (wxOpen[1]+wxClose[1])/2
endif
if barindex>=(period+SmoothPeriod) then
wAvOpen=exponentialAverage[SmoothPeriod](wxOpen)
wAvclose=exponentialAverage[SmoothPeriod](wxClose)
endif
weeklybull = wavclose>wavopen and wavclose[1]<wavopen[1]
timeframe(daily)
// ciclo normal
IF BarIndex=0 THEN
xClose = (open+high+low+close)/4
xOpen = open
ELSE
xClose = (open+high+low+close)/4
xOpen = (xOpen[1]+xClose[1])/2
endif
if barindex>=(period+SmoothPeriod) then
AvOpen=exponentialAverage[SmoothPeriod](xOpen)
Avclose=exponentialAverage[SmoothPeriod](xClose)
endif
dailybull = avclose>avopen and avclose[1]<avopen[1]
up = dailybull and weeklybull
screener[up]
updated countryflag, Thank you Nicolas!
Can i also ask for same screener adding monthly as well? monthly+weekly+daily going green from red using the indicator?
Big thank you!