Attachment Time in trade.png added
these strategies will not work
what precision are you using - 1M should be OK, but it seems that this is only selected TF only
and info about that your trade is closing on the same bar is not an issue - its only information that with selected TF only you will not know, if your SL or TP was hitted first
This is based on a 4H timeframe and I most definitely DO NOT want a SL of 2 pips. With a stop loss of 2 pips, this is why the trades are closing on the same bar. For some reason, no matter what I set the weighted fitness criteria to, I have the issue that the optimiser is causing these silly trades and accepting broken strategies.
Attachment TradesGreaterThanSameBar.java added
This also won't work if the Precision is set to 1 minute tick data simulation, only if it's set to Selected Timeframe and I need help solving this too.
Thanks :)
Status changed from New to Fixed
the zero-duration trades are not a problem when you are testing with SelectedTF precision. It just means the trade was opened and closed in the same bar.
But in case of H4 the trade could have been opened for example for 3 hours. The time in trade can't be calculated properly when using this precision as backtest engine is given O,H,L,C prices with the same time for each bar.
I am closing this task.
Best regards,
Tomas