Swing Ratio Trend Precision
- Indicators
- Version: 1.0
- Activations: 16
Swing Ratio Trend Precision (SRTP) is a MetaTrader 5 custom indicator that identifies market swings using Fibonacci retracement confirmation and ATR-sensitive price movement. It analyses confirmed swing highs and lows to establish market direction, evaluate swing ratios, and generate trend-aligned BUY and SELL signals. A floating panel displays the current trend, active Fibonacci levels, candidate swing ratio, and the latest signal details — including reference entry, stop-loss, and up to three take-profit targets.
| 1. Non-Repainting Confirmed Signals Confirmed swing points and BUY/SELL signals are based on completed confirmation candles. Once confirmed, historical signals remain fixed. Developing swing candidates may still update before confirmation. |
| 2. Fibonacci-Confirmed Swing Detection Identify meaningful market swings through configurable Fibonacci retracement confirmation, candidate-ratio analysis, and ATR-sensitive price movement. |
| 3. Two Trend Analysis Methods Choose between Swing Structure and Ratio Sums to evaluate market direction using different approaches to confirmed swing data. |
| 4. Complete Trade Reference Levels View the reference entry, stop-loss, and up to three Fibonacci-based take-profit targets associated with each confirmed signal. |
| 5. Comprehensive Chart Visualization Combine the floating information panel, Fibonacci levels, swing markers, signal arrows, and optional trade-level lines. |
| 6. Flexible Market Sensitivity Adjust confirmation levels, candidate ratios, tolerance, ATR settings, and minimum swing spacing to investigate different market conditions and instruments. |
| 7. Multi-Channel Notifications Receive new-signal notifications through terminal popups, sound alerts, mobile push notifications, or email. |
| 8. Ready for EA Integration Access fourteen indicator buffers containing swing, trend, Fibonacci, volatility, and signal information for external analysis and Expert Advisor development. |
Key Features
| # | Feature | Description |
|---|---|---|
| 1 | Fibonacci / ATR Swing Structure | Identifies alternating swing highs and lows using Fibonacci retracement confirmation, ATR-sensitive thresholds, and minimum swing spacing. Configurable ATR period, threshold multiplier, and minimum bars between swings. Candidate ratio defaults to 61.8% (±3 percentage points). Developing candidates may update; confirmed swings use completed candles. |
| 2 | Fibonacci Retracement Analysis | Configurable confirmation level (default 50%) and temporary retracement level (default 38.2%). Calculates candidate swing ratios and displays active Fibonacci levels and directional targets on the chart. |
| 3 | Trend Analysis | Two methods: Swing Structure (HH/HL vs LH/LL) and Ratio Sums (compares high-side vs low-side swing ratios over a configurable period). Trend direction is exposed via a dedicated indicator buffer. |
| 4 | BUY & SELL Signals | Signals are generated only when a confirmed swing aligns with the established trend. BUY = confirmed swing high + bullish trend. SELL = confirmed swing low + bearish trend. Signals appear on completed confirmation candles. Reference entry = confirmation candle close. |
| 5 | Entry, Stop-Loss & Targets | Reference entry, stop-loss at the last confirmed opposite swing, and three Fibonacci-based take-profit targets (defaults: 100%, 161.8%, 261.8%). Targets already behind the entry are automatically skipped. Multiple display styles and optional labels are available. |
| 6 | Interactive Dashboard | Floating panel shows current trend, selected method, active Fibonacci levels, candidate ratio, and latest signal information. Colour-coded elements with independent show/hide controls. |
| 7 | Multi-Channel Alerts | Alerts fire once per newly detected closed-candle signal. Independent channels: popup, WAV sound, mobile push, and email. Full signal details are included. No repeat alerts on attachment or historical recalculation. |
| 8 | Display & Calculation Settings | Full control over swing confirmation, candidate ratio, tolerance, temporary retracement, ATR settings, trend method, and visual presentation. Chart display settings are independent of the underlying calculations. |
| 9 | Indicator Buffers | Fourteen buffers expose swing, trend, Fibonacci, volatility, and signal data — including dedicated BuySignal and SellSignal buffers — ready for external analysis and Expert Advisor integration. |
Who This Indicator Is For
| Price-Action Traders Traders who rely on swing highs, swing lows, and market structure to study price direction. |
| Fibonacci Traders Traders who use retracement ratios for swing confirmation, market analysis, and target calculations. |
| Technical Analysts Analysts combining market structure with volatility-sensitive filters and configurable Fibonacci levels. |
| Algorithmic Developers Developers who need structured swing, trend, and signal data for custom indicators and Expert Advisors. |
| Trading Researchers Researchers testing different Fibonacci confirmation levels, candidate ratios, ATR settings, and swing configurations. |
| Systematic Trading Learners Traders and learners exploring rule-based swing detection and trend-aligned signal analysis. |
Input Parameters
| Group | Parameter | Description |
|---|---|---|
| Swing Detection Settings | ||
| Swing | Swing Confirmation | Fibonacci retracement percentage required to confirm a swing. Default: 50%. |
| Swing | Fibo Candidate Rule | Enable or disable candidate-leg Fibonacci ratio checking. Enabled by default. |
| Swing | Candidate Level | Candidate retracement percentage used to evaluate developing swing legs. Default: 61.8%. |
| Swing | Candidate Tolerance | Allowed percentage-point deviation around the candidate ratio. Default: 3.0. |
| Swing | Temporary Retracement | Temporary Fibonacci retracement percentage used during swing development. Default: 38.2%. |
| Swing | Minimum Bars Between Swings | Minimum number of bars required between confirmed swing points. Default: 5. |
| Swing | ATR Period | Period used for the Average True Range calculation. Default: 14. |
| Swing | ATR Threshold Multiplier | ATR multiplier used to evaluate significant swing segments. Default: 32.0. |
| Trend Settings | ||
| Trend | Trend Method | Trend calculation method: Swing Structure or Ratio Sums. Swing Structure is the default. |
| Trend | Swing Period | Number of confirmed swings considered by the Ratio Sums trend calculation. Default: 8. |
| Display Settings | ||
| Display | Show Panel | Show or hide the indicator's floating information panel. Enabled by default. |
| Display | Show Current Levels | Show or hide the current Fibonacci and swing reference levels. Enabled by default. |
| Display | Show Trade Levels | Show or hide the reference entry, stop-loss, and take-profit levels. Disabled by default. |
| Display | Trade Level Style | Controls how trade levels are displayed: until outcome, fixed length, or latest signal only. Latest signal only is the default. |
| Display | Fixed Line Length | Sets the line length in bars when the fixed-length trade-level style is selected. Default: 3 bars. |
| Display | Trade Level Lookback | Controls the historical signal range used for displaying trade levels. Default: 1024 bars. |
| Display | Show Trade Labels | Enable or disable labels for older signals. The latest signal is always labelled. |
| Display | Line Length to the Right | Sets how many bars current Fibonacci level lines extend to the right. Default: 8 bars. |
| Take-Profit Settings | ||
| Targets | TP1 Percentage | Fibonacci percentage used to calculate the first take-profit target. Default: 100%. |
| Targets | TP2 Percentage | Fibonacci percentage used to calculate the second take-profit target. Default: 161.8%. |
| Targets | TP3 Percentage | Fibonacci percentage used to calculate the third take-profit target. Default: 261.8%. |
| Alert Settings | ||
| Alerts | Popup Alerts | Show a terminal popup when a new signal is detected. Enabled by default. |
| Alerts | Sound Alerts | Play a sound when a new signal is detected. Disabled by default. |
| Alerts | Alert Sound File | WAV file name located in the terminal's Sounds folder. Default: alert.wav. |
| Alerts | Push Alerts | Send new signals to the MetaQuotes ID configured in terminal notifications. Disabled by default. |
| Alerts | Email Alerts | Send new signals using the terminal's configured email account. Disabled by default. |
| Colour Settings | ||
| Colors | Bullish Colour | Colour used for bullish trend elements and related chart visualisation. |
| Colors | Bearish Colour | Colour used for bearish trend elements and related chart visualisation. |
| Colors | Temporary Level Colour | Colour used to distinguish temporary Fibonacci retracement levels. |
| Colors | Neutral Colour | Colour used for neutral trend and other neutral chart elements. |
| Trade Levels | Stop-Loss Colour | Colour used for stop-loss reference lines. |
| Trade Levels | Take-Profit Colour | Colour used for take-profit reference lines. |
| Trade Levels | Entry Colour | Colour used for reference entry lines. |
Summary
- Identifies confirmed market swings using Fibonacci retracement confirmation and ATR-sensitive calculations.
- Determines market direction via Swing Structure or Ratio Sums methods.
- Generates trend-aligned BUY and SELL signals with reference entry, stop-loss, and TP1–TP3 levels.
- Includes a floating dashboard, chart visualisation, and multi-channel alerts.
- Exposes fourteen indicator buffers for external analysis and Expert Advisor integration.
Important Notes
|
| Risk Disclaimer Trading financial markets involves substantial risk of loss. Swing Ratio Trend Precision is provided solely for analytical and research purposes. It does not guarantee any trading outcome and should never be used as the sole basis for trading decisions. Past signal performance is not indicative of future results. Users are solely responsible for their trading decisions and risk management. |
