Possible to run script every Interval (10 seconds)?
scripts can't send or modify orders. it need be an EA. it can can be done in the timer event handler.
No, scripts can send and modify orders, https://book.mql4.com/basics/programms#:~:text=Only%20EAs%20and%20scripts%20can%20use%20trading%20functions
- book.mql4.com
Try to run a script every so often to remove TP and SL on all open orders.
Scripts are intended to execute certain operations one time and then to be stopped
Instead of a script you can use an EA with the OnTimer function
Set the time interval you want in OnInt() with EventSetTimer(10) (10 seconds as example)
And place the code you want to be executed in OnTimer(){Your code is here}
- docs.mql4.com