Swing Trading EA identifies entries through two primary methods: trend reversals and breakouts from consolidation zones. The reversal logic utilizes Fibonacci retracement levels combined with Stochastic and MACD confirmations. Risk management features include percentage-based lot sizing, dynamic stop loss placement based on price swings, and take profit targets calculated using a fixed risk-to-reward ratio. The EA is optimized for higher timeframes like H4 and D1 and includes trailing stop functionality.
Read from SwingTradingEA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
TimeFrame
ENUM_TIMEFRAMES
PERIOD_H4
Trading timeframe (H4 or D1)
RiskPercent
double
1.0
Risk per trade (% of account)
StochPeriodK
int
5
Stochastic %K period
StochPeriodD
int
3
Stochastic %D period
StochSlowing
int
3
Stochastic slowing
MACDFast
int
12
MACD fast EMA period
MACDSlow
int
26
MACD slow EMA period
MACDSignal
int
9
MACD signal period
UseReversal
bool
true
Use reversal strategy
UseBreakout
bool
true
Use breakout strategy
FiboRetracementPeriod
int
20
Period for Fibonacci retracement calculation
ReversalFiboLevel1
double
38.2
Fibonacci level 1 (%)
Show all 17 inputs
Name
Type
Default
Description
ReversalFiboLevel2
double
50.0
Fibonacci level 2 (%)
ReversalFiboLevel3
double
61.8
Fibonacci level 3 (%)
StochOverbought
int
80
Stochastic overbought level
StochOversold
int
20
Stochastic oversold level
TPRatio
double
2.0
Risk:Reward ratio for Take Profit
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone JonusNattapong/SwingTrading from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This MetaTrader 5 expert advisor combines Bollinger Band mean-reversion, squeeze breakouts, and EMA crossover trend following. It filters for ranging markets using a long-period EMA slope to execute reversal trades with candlestick confirmation, specifically identifying Doji patterns at the bands. Risk management inclu
This MetaTrader 5 expert advisor focuses on the EURUSD pair using an adaptive market regime approach. It alternates between trend-following and mean-reversion logic based on ADX and EMA indicators. The trend strategy utilizes price breakouts or pullbacks confirmed by RSI, while the range strategy employs Bollinger Band
Trend Matrix EA is a multi-model trend-following robot for MetaTrader 5, specifically optimized for Gold trading. It utilizes a scoring matrix based on several technical indicators including Moving Averages, MACD, ADX, and Bollinger Bands to determine entries. The system employs a conservative pyramiding approach, addi
This expert advisor is designed specifically for trading gold on the MetaTrader 4 platform. It employs a hybrid strategy approach, allowing users to toggle between trend following using moving average crossovers, mean reversion via RSI and Stochastic divergence, and breakout patterns. Trade management includes automate
EA31337 Libre is an open-source, multi-strategy trading robot for MetaTrader 4 and MetaTrader 5. It functions as a simplified implementation of the EA31337 framework, providing a collection of over 35 built-in strategies based on technical indicators. The expert advisor performs independent market analysis across vario
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index