Script executing across multiple charts

 

Hi All,

Sorry if this is a regular question, but I couldn't find the answers I was looking for.

I have been a .NET developer for many years, but am new to MQL.

I am looking to do the following, and would like to know if it's possible....

  • Access the data in the Trade and Account History tabs from the Terminal in MT4 via MQL
  • Schedule a script that runs daily / hourly / etc across multiple charts

Everything I have found so far seems to be designed to run on a single chart independently, and I thought someone might be able to tell me if I am wasting my time.


Thanks in advance


Greg

 
gvickery:

Hi All,

Sorry if this is a regular question, but I couldn't find the answers I was looking for.

I have been a .NET developer for many years, but am new to MQL.

I am looking to do the following, and would like to know if it's possible....

  • Access the data in the Trade and Account History tabs from the Terminal in MT4 via MQL
  • Schedule a script that runs daily / hourly / etc across multiple charts

Everything I have found so far seems to be designed to run on a single chart independently, and I thought someone might be able to tell me if I am wasting my time.


Thanks in advance


Greg

you can communicate across charts by using either files, named pipes (example is in ..\Scripts\Examples\Pipes) or GolbalVariables.

To access the trades you have functions start searching for either OrdersTotal() or OrdersHistoryTotal() and their examples.

 
That's great - thanks a lot.
Reason: