Expert losses at end of testing

 

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?

 

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. 

 
At the end of a strategy tester run your open positions will be closed.
 
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
 
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.
Reason: