Hi,
I'm trying to write an EA that uses data from the higher TF. I'm getting slightly different data fed into the calculations for the same code in a custom indicator as in the EA.
In the Custom Indicator the OHLC for the higher TF (Daily): OHLC:1.3746;1.3758;1.3629;1.3663
In the EA the OHLC for the higher TF (Daily): , OHLC:1.3746;1.3746;1.3727;1.3727
Does anyone know why? I've spent weeks on this... I can't figure it out? Is it because the EA is looking at things from the open and don't know about changes to data in the HTF?
Thanks
Kim
I'm trying to write an EA that uses data from the higher TF. I'm getting slightly different data fed into the calculations for the same code in a custom indicator as in the EA.
In the Custom Indicator the OHLC for the higher TF (Daily): OHLC:1.3746;1.3758;1.3629;1.3663
In the EA the OHLC for the higher TF (Daily): , OHLC:1.3746;1.3746;1.3727;1.3727
Does anyone know why? I've spent weeks on this... I can't figure it out? Is it because the EA is looking at things from the open and don't know about changes to data in the HTF?
Thanks
Kim