Market properties highest price not working on backtest
-
I have a EA that work son M1 chart for USDJPY. One of the conditions uses Market properties Highest price Candles period to get the highest price for candles 2 to 5. Yet the ea is doing the calculation using candles 3 to 6.
I suspect this is a backtesting issue but keen to know for certain before sending it live.
One option is to use Delay for 1 second but this feature doesn't allow backtesting to work.
Any ideas / suggestions? -
strange, can you show your condition block?
-

-
I understand of course that current candle = 0
-
looks good
-
can you share your project, i''l test it too
-
USDJPY sell-2.mq4
USDJPY sell-2.mq4 -
It's block 26. I am getting too many trades and compared to my analysis data the EA is often not calcualting this block as it should be.
-
Thank you for looking at it!!
-
@Tulefi the file doesn't work and cannot load also. Please share the link to your project as below
click on the link and copy/past the page of project
-
Sorry on it now.
-
shared/t7rwJJBfb
-
Remove "once per bar" from the top and place it just above "sell now"
Check what happens and come back -
also the spread filter
-
in any case you should test on M5 or M15 , since you are looking for values like + 19 pips on M1 (M1 candle on usdjpy is worth 3 or 4 pips, very small)
-
Trading USDJPY. Problem is still happening. Do you know if it is possible to force the EA to wait to do the calcs when say a min of one tick has happened in the current period? That way I can have confidence the EA will use the right data when live.
-
@Tulefi said in Market properties highest price not working on backtest:
Trading USDJPY. Problem is still happening. Do you know if it is possible to force the EA to wait to do the calcs when say a min of one tick has happened in the current period? That way I can have confidence the EA will use the right data when live.
I don't know, and I don't see the use of it. However your project works fine I don't know where is the problem. This is a test on M15. It's working

-
Yes I think this is down to the backtesting. Thanks for your help, very generous and appreciated.
-
