ATS Confirmed Swings: Non-Repainting Swing Highs and Lows

ATS Confirmed Swings: Non-Repainting Swing Highs and Lows
Download ALL MT5 indicators (5915)
YouTube Video Thumbnail



Similar MetaTrader Tools

ATS Confirmed Swings: Non-Repainting Swing Highs and Lows

Info

The ATS Confirmed Swings: Non-Repainting Swing Highs and Lows is a Indicator for MetaTrader 5 that this indicator marks swing highs and swing lows on the chart, and it never repaints. A swing is drawn only after the bars that confirm it have closed, so what you see today is exactly what the chart will still show tomorrow.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use ATS Confirmed Swings: Non-Repainting Swing Highs and Lows

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

What this tool does

This indicator marks swing highs and swing lows on the chart, and it never repaints.

Typical Use Case

This Indicator excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.

Description & Settings

Related: Confirmed Swing Points Helper for MT5 - another powerful indicator for MetaTrader 5 traders.

This indicator marks swing highs and swing lows on the chart, and it never repaints. A swing is drawn only after the bars that confirm it have closed, so what you see today is exactly what the chart will still show tomorrow.

Also recommended: i trend jm a - similar indicator with strong performance on MetaTrader 5.


How it works

A bar is a swing high when its high is above the highs of the N bars on its left and not below the highs of the N bars on its right. Swing lows use the same logic, mirrored. The bar that is still forming is never used, and a swing is drawn only when all N confirming bars on its right have closed.

Nothing is drawn early and nothing is removed later. This makes the swings safe as a building block for BOS / CHoCH logic and for backtests. The cost of this honesty is a lag of N bars: that lag is unavoidable for any swing that cannot repaint.

Inputs

InpStrength - number of bars on each side used to confirm a swing (default 5).

InpMaxBars - how many bars to scan on the chart (default 2000, 0 = all).

InpAlert - popup alert when a new swing is confirmed.

InpPush - push notification to the phone when a new swing is confirmed.

Buffers (for use from an Expert Advisor with iCustom and CopyBuffer)

Buffer 0 - swing high price (EMPTY_VALUE when there is none).

Buffer 1 - swing low price (EMPTY_VALUE when there is none).

Notes

This is a drawing tool, not a trading signal, and it makes no claim about profitability. It works on any symbol and timeframe.

You may also like: Sine Wave Indicator - excellent alternative for indicator users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property version   "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_plots   2
#property indicator_label1  "Swing High"
#property indicator_type1   DRAW_ARROW
#property indicator_color1  clrTomato
#property indicator_width1  2

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.