Lock Indicator

 
hi there
how to lock the indicator, so it can only be used for 1 market and 1 time frame.
for example, the indicator can only be used on the AUD CAD M5 time frame market, otherwise it cannot be used

Thank you.
 
What exactly is this about, do you need coding advice? 

You could make OnInit of the indicator return INIT_FAILED if the current symbol and timeframe are not the supposed kinds.

Say
int OnInit{
if(_Symbol != "AUDCAD" || _Period != PERIOD_M5)
return(INIT_FAILED);}

(not compiled, not tested)
 
Denis Adha: how to lock the indicator, so it can only be used for 1 market and 1 time frame. for example, the indicator can only be used on the AUD CAD M5 time frame market, otherwise it cannot be used
Please note, that if this is for a Market product, then you are not allowed to do that. It is a violation of Market rules. In fact, I suspect it it would not pass the verification process if you do that.
Rules of Using the Market Service
Rules of Using the Market Service
  • www.mql5.com
General Provisions and Conditions of Use service Market