Hi, I need help. How to get the ATR value for yesterday's specific H1 bars of 21:00, 22:00, 23:00 only (I need the correct coding) ? Of course, if the current time now is 23:30, it should not refer to "yesterday", but yet refer to current day's past H1 bars of 21:00, 22:00, 23:00.
Would it be possible to get the ATR codes in just one line of each bar such as :-
。int shift2100=???
。int shift2200=???
。int shift2300=???
。double atr2100=iATR(NULL,TimeFrame,Period,shift2100);
。double atr2200=iATR(NULL,TimeFrame,Period,shift2200);
。double atr2300=iATR(NULL,TimeFrame,Period,shift2300);
Thanks
Would it be possible to get the ATR codes in just one line of each bar such as :-
。int shift2100=???
。int shift2200=???
。int shift2300=???
。double atr2100=iATR(NULL,TimeFrame,Period,shift2100);
。double atr2200=iATR(NULL,TimeFrame,Period,shift2200);
。double atr2300=iATR(NULL,TimeFrame,Period,shift2300);
Thanks