Dear experienced traders,
Strategy tester will close all positions at last.
Is there any setting could let it do not close all positions at last?
Thank you in advance and best wishes,
Sky
no
you need to set the EA to stop trading before the end
no
you need to set the EA to stop trading before the end
Thank you, Jean.
Could you kindly tell me where to set it?
Thank you, Jean.
Could you kindly tell me where to set it?
well you need to set a variable for the datetime that is the opening of the last trade and stop trading just before that date
something like:
input datetime dateLastTrade = D'2020.01.01 00:00'; void OnTick() { if (TimeCurrent() < dateLastTrade) { trade } }
Jeff
well you need to set a variable for the datetime that is the opening of the last trade and stop trading just before that date
something like:
Jeff
Thank you, Jean
So, the only way is try to find out the final open date, and stop before that, right?
Not final, as in last, but earliest non-closed order's datetime.
Not final, as in last, but earliest non-closed order's datetime.
earliest non-closed order's datetime.
Thank you, Wiliam.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear experienced traders,
Strategy tester will close all positions at last.
Is there any setting could let it do not close all positions at last?
Thank you in advance and best wishes,
Sky