you must post your code a problem is not been see so.
This is the same problem I'm having - any solution to this?
have u got test in code to "only" consider trade "if" a new day?
same exact idea as used in only do work if new bar...
EA called for "all" data ticks making up any timeframe default chart is on - u must decide top of start() if wanna do work or return(0);
IF u not have this logic, must put in.
IF still not work - like Heino say - post code - way to hard talki talki - show code
Best
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm trying to backtest EAs and have the following problem:
I want to backtest them on Daily candles, so I'm setting "Daily" period in the tester window. I even put PERIOD_D1 in my code (in iClose, iOpen, etc.).
But when running backtester it shows it makes trades intradaily instead of daily. Why?
In the "Results" window I can see trades made at 00:00 then 00:20, then 00:40 then 11:20, etc... I want only my EAs to trade at the end of the day - what should I do?