Download MetaTrader 5

Script executing across multiple charts

To add comments, please log in or register
Greg
7
Greg  

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

Carl Schreiber
7091
Carl Schreiber  
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.

Greg
7
Greg  
That's great - thanks a lot.
To add comments, please log in or register