Download MetaTrader 5

Quesion on Equity data, and caculating MAE MFE

To add comments, please log in or register
Searching on MQL5.community is performed in all sections. Try it!
mmm
4
mmm 2011.10.21 16:47 

Hi, 

I'm doing some an simple EA for MT5 and encounter some problems, if you know please help me to overcome it 

  1) I want to handle the equity data through the Strategy tester. Please the me how to access these data. After the test has finished, I can take the equity data from the Graphe -> Export to CSV. However, I want to handle it within MT5

  2)I try to calculate the MAE and MFE, but only find script for MT4. I try to convert it to MT5 but I don't  know

 HOw to get the High array with the associated Time. 

     The CopyHigh() function only return integer array().

    The needed data look is something like this time  DataArray[time] = value, e.g DataArray[2011 21 10 09:00:01]= 123.123 .... 

Thank :)

Documentation on MQL5: Timeseries and Indicators Access / CopyHigh
  • www.mql5.com
Timeseries and Indicators Access / CopyHigh - Documentation on MQL5
To add comments, please log in or register