Download MetaTrader 5

How to limit ea only in one pair? - page 2

To add comments, please log in or register
Fernando Carreiro
3922
Fernando Carreiro  

Wiseacre Mhlongo: You need to add this first: Hope it helps

Please read the previous posts! OP has already stated that he is not trying to restrict or protect his EA. Also, please use the SRC button!

Donald Reeves Sihombing
6888
Donald Reeves Sihombing  
Fernando Carreiro:

At this point it is very unclear what the OP wants and between all the posts we have already covered 3 possibilities:

  1. Preventing EA from running on other charts (by using Terminal Global Variables).
  2. Preventing interference of code on other EA's and/or Symbols (by using a "magic number" and checking for the same "_Symbol).
  3. Protecting or limiting EA by restricting the allowable Currency Pairs.

So now it is up to the OP to properly detail what he wants with some code examples.


Alright, thank you for your comments @Fernando Carreiro @Yohana Parmi @Wiseacre Mhlongo

It seems that I have to check option number 1 (as explained by @Yohana Parmi) with Global Variables. I am still working on it.

Thank you very much.

Wiseacre Mhlongo
193
Wiseacre Mhlongo  
Donald Reeves Sihombing:

Alright, thank you for your comments @Fernando Carreiro @Yohana Parmi @Wiseacre Mhlongo

It seems that I have to check option number 1 (as explained by @Yohana Parmi) with Global Variables. I am still working on it.

Thank you very much.

Thanks

12
To add comments, please log in or register