Home System Trading Post

Mastering Trend Catcher: Your Go-To EA for MetaTrader 5

Attachments
17386.zip (6.41 KB, Download 0 times)

Idea Author: Dmitriy Epshteyn, MQL5 Code Author: barabashkakvn.

The Trend Catcher EA is designed to spot trends using three moving averages (you can use standard periods like 200, 50, and 25 or customize them to your liking), and it executes trades based on signals from the Parabolic SAR indicator. This EA incorporates martingale strategies, calculating lot sizes as a percentage of your deposit relative to the stop loss.

What’s New? The latest version brings some exciting features: 1) Choose specific days to trade, 2) Open orders on reverse signals, 3) Disable order closures triggered by opposite signals.

Market Entry Points

  • Buy Signal: Triggered when the current price is above the Parabolic SAR point on the current candlestick, the previous candle's close price is lower than the last Parabolic SAR point (indicating a change), the fast MA is above the slow MA, and the current price is also above another moving average with a different period.

  • Sell Signal: Activated when the current price falls below the Parabolic SAR point, the previous candle's close price is higher than the last Parabolic SAR point (indicating a change), the fast MA is below the slow MA, and the current price drops below another moving average with a different period.

  • The EA will close orders upon receiving an opposite signal.

Stop Loss and Take Profit Mechanics

  • Automatic Stop Loss: If Auto_SL is set to true, the stop loss is calculated and positioned at the Parabolic SAR point. You can adjust the distance using the SL_koef factor. For example, if there’s a 20-point gap between your order price and the Parabolic SAR point, and SL_koef is set to 2, your Stop Loss will be 40 points. Conversely, if SL_koef is set to 0.5, the Stop Loss will be 10 points.

  • Fixed Stop Loss: If Auto_SL is false, the Stop Loss will be set to a fixed point value defined by the SL parameter.

  • Automatic Take Profit: If Auto_TP is true, the Take Profit will be calculated based on the Stop Loss value multiplied by the TP_koef. For instance, if TP_koef is set to 2, your Take Profit will be double the estimated stop loss.

  • Fixed Take Profit: If Auto_TP is false, the Take Profit will be set to a fixed point value determined by the TP parameter.

Lot Sizing and Martingale Settings

  • Lot sizes are determined as a percentage of your deposit based on your selected Risk parameter and Stop Loss. For example, if your account balance is $1,000 and your Stop Loss is 100 points, with a Risk of 1 (1% of the deposit), you can afford to lose 10 currency units, resulting in a lot size of 0.01. If Risk is set to 10, the lot size would increase to 0.1.

  • If Martin is enabled and the last trade resulted in a loss, the risk for the next trade will be multiplied by the Koef.

  • If Martin is disabled, the EA will calculate the lot size based on the current account balance percentage.

Breakeven and Trailing Stop Features

  • Once a position reaches Profit_Level points in profit, the stop loss will be adjusted to SL_Plus profit points.

  • Upon hitting Profit_Level2 points in profit, the Stop Loss will trail the price at a distance defined by TrailingStop2 points.

Related Posts

Comments (0)