Download MetaTrader 5

Scripts: A Script to Calculate MAE and MFE

To add comments, please log in or register
What is a social trading? Read the article to find that out!
MetaQuotes Software Corp.
Moderator
181337
MetaQuotes Software Corp. 2008.02.29 09:07 
MQL4 Comments
16319
MQL4 Comments 2009.03.23 17:11  

I downloaded script, I compile and fail-error. The code is incomplete!!!

Rashid Umarov
Admin
11836
Rashid Umarov 2009.03.23 17:34  

Put this include file into /experts/include/ and write simple script, for example:

#include <MAE_MFE_DrawDowns.mqh>

void start()
{
startCalculate();
}

Rashid Umarov
Admin
11836
Rashid Umarov 2009.03.25 10:46  

I added script MAE_MFE_DrawDowns.mq4

MQL4 Comments
16319
MQL4 Comments 2009.04.21 05:41  

Great tool, thanks for your efforts,

Best regards,

247743
20
247743 2010.08.20 11:07  

would it be possible to describe the steps in English...sorry i don’t read Russian

MQL4 Comments
16319
MQL4 Comments 2010.12.27 17:26  

Rosh,you have a big name here.I respect your soul.

Rashid Umarov
Admin
11836
Rashid Umarov 2011.11.24 11:43  
Sorry, we will translate comments ASAP.
Rashid Umarov
Admin
11836
Rashid Umarov 2011.11.29 12:43  
Rosh:
Sorry, we will translate comments ASAP.

Done
20023900
3
20023900 2012.06.14 12:51  
Rosh:

I added script MAE_MFE_DrawDowns.mq4



i get this alert "Found errors of M1 gaps in available history, when checking account - 34. What to do?
lwclasses
7
lwclasses 2012.07.06 08:21  

I think what is happening in the video is:

He tries to run it then there is an error because he needs 1 minute data, so he downloads the 1 minute data.

Then he tries to run it on a timeframe other than 1 minute, so there is an error there too so he changes to 1 minute time frame.

He tries it again and it works. It output the logs as in the video.

The script does compile, but if you are putting it in an existing script, then you only need to call:

startCalculate();

in the appropriate place. eg in the deinit.

Also follow the instructions, it has to be the .mqh in /experts/include NOT just in /experts!

12
To add comments, please log in or register