Download MetaTrader 5
To add comments, please log in or register
Join MQL5 Cloud Network. Millions of traders are waiting for this!
MetaQuotes Software Corp.
MetaQuotes Software Corp. 2007.08.17 10:02 

New article How To Implement Your Own Optimization Criteria has been published:

In this article an example of optimization by profit/drawdown criterion with results returned into a file is developed for a standard Expert Advisor - Moving Average.

From time to time we hear opinions about the necessity of extending the set of optimization criteria in MT4 tester. Still you can guess than no matter what criteria developers add, there will always be users and situations requiring other criteria. Can this problem be solved inside MQL4 and MetaTrader? Yes, it can. This article shows the implementation of using a custom optimization criterion on the example of the standard Expert Advisor Moving Average. The criterion here is the relation profit/drawdown.

Author: Nikolai Shevchuk

MQL4 Comments
MQL4 Comments 2008.05.24 22:06  


I need my expert befor starting save the equity of the account and when the equity grown to the exampel( equity+1000$) close the all open postions.

I can not using account balance for this programin because account balance aways is more than account equity.

please hepl me about this brograming

To add comments, please log in or register