Ratchet Flip SuperTrend EA

Ratchet Flip SuperTrend EA is an Expert Advisor for MetaTrader 5 that trades flips of an ATR SuperTrend line. The line is calculated inside the EA, so you only need this one file. Signals come from closed bars only, every trade has a stop-loss, and the EA holds one position at a time per symbol and magic number. It does not use martingale, grid, averaging or hedging, and it works on netting and hedging accounts.

How the trend line works
- Wilder ATR (10) times a multiplier (3.0) is placed above and below the bar's median price.
- The lower band can only rise and the upper band can only fall (a "ratchet") until price closes through the band.
- The trend flips up when a bar closes above the previous upper band, and down when a bar closes below the previous lower band.
- The line is the lower band in an uptrend and the upper band in a downtrend. It is drawn on the chart with flip marks.

Entries
- A flip on the last closed bar of the signal timeframe (the chart timeframe by default).
- Optional higher-timeframe confirmation (on by default, D1): the last closed D1 bar's SuperTrend must point the same way. The filter switches itself off when the chart is D1 or higher.
- Optional volatility filter (on by default): ATR must be at least 0.8 times its 50-bar average, and the flip close must be at least 0.2 ATR beyond the old line.
- Direction can be set to buy and sell, buy only or sell only.

Exits
- Initial stop at the SuperTrend line plus a 0.2 ATR buffer, or a fixed ATR distance. Stops narrower than 0.5 ATR are widened; setups that need more than 6 ATR are skipped.
- Optional partial close (50% at 1R) with break-even. If the position is too small to split, only the stop is moved.
- The stop is trailed along the SuperTrend line on each closed bar.
- Exit on an opposite flip. The EA then reverses if the filters allow it. An optional final take-profit in R is available.

Risk and safety
- Fixed lot or % risk per trade (1% by default) with a maximum lot. The money at risk is calculated from the actual stop with the platform's profit calculation.
- Hard caps in every lot mode: the loss at the stop is never more than 5% of equity, and a new trade never uses more than 40% of free margin. If the broker minimum lot would break the cap, the stop is tightened to fit (not below 0.5 ATR) or the trade is skipped with a log message. On small accounts the minimum lot can still risk more than the 1% setting, up to the 5% cap.
- Daily loss limit (4% of the day-start balance by default), optional close of the open position when it is hit, and an optional maximum of trades per day.
- Maximum spread (as a fraction of ATR and/or in points), trading-hours window and a Friday cut-off hour.
- Before each order the EA checks the volume minimum, maximum and step, the symbol volume limit, free margin, stops and freeze levels, trade mode and session, and runs OrderCheck. If free margin is not enough for the minimum lot, the trade is skipped with a log message. After a failed request it waits before retrying.
- Magic number and order comment inputs, so it can run next to other EAs.

Testing performed (version 1.01, JustMarkets demo data, 10,000 USD, 1:100, default inputs)
The program compiles with no errors or warnings. In the Strategy Tester it opened and managed trades on EURUSD (H1 and M1), GBPUSD (M30), USDJPY (H1) and XAUUSD (D1) with no errors in the journal. With a 1 USD deposit it skipped every signal with a log message and sent no orders.
Real-tick backtests from 2024-01-01 to 2026-10-30, results as obtained:
- XAUUSD H1: 116 positions, net +469.01, profit factor 1.12, maximum equity drawdown 7.06%.
- XAUUSD H4: 28 positions, net +474.49, profit factor 1.55, maximum equity drawdown 4.67%.
- EURUSD H1: 127 positions, net -210.90 (a loss), profit factor 0.95, maximum equity drawdown 8.40%.
- EURUSD H4: 27 positions, net -171.74 (a loss), profit factor 0.82, maximum equity drawdown 5.48%.
Most of the gold profit came in 2026, and both gold tests lost money in 2024. The filter defaults were chosen on 2024-2025 data, so those years are not an independent test. Shorter tests on GBPUSD M30, USDJPY H1 and XAUUSD D1 in 2025-2026 lost money. Version 1.01 was tested in both netting and hedging mode with deposits from 1 to 10,000 USD: no stop-outs, and trades opened on EURUSD H1 from 100 USD and on XAUUSD D1 from 300 USD. With 1 USD, or 100 USD on XAUUSD D1, every signal was skipped with a log message. The EA has not been forward-tested on a live account.

