Did you use Tick entry =true?tanaka akiko, I have bt many ea of your, just find that when ea close orders sometime it open a new order or may be 2 different orders at the same time it close old order...why...or bug... in your last new template...
'Ticky Entry = False' also 'Reverse Entry = False'Did you use Tick entry =true?
If yes, after closed order, next order is placed.
OK, can you upload EA and set file ? I will check it.'Ticky Entry = False' also 'Reverse Entry = False'
OK, can you upload EA and set file ? I will check it.
tanaka akiko, I have bt many ea of your, just find that when ea close orders sometime it open a new order or may be 2 different orders at the same time it close old order...why...or bug... in your last new template...
Thank you so much Tanaka. I'll try asOK, I did backtest with your set file.
Everything is OK.
Let me explain.
You use Grid and risk%.
So initial lot size =0.2 (start)
Grid lot size X 2 (multi)----- I changed multiple= 2 to understand easily.
After basket close, next lot size is increased based on your account balance ( risk 2 %)
View attachment 154065
OK, I did backtest with your set file.
Everything is OK.
Let me explain.
You use Grid and risk%.
So initial lot size =0.2 (start)
Grid lot size X 2 (multi)----- I changed multiple= 2 to understand easily.
After basket close, next lot size is increased based on your account balance ( risk 2 %)
View attachment 154065
I'll try the new one. Thank you so much.OK, I confirmed the problem as your backtest data.
When Grid order was closed with basket profit together, at the same time . next grid is placed and it remained.
It was because of timing. That is the reason.
I have changed code and now looks OK.
Please use the attached file.![]()
Tick data BT shows constant loss.test there![]()
thanks. I'm testing all the EA's you shared