Looking for source

I would like to learn how to restrict indicator or ea by pair or timeframe could someone provide me a source to learn to do it please? I would really appreciate it because tried to find it by myself and could not found it. Thanks.

in OnInit()

if (...) return(INIT_FAILED);  //??

Thank you so much i will try it :)