Idea Author: Igor
MQL5 Code Author: barabashkakvn
How It Works
Dematus is designed to maximize your trading potential. It opens a position when the price moves from the last opening price (tracked by the m_last_deal_price_IN internal variable) by a specified Distance, provided the iDeMarker indicator signals it’s a good time to enter. If you have no active positions, the EA will wait for the indicator’s permission and then open a position using the Lots volume.
For risk management, the default Stop Loss is set at a hefty 999 points, ensuring it rarely gets triggered. There’s no take profit set by default, giving you flexibility. If you do have open positions, you can utilize a trailing stop strategy to lock in profits with the help of Trailing Stop and Trailing Step.
The trailing mechanism considers your available equity, managed by the Trailing Equity, Virtual Stop Equity, and Trailing Start Equity variables.
Operation Periodicity
Once the last position closes, the opening price (the m_last_deal_price_IN variable) resets to zero, while the m_lot variable returns to the Lots volume. By default, the Reset "last price IN" after deal OUT parameter is set to 'false'. If you prefer to reset it after each closing, you can set it to 'true'.
We’ve tested Dematus across all symbols on the M5 timeframe with a $10,000 deposit.
| Symbol | Pass | Result | Profit | Expected Payoff | Profit Factor | Recovery Factor | Sharpe Ratio | Custom | Equity DD % | Trades |
|---|---|---|---|---|---|---|---|---|---|---|
| EURJPY | 16 | 5359.37 | 11591.27 | 19.95 | 2.86 | 2.30 | 0.25 | 0 | 26.20 | 581 |
| GBPJPY | 19 | 4646.45 | 13861.37 | 18.63 | 2.49 | 2.46 | 0.19 | 0 | 50.32 | 744 |
| EURGBP | 13 | 3471.68 | 4345.42 | 19.84 | 2.69 | 1.18 | 0.24 | 0 | 35.49 | 219 |
| GBPUSD | 1 | 3462.21 | 6094.22 | 19.35 | 2.70 | 0.64 | 0.22 | 0 | 93.60 | 315 |
In our tests using all symbols on the M5 timeframe with a $10,000 deposit, we found varying levels of success. Check out the detailed results in the table above to see how Dematus performed against different currency pairs.
So if you're looking to enhance your trading game, give Dematus a shot. It could be just the tool you need to elevate your trading strategy!
Related Posts
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation
- Harnessing MQL5 Wizard for Bullish and Bearish Harami Signals with CCI Confirmation
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- RRS Impulse: Your Go-To Scalping EA for MetaTrader 4
- Mastering NirvamanImax: Your Go-To EA for MetaTrader 4