Recommendations
- Test it in the Strategy Tester on your broker's data with "every tick based on real ticks", then on a demo account, before trading real money.
- Use a separate magic number for each chart and start with low risk.

Risk disclosure
Trading leveraged products such as forex and CFDs carries a high level of risk and can result in the loss of all invested capital. This Expert Advisor opens and closes positions automatically. Backtest results depend on data quality, spreads, swaps and execution, and past results do not predict future results. The product does not promise or imply any profit. Test it on a demo account and use only money you can afford to lose.

supertrend, supertrend ea, trend following, atr, trailing stop, multi timeframe, risk management, xauusd, eurusd, no martingale, no grid, mt5 expert advisor
Altri dall’autore
UT BoT
Suresh Pargunam
The UT Bot LineRegression Program is a fully automated trading system designed to bring precision, discipline, and consistency to short-term market execution. Built around the UT Bot concept and enhanced with advanced Line Regression logic, the program analyzes price structure, volatility, and momentum to identify high-probability trade setups—especially effective on pairs like XAUUSD .
UT Bot LineReg Expert Advisor is an advanced, fully automated trading system designed for MetaTrader 5. It combines the popular UT Bot trend logic with Linear Regression–based trend confirmation to identify high-probability market entries while filtering out sideways and low-quality signals. The Expert Advisor is built with a strong focus on risk control, execution safety, and stable performance , making it suitable for both beginners and experienced traders.
The Super Trend
Suresh Pargunam
The Supertrend indicator is a popular technical analysis tool that overlays on price charts to show market trends (up/down) and signal potential buy/sell points, using price action and volatility (Average True Range - ATR) to create a visual line that changes color (green for uptrend, red for downtrend) and acts as dynamic support/resistance, helping traders identify trend direction but requiring confirmation due to its lagging nature.  
UT Master
Suresh Pargunam
UT Bot LineReg EA (M5) – Strategy Description The UT Bot LineReg EA (v9.3.4) is an advanced trend-following and reversal-protected automated trading system developed in MQL5 , optimized for M5 timeframe trading . It combines Linear Regression price tracking , Adaptive ATR volatility control , and a Safe Reverse Engine to deliver controlled, risk-managed entries with strong trend confirmation. Core Trading Logic 1. Linear Regression Price Channel The EA calculates a Linear Regression baseline ove
UtB
Suresh Pargunam
STrend EA is a fully automated trend-following Expert Advisor designed for stable and disciplined trading in netting accounts. The system is based on a Moving Average crossover strategy combined with strict position control and broker-safe execution logic. STrend EA uses: • Fast Moving Average • Slow Moving Average • Previous candle confirmation A trade is opened when a confirmed crossover signal appears. The system avoids overtrading and maintains only one position per symbol (netting-safe logi
Sanju
Suresh Pargunam
UT Bot LineReg EA PRO Adaptive AI Trend Trading Expert Advisor for MetaTrader 5 UT Bot LineReg EA PRO is a professional automated trading system developed for MetaTrader 5. It combines Linear Regression , Adaptive ATR , Trend Confirmation , and Advanced Risk Management to identify high-probability trading opportunities while protecting trading capital. Designed for both Forex and Gold (XAUUSD), the EA automatically adapts to changing market volatility and manages trades using intelligent stop-lo
Quora
Suresh Pargunam
XAUUSD Swing PRO EA v1.0 is a professional MetaTrader 5 Expert Advisor designed specifically for Gold (XAUUSD) swing trading. The EA combines EMA trend analysis, breakout confirmation, ATR-based volatility management, and advanced trade protection features to deliver stable and disciplined trading performance. This EA is optimized for traders seeking controlled drawdown, high-quality entries, and long-term consistency in both personal and funded trading accounts.
RichEMA
Suresh Pargunam
Professional EMA ATR Expert Advisor for MT5 – Description Overview The Professional EMA ATR EA is an automated trading system developed for the MetaTrader 5 (MT5) platform using MQL5 language. The strategy is designed to trade based on market trend direction using Exponential Moving Average (EMA) crossover confirmation combined with ATR-based dynamic risk management. This Expert Advisor is suitable for Forex, Gold (XAUUSD), Crypto, and Indices trading with controlled risk management and automati
Uganda
Suresh Pargunam
Three Point Gold Pro EA – Product Description Overview Three Point Gold Pro EA is an automated trading system designed primarily for XAUUSD (Gold) on the M5 timeframe . The EA uses a multi-condition three-point confirmation strategy to identify higher-quality trading opportunities while incorporating dynamic risk management and trade protection. The system is designed to avoid relying on a single indicator. A trade is considered only when multiple independent conditions confirm the same market d
Oeax
Suresh Pargunam
QuantNomad Simple EA v1.10 Version: 1.10 Platform: MetaTrader 5 (MT5) Language: MQL5 Timeframe: M5 (Recommended) Symbols: XAUUSD, EURUSD, GBPUSD, USDJPY (or any Forex/CFD symbol) Description QuantNomad Simple EA is a lightweight trend-following Expert Advisor developed for MetaTrader 5. It uses a simple Exponential Moving Average (EMA) crossover strategy to identify market trends and automatically execute buy and sell trades. The EA is designed to be easy to understand, making it suitable for be
Applies a separate R-based exit plan to each position by its magic number: break-even, two partial exits, ATR or R-step trailing, time stop and an optional protective stop. It does not open trades. Magic Profile Exit Manager manages the exits of positions that are already open on your account. You can open them by hand, through another Expert Advisor, or with a trade panel. The utility looks at each position's magic number and assigns it to one of three exit profiles. Each profile has its own pl
Trades failed breakouts of a recent range when the market is not trending. Signals come from closed bars only. Every trade has a stop-loss, and it holds one position at a time. Range Failure Reversal is an Expert Advisor that trades one idea. When price breaks out of a recent range but cannot stay outside it, and the market is not trending, it takes a position back towards the range. How a signal is formed Range: the high and low of the last N closed bars on the signal timeframe (H1 by default).
! MARTINGALE RISK WARNING – READ BEFORE USE This Expert Advisor uses a martingale / averaging strategy : when price moves against an open position it opens additional positions with larger lots in the same direction. This means: Many small winning baskets can be wiped out by one losing basket . In our default-settings real-tick backtest, the worst single basket lost -1,142.78 USD on a 10,000 USD account (about 10% of balance), while the average winning basket made only about +13 USD . With safet
Swing Structure Pullback is an Expert Advisor for MetaTrader 5 that holds trades for several days. It trades pullbacks in the direction of the higher-timeframe trend. Signals come from closed bars only, every trade has a stop-loss, and it holds one position at a time per symbol and magic number. It does not use martingale, grid, averaging or hedging. How a signal is formed - Trend filter (D1 by default): the 50 EMA must slope in the trade direction over the last 5 daily bars, and the last daily
Ratchet Flip SuperTrend is a SuperTrend-style trend indicator for MetaTrader 5, written from scratch. It draws an ATR-based trailing line that only moves in the trend direction. The line is blue while the trend is up and orange-red while it is down. Buy and sell arrows mark the bars where the trend flips. Arrows and alerts are created only after a bar has closed. They are never placed on the forming bar and do not move or disappear later. How it works - ATR (Wilder smoothing) around the median
Filtro:
Nessuna recensione
Rispondi alla recensione