Download MetaTrader 5

Expert losses at end of testing

To add comments, please log in or register
Tony Chavez
205
Tony Chavez 2017.01.10 09:45 

If you use an Expert does it automatically liquidate you position if you end it? Or do you keep the last position until you close them manually?

EX: If the Expert Buy 1 lot of USDJPY and you want to end the Expert does it automatically sell any open positions it created?

Eleni Anna Branou
3642
Eleni Anna Branou 2017.01.10 09:57  

An expert advisor refrains from opening new positions, when you disable it. It doesn't close any open positions automatically, unless it has that function built in, even though I haven't encountered that yet.

Yes, you have to close any open position manually yourself. 

honest_knave
Moderator
2398
honest_knave 2017.01.10 10:15  
At the end of a strategy tester run your open positions will be closed.
whroeder1
14742
whroeder1 2017.01.10 14:21  
Tony Chavez: If you use an Expert does it automatically liquidate you position if you end it? Or do you keep the last position until you close them manually?
If you terminate a EA by removing it, it must return from deinit within 3 seconds or it will be forcefully terminated. It doesn't have time to close orders. That function can not be built in.
You must close them yourself, only in the tester are they closed
Tony Chavez
205
Tony Chavez 2017.01.11 08:11  
Thank you that helps as I didn't want it to close the position but during back testing it does. That is what had me worried.
To add comments, please log in or register