I would like to know whether it is possible to suspend/ cancel a signal programmatically. This is a very important function that should be included as the signal keeps opening trades even after you close its current positions. the only way is to suspend or to cancel the subscription before you close all opened trades. I would also like to know if there is function that can block a specific amount in my account so that this amount will not be available for trading.
Thank you in advance.
1 is called:
and 2 is called:
Thank you very much for your reply. I need a code/function that can stop/pause a signal subscription programmatically. The code provided above is for EA and scripts and not for signals. Please correct me if i am mistaken.
Returns true if subscription has been canceled successfully, otherwise returns false. To read more about the error call GetLastError().
See here for the rest of MQL4 signals functions