1 (edited by ViniQ 2022-07-05 21:03:10)

Topic: Moving Average Fit for Stagnation [MT4 MT5 Expert Advisor]

Moving Average Fit for Stagnation [MT4 MT5 Expert Advisor]
This expert advisor has six types of moving average to choose and a powerful custom optimization metric so you can find the best systems with low stagnation and high net profit for any asset.

You enter the position long when bar opens above Moving Average Line and reverse it (close the buy and open a new short position) when bar opens below MA.
In addition to the optimization metric you can select acceptance criteria as minimum number of trades and payoff of a trading system.

Moving Averages Available ( MA TYPE )

  • Simple Moving Average (SMA)

  • Exponential Moving Average (EMA)

  • Smoothed Moving Average (SMMA)

  • Linear Weighted Moving Average (LWMA)

  • Linear Regression Moving Average

  • Hull Moving Average

More

  • Take Profit and Stop Loss as a percentage of price. Percentage stops are great for stocks, cfd indexes, cryptocurrencies and also forex.

  • Limit on the number of trades by the day

  • Trailing Stop (%) that only starts when you have defined profit

  • Entry and closing times

  • 4 optimization metrics to search best systems as: Net Profit + Stagnation, Net Profit + DD + Stagnation, CAGR Mean DD + Stagnation and Stagnation; To use the custom optimization metric select "Custom max" in strategy tester.


https://c.mql5.com/31/748/moving-average-fit-for-stagnation-screen-7856.png

https://c.mql5.com/31/749/moving-average-fit-for-stagnation-mt4-screen-7396.png
https://c.mql5.com/31/748/moving-average-fit-for-stagnation-screen-2830.gif


https://c.mql5.com/31/748/moving-average-fit-for-stagnation-screen-6580.gif

Expert Options

  • Entry Lots (double)

  • Base Magic Number (int)

  • Allow Long Positions (bool)

  • Allow Short Positions (bool)

  • Maximum trades per day (int)  (MT5 only)

Risk

  • Take Profit (%) (double)

  • Stop Loss (%) (double)

  • Allow Trailing (bool)

  • Profit to start trailing ($) (double)

Indicator Moving Average

  • MA Type (int) 1 - 6

  • MA Period (int) 3 - 400

Entry Time

  • From hour (int)

  • From minute (int)

  • Until hour (int)

  • Until minute (int)

Exit Time

  • Until hour (int)

  • Until minute (int)

  • Friday Until hour (int)

  • Friday Until minute (int)

  • Close all positions at ending time (bool)

  • Ignore Sunday (bool)

Optimization
Search Best

  • Net Profit + Stagnation

  • Net Profit + DD + Stagnation

  • CAGR Mean DD (MT5 only)

  • Stagnation

Acceptance Criteria

  • Minimum count of trades

  • Minimum payoff

Download MT4 EA - Moving Average Fit for Stagnation
Download MT5 EA - Moving Average Fit for Stagnation

Re: Moving Average Fit for Stagnation [MT4 MT5 Expert Advisor]

Moving Average Fit for Stagnation MT5 was updated

Now you can select more moving averages smoothing methods for the moving average:

  • Simple Moving Average (SMA)

  • Exponential Moving Average (EMA)

  • Smoothed Moving Average (SMMA)

  • Linear Weighted Moving Average (LWMA)

  • DEMA

  • TEMA

  • HiLo

  • VWAP

  • Linear Regression Moving Average

Custom optimization objective functions metrics included (custom máx.), Search Best

  • Stagnation in days

  • +Net Profit -Stagnation

  • +Net Profit -DD -Stagnation

  • +CAGR Mean DD -Stagnation

  • +R-squared -Stagnation

Acceptance Criteria

  • Minimum count of trades

  • Minimum payoff

https://c.mql5.com/31/757/moving-average-fit-for-stagnation-screen-9394.gif

https://c.mql5.com/31/757/moving-average-fit-for-stagnation-screen-5662.gif

https://c.mql5.com/31/757/moving-average-fit-for-stagnation-screen-8302.gif

Download MT5 EA - Moving Average Fit for Stagnation

Re: Moving Average Fit for Stagnation [MT4 MT5 Expert Advisor]

Major update

New money management option:

  • Dynamic position size: (Equity * Entry_Amount) / Delta


Bettings options:

  • Martingale: strategy is a betting system in which the gambler doubles his bet after every loss. This strategy is based on the assumption that eventually the coin will land on heads, and the gambler will recoup all previous losses plus a profit equal to the original stake.

  • Reverse Martingale: strategy is a betting system in which the gambler doubles his bet after every win. This strategy is based on the assumption that the coin is more likely to land on heads than tails, and the gambler will recoup all previous losses plus a profit equal to the original stake.

  • Anti-Martingale: strategy is a betting system in which the gambler halves his bet after every win. This strategy is based on the assumption that the coin is more likely to land on tails than heads, and the gambler will recoup all previous losses plus a profit equal to the original stake.

  • Grand Martingale: strategy is a betting system in which the gambler doubles his bet after every loss, and adds the original stake. This strategy is based on the assumption that eventually the coin will land on heads, and the gambler will recoup all previous losses plus a profit equal to the original stake.

  • D'Alembert: A betting system in which the gambler increases their bet by one unit after a loss, and decreases their bet by one unit after a win.

  • Reverse D'Alembert: A betting system in which the gambler increases their bet by one unit after a win, and decreases their bet by one unit after a loss.


Indicators can acess multiple timeframes as:

  • CURRENT = PERIOD_CURRENT,

  • M5 = PERIOD_M5,

  • M15 = PERIOD_M15,

  • M30 = PERIOD_M30,

  • H1 = PERIOD_H1,

  • H2 = PERIOD_H2,

  • H3 = PERIOD_H3,

  • H4 = PERIOD_H4,

  • H6 = PERIOD_H6,

  • H8 = PERIOD_H8,

  • H12 = PERIOD_H12,

  • D1 = PERIOD_D1


New acceptance criteria:

  • Overall Drawdown %


Download it and test it for free! Moving Average Fit for Stagnation MT5