Download MetaTrader 5
To add comments, please log in or register
Find out how social trading can improve your profits
BB2013
120
BB2013 2013.11.26 09:49 

Hi,

I created my first scipt with a no end loop and now I cant stopped it.

How can I stop it ?

Thanks

jeex
87
jeex 2013.11.26 09:56  
Close the program with Ctrl Alt Del.
Ubzen
5394
Ubzen 2013.11.26 09:59  
Variopinto:

Hi,

I created my first scipt with a no end loop and now I cant stopped it.

How can I stop it ?

Thanks

Remove it Right_Click>Script>Remove. Communicate with it through GlobalVariableSet(). Like have it Get the x=GlobalVariableGet(Gv_userStop). if( x==1 ) return;...... Or you can use if( x==1 ) 0/0; //zero divide (not very safe but gets the job done). You can also search for stuff like remove a script with code. Running another script might also unload the script.
BB2013
120
BB2013 2013.11.26 10:31  
ubzen:
Remove it Right_Click>Script>Remove. Communicate with it through GlobalVariableSet(). Like have it Get the x=GlobalVariableSet(userStop). if( x==1 ) return;...... Or you can use if( x==1 ) 0/0; //zero divide (not very safe but gets the job done). You can also search for stuff like remove a script with code. Running another script might also unload the script.

Thanks
Simon Gniadkowski
Moderator
17994
Simon Gniadkowski 2013.11.26 11:02  
Variopinto:

Hi,

I created my first scipt with a no end loop and now I cant stopped it.

How can I stop it ?

Thanks

If you have to "Remove script" twice for the script to be removed it's because you haven't used IsStopped() as part of your loop condition.
/
To add comments, please log in or register