ChartHandle Multi Time Frame Indicator informations on Mq4

1
Good evening traders. In tte last days I struggled a lot trying to understand of big mess of mq4.
Suppose that I have an indicator and I would like to read its previus (shift=1) values every time a m1 candle close from m1 timeframe itself, m5 m15 and m30.
This is done by iBarShift(), but as long as I go to backtesting an EA this function does not work anymore.
So a workaround that I tried was to read the value of the indicator with shift equal to 1 for m1 at the end of each m1 candle and the actual value of m5 m15 m30 (shift = 0) for the other timeframes of the same indicator, (Exept for the start of a new candle which is a multiple of 5 in that case also these shifts become = 1).

However with this approach (which maybe desn't work yet) I'm forced to read the data at the start of every new candle and not every market tick.

I wonder if exists a sort of smart workaround to do that.

Thanks
These users thanked the author hernandez for the post:
Chickenspicy


Who is online

Users browsing this forum: No registered users and 28 guests