The brains behind this strategy: Firmin, with the coding skills of barabashkakvn.
This Expert Advisor (EA) leverages the power of two key indicators: the iMACD (Moving Average Convergence/Divergence) and the iStochastic (Stochastic Oscillator). It’s designed to open only one position per bar while analyzing three different time frames to pinpoint the best entry points.
Input Parameters
- MACD: Fast Average Period - This is your fast moving average period.
- MACD: Slow Average Period - This indicates your slow moving average period.
- MACD: Difference Averaging Period - The period used for averaging the MACD difference.
- Enable Stochastic - Toggle to enable or disable the Stochastic indicator.
- Number of Bars for Stochastic - The count of bars used to calculate the Stochastic signal.
- STO: K-Period - The number of bars for the K calculation.
- STO: D-Period - The period for the first smoothing of the Stochastic indicator.
- STO: Final Smoothing - The last step in smoothing the Stochastic indicator.
- STO: Smoothing Type - Choose your preferred smoothing method.
- STO: Calculation Method - Method for calculating the Stochastic indicator.
- Lots - Volume of the position to be opened.
- Stop Loss (in pips) - Set your Stop Loss value here.
- Take Profit (in pips) - Define your Take Profit target.
- Trailing Stop (in pips) - Set your trailing stop distance.
- Trailing Step (in pips) - The step value for the trailing stop.
- Max Positions - Limit the maximum number of open positions.
- No Loss Stop (in pips) - Specify your breakeven level.
- Min Distance for Breakeven (in pips) - The minimum distance from the price to set the breakeven point.
- Start Time #1 (HH:MM format) - Define the start time for period #1.
- End Time #1 (HH:MM format) - Define the end time for period #1.
- Start Time #2 (HH:MM format) - Define the start time for period #2.
- End Time #2 (HH:MM format) - Define the end time for period #2.
- Start Time #3 (HH:MM format) - Define the start time for period #3.
- End Time #3 (HH:MM format) - Define the end time for period #3.
Here are the testing results across various currency pairs from March 6, 2017, to October 8, 2017:
| Currency Pair | Pass Count | Result | Total Profit | Expected Payoff | Profit Factor | Recovery Factor | Sharpe Ratio | Custom Metric | Max Drawdown % | Trade Count |
|---|---|---|---|---|---|---|---|---|---|---|
| GBPJPY | 19 | 11,120.25 | 1,120.25 | 28.01 | 1.86 | 2.96 | 0.31 | 0 | 3.70 | 40 |
| EURAUD | 13 | 11,070.28 | 1,070.28 | 22.30 | 1.84 | 2.29 | 0.31 | 0 | 4.64 | 48 |
| CHFJPY | 11 | 10,819.40 | 819.40 | 16.39 | 1.44 | 1.11 | 0.18 | 0 | 7.19 | 50 |
| GBPCHF | 18 | 10,661.42 | 661.42 | 21.34 | 1.54 | 1.39 | 0.22 | 0 | 4.60 | 31 |
| EURJPY | 15 | 10,602.62 | 602.62 | 13.70 | 1.35 | 1.28 | 0.14 | 0 | 4.61 | 44 |
| NZDUSD | 0 | 10,540.46 | 540.46 | 16.89 | 1.39 | 1.03 | 0.17 | 0 | 5.01 | 32 |
Related Posts
- Mastering Trading Signals with MQL5 Wizard: Bullish and Bearish Engulfing Strategies
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Creating a Stochastic-Based EA for Hammer and Hanging Man Patterns in MetaTrader 5
- Mastering Bullish and Bearish Harami Patterns with Stochastic in MT5
- Creating an Expert Advisor for Dark Cloud Cover and Piercing Line Patterns with CCI Confirmation