hello is there any way to make the sleep indefinitely? actually i am running two EAs on 2 different charts and first ea is only
needed during the first few seconds of initialization, after that i dont need that Ea anymore i know "ExpertRemove(); "
function but it removes the EA , i dont want it removed , i actually want it to stay on chart till the mt4 restarts, and when the mt4 restarts the ea
do its thing during the first few seconds and then sleep again till the mt4 restarts again, and the follow this drill till the end of time :D
i
know there is Sleep(); function but i wanted to
know if there is anyother way? cuz this function requires to define the sleep interval in milliseconds , which is not exactly what i am looking
for.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
is there any way to make the sleep indefinitely?
actually i am running two EAs on 2 different charts and first ea is only needed during the first few seconds of initialization, after that i dont need that Ea anymore
i know " ExpertRemove(); " function but it removes the EA , i dont want it removed , i actually want it to stay on chart till the mt4 restarts, and when the mt4 restarts the ea do its thing during the first few seconds and then sleep again till the mt4 restarts again, and the follow this drill till the end of time :D
i know there is Sleep(); function but i wanted to know if there is anyother way? cuz this function requires to define the sleep interval in milliseconds , which is not exactly what i am looking for.