How to see if same EA run other Charts

 

Hello,

i have a question, how can i codeing somethink that show me for example that my EA run on EURUSD and GBPUSD chart?

is it better to code a info with files or with global variables and how would a good example look?

 
  • You put it on other charts therefore you should know.
  • You can look at the log.. chances are it'll request bars from other charts.
  • You can code an extern with the list of Symbols to work on:
  • Example: EurUsd | UsdJpy | GbpUsd | etc.
  • You can have the Expert Print the Names of the symbols it processes.
  • You may also use File, there are just easier methods tho.
 

On init create a Global Variable in the form EAname_Pair_TF (or EAname_Pair or EAname) with the value of its Window Handle.

Before opening an order, if the variable has a different handle, the EA is also on another chart. Disable or remove.