Is there a way for EA to stop copying a signal?

 
I'm writing an EA to check DD. Once  there is a big DD, I want this EA to turn off the signal subscription. What kind of functions should I use?
 
Longsen Chen:
I'm writing an EA to check DD. Once  there is a big DD, I want this EA to turn off the signal subscription. What kind of functions should I use?

There is a thing called "Search"! There is also a thing called "Documentation".

  1. https://www.mql5.com/en/docs/signals
    Documentation on MQL5: Trade Signals
    Documentation on MQL5: Trade Signals
    • www.mql5.com
    Trade Signals - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
     
    Fernando Carreiro:

    There is a thing called "Search"! There is also a thing called "Documentation".

    1. https://www.mql5.com/en/docs/signals

      Search is a good thing. Forum is a good thing too.

      Thanks for your help

       
         bool ret;
         int error ;
         ret = SignalInfoSetInteger(SIGNAL_INFO_SUBSCRIPTION_ENABLED,0);
         if(!ret)
         {
            error =GetLastError();
            printf("SignalInfoSetInteger Error = %d, ",error);
         }
      
      
      I got message:
      2021.06.04 15:39:33.841 testSignal (GBPUSD,H1)  SignalInfoSetInteger Error = 4014, 
      How to solve it?
      4014  Function is not allowed for call