deintialisation

 

I haven't been able to find the answer in the documentation.

in situations such as changing timeframes etc, the expert is deinitialised.

What I need to know is whether the the code execution in start() will always continue until it hits return(0) before it is deinitialised.


Thank You

 

From the documentation on Program Run:

Detaching of the program from the chart, change of symbol and/or chart period, change of the account, closing of the chart, as well as shutdown of the client terminal will interrupt execution of the program. If the start() function was being executed at the moment when the stop working command was given, the time remaining for its work is limited by 2.5 seconds.

Hope that helps you.
 

Thankyou.

really stupid of me as I now remember reading that, guess that it didn't sink in.

Reason: