Ratchet Flip SuperTrend

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 price, the close or the typical price, with a multiplier (default 10 and 3.0).
- The lower band can only rise while the trend is up, and the upper band can only fall while it is down. The trend flips when a bar closes beyond the opposite band.
- The line on the forming bar is drawn for information (this can be switched off). It can still change until the bar closes, as on any chart.

Optional filters to reduce whipsaws
- Higher-timeframe confirmation: a flip is signalled only when the same calculation on a higher timeframe (H4 by default) points the same way. The indicator uses the last higher-timeframe bar that closed before the chart bar opened, so the filter cannot repaint.
- Volatility filter: skip flips when ATR is below a set fraction of its average (quiet, choppy markets). Optionally require the close to be a minimum distance (in ATR) beyond the old line.
Filtered flips still change the line color but do not get an arrow or an alert.

Alerts
- Popup, sound (standard terminal sounds), push notification and e-mail, each on or off.
- One alert per signal, on the first tick after the signal bar closes. No alerts are sent for old bars when the indicator loads or the timeframe changes.

For Expert Advisors (iCustom)
All 20 inputs are numbers or switches, in a fixed order, so they can be passed directly to iCustom. Buffers: 0 line, 1 color index, 2 buy arrow, 3 sell arrow, 4 trend (+1/-1), 5 signal (+1 buy, -1 sell, 0 none; closed bars only), 6 upper band, 7 lower band, 8 ATR, 9 higher-timeframe trend. Read signals at shift 1 (the last closed bar). Parameter order: ATR period, multiplier, price (0 median, 1 close, 2 typical), use HTF, HTF timeframe, HTF ATR period, HTF multiplier, use volatility filter, ATR average period, minimum ATR ratio, minimum break x ATR, draw forming bar, arrow gap, buy arrow code, sell arrow code, popup, sound, sound choice (0-4), push, e-mail. Fewer parameters may be passed; the rest keep their defaults.

Efficiency
After the first calculation, only the last bar and new bars are recalculated. The higher-timeframe series is recalculated only when a new higher-timeframe bar appears. No DLLs and no external files.

Testing performed (version 1.00)
It compiles with no errors or warnings. In the Strategy Tester it ran without journal errors on EURUSD (M1, H1), GBPUSD (M30), XAUUSD (H1, D1) and USDJPY (H1), in visual and non-visual mode, with and without the filters. A test EA recorded the closed-bar values bar by bar during each test. It compared them with a fresh calculation over the full history: 0 differences in 8 runs (more than 70,000 bars per setting). The number of alerts always equalled the number of signal bars. Push, e-mail and sound alerts cannot be tested in the Strategy Tester.

Notes
This is an analysis tool. It does not open trades, and it does not predict prices. Trend-following signals often give losing or late signals in ranging markets. Past signals do not guarantee future results. Use your own risk management, and try it on a demo account first.

supertrend, trend indicator, ATR trailing line, non repainting, buy sell arrows, multi timeframe filter, volatility filter, alerts, push notification, iCustom buffers, trend following, MT5 indicator
Yazarın diğer ürünleri
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
Filtrele:
Değerlendirme yok
Değerlendirmeye yanıt