Add some more indicators, MACD, CCI to it, use that settings in the lines for buy and sell, 'if (iRSI(NULL, PERIOD_H1, 14, PRICE_CLOSE, 1) > 30.0) {'. Use disered lotsize and don't use lotexponent, '0'. It will work perfectly, even better than the original when 'if (spread<…) is added.Nice EA! But you have to know how to use it, or what to modify...
I read the source while testing this on 32 months of EURUSD H1 (IC Markets, fixed 0.01 lots for the base size).
Positive: the code is short and readable, the money management block is documented in the header, and it keeps taking trades in ranges instead of stalling like most grids of this age. It compiles clean on current builds.
Negative, and these are the reasons I would not run it:
1. The entry rule reduces to comparing the last two closes. There is no filter, so direction is close to a coin flip and the whole outcome comes from position sizing rather than from logic.
2. StopLoss is computed but never reaches the server. OrderModify is called with OrderStopLoss() as the new value, so the stop is always set to where it already is. Across 11,339 trades the stop was never once assigned.
3. With MMType=1 and LotExponent=1.667 the tenth level is about 24.7 lots against a 0.1 start, and UseEquityStop is false by default, so nothing stops the sequence.
What the run produced: 11,339 trades, +167.8 percent on a 10,000 start, maximal drawdown 98.7 percent. It survived by 1.3 points, not by design.
Verdict: useful as a worked example of why a martingale needs an equity stop enforced in code. Not usable as a system without one.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
DEFAULT SETTINGS
Does anybody still using this EA?
I am trying the ILAN16 with good results
Here are four setfiles in ZIP.AUDJPY,EURGBP,NZDCAD,USDCHF.H4,Lot0.01with $5000,Lot=0.02 with $10000.
Here are four setfiles in ZIP.AUDJPY,EURGBP,NZDCAD,USDCHF.H4,Lot0.01with $5000,Lot=0.02 with $10000.