Hi guys!
I’m coming crazy with this… Please, look at the image below (attached) and tell me WHY May 11th is missed with this simple code:
if intradaybarindex = 0 then
maximo = undefined
minimo = undefined
endif
IF time = 075900 then
maximo = dhigh(0)
minimo = dlow(0)
endif
return maximo coloured (255,0,0) as "Máximo", minimo coloured (0,255,0) as "Mínimo"
Any help will be much appreciated, thank in advance!
[FIXED]
Grrrhh!! Maybe something wrong with 07:59:00 bar in 1m timeframe… Is fixed giving it a few bars to calculate it, like this:
IF time >= 074600 and time <= 075900 then
Cheers!
Do the bar exist at least?
Bar giving problem was a “-” bar same high, low, open and close, and bar before (07:58:00) didn’t exist already.
Thanks 😉