If the platform is restarted (because of e.g. server restart) after an EA has been
attached and started, the EA remains attached and started upon loading, so automatic
platform restarts are easy.
Now, I have a script with an endless loop ( while(!IsStopped()) ): can automatic start upon platform restart be done with this as well somehow?
Or do I have to include it in an EA that runs automatically, as it will get into
the endless loop at the first tick, and will behave as an endless loop script from
this on. This second solution seems a bit tinkered to me. Can it have any negativ
effects (if the auto script start is not available, so I need to tinker this way)?
Read "Tools - Configuration at Startup" topic of built-in help file of
MetaTrader 4 Client Terminal please.
Find "The Expert and/or Script Single-Launch Settings" section.
Now, I have a script with an endless loop ( while(!IsStopped()) ): can automatic start upon platform restart be done with this as well somehow?
Or do I have to include it in an EA that runs automatically, as it will get into the endless loop at the first tick, and will behave as an endless loop script from this on. This second solution seems a bit tinkered to me. Can it have any negativ effects (if the auto script start is not available, so I need to tinker this way)?