量化交易系统

MT5-MovingAverageCascadeEA

  • 型号:
Main Image

Moving Average Cascade EA

Classic Strategy - modernized.

This fully automated Expert Advisor trades an understandable strategy. All values ​​(x) can be adjusted as required in the settings:


The trading signal is generated by a moving average. To do this, the price must approach the moving average by x points. After that, a candle must close at least x points away from the moving average. Then a position is opened in that direction.

If desired, further positions can be opened to increase profits. If the Cascade strategy is set, no TakeProfit is set. When the TakeProfit value is reached, the EA opens another position in the same direction and tightens the StopLoss (see screenshots 1 and 2).
If the RecoveryPosition function is set, the stoploss of the first position is doubled. When the value of the original StopLoss is reached, the EA opens another position in the same direction.

When the maximum number of open positions is reached, a trailing stop loss is applied.


Recommendation:
The EA works optimally on the EUR/USD M15 chart with standard settings.

The EA can be used on Forex and Indices. The EA achieves the best results in the M15 chart or higher.

Perfect complement:

Drawdown Monitor (for free): https://www.mql5.com/de/market/product/103641

Risk management made easy. Balance and Equity monitoring, closing positions, deleting orders, notifications by email. When the drawdown monitor signals that the daily maximum loss is exceeded, the Moving Average Cascade EA stops trading that day. This means that the rules for prop trading e.g. can be complied with.

The following settings can be made:

  • >>> GENERAL <<<
    • Risk in Percent: Risk in percent
    • Strategy:
      • Normal: One position with takeprofit is opened.
      • Cascade: Further positions are opened in the profit.
    • Cascade Factor: The StopLoss in the Cascade strategy is adjusted by this factor (Sl Points * CascadeFactor = new StopLoss)
    • Cascade Multipier: Each Cascade position increases by this factor (volume of the last position opened * Cascade Multiplier = volume of the next position)
    • Recovery Position: If "true": The stop loss of the first position is doubled. When the trade hits the simple StopLoss, a second position is opened in the same direction. ( Risk increases to Risk in Percent x 2 + RecoveryMultiplier )
    • Recovery Multiplier: The recovery position is reduced by this factor (volume of the first position * recovery multiplier = volume of the recovery position)
    • Sl Points: Stoploss in points.
    • Tp/Cascade Ratio: The SlPoints are multiplied by this ratio. This value forms the TakeProfit or the value to open the next Cascade Position.
    • max. open Positions: Maximum number of simultaneously open positions.
    • use TSL for last Position: If "true": If the last position was opened, a trailing stop loss will be trailed (settings below).
    • Magic: Magic Numer for EA
    • Comment EA: Comment for positions
  • >>> SIGNAL <<<
    • MA Period: Period of Moving Averages
    • MA Method: Method of Moving Averages
    • Approach Points: When the price approaches the moving average by less than these points, a trading signal is awaited.
    • Close Points: After a candle closes at least these points away from the moving average, a trade is opened in that direction.
  • >>> TRAILING STOP <<<
    • StopLoss Mode:
      • No TSL: No trailing stoploss is used (except last position).
      • TSL in x Points: Fixed distance trailing stop loss in x points.
      • ATR TSL: Trailing StopLoss based on the ATR indicator.
    • A TR Period: Period ofs ATR TSL
    • ATR Stop Factor: Factor of ATR TSL
    • ATR Trigger Points: Triggerpoints for ATR TSL
    • Tsl Points: Points for Trailing StopLoss (auch für die letzte Position)
    • Tsl Trigger Points : Triggerpoints for TSL
  • >>> FILTER <<<
    • Use Spread Filter (not for Recovery Position): Spreadfilter for new positions (not for the recovery position)
    • Spread Filter in Points: Maximum spread in points
    • Use Time Filter (not for Recovery Position): Time filter for new positions (not for the recovery position)
    • Time Filter Start Hour: Timefilter Start (hours)
    • Time Filter Start Min: Time filter Start (minutes)
    • Time Filter End Hour: Time filter End(hours)
    • Time Filter End Min: Time filter End(minutes)
    • Close all open Positions in the Evening: Close all positions in the evening (Time Filter End)
    • Close all open Positions on Fridays: Close all positions on Friday (Friday Close Time)
    • Friday Close Time Hour: Positions Close on Friday (Hours)
    • Friday Close Time Min: Positions Close on Friday (Minutes)