Download MetaTrader 5
To add comments, please log in or register
Thousands of developers have already published their products in the Market. Join them!
Greg
7
Greg 2014.04.17 18:44 

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
5927
Carl Schreiber 2014.04.17 21:09  
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 2014.04.18 11:48  
That's great - thanks a lot.
/
To add comments, please log in or register