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
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