OPEN-SOURCE SCRIPT

PA Swings [TTA]

Hello traders!

This script helps identify swing high levels of resistance and swing low levels of support via price action.

The indicator is designed to help identify support and resistance by measuring retracements. When the retracement has reached the threshold, the indicator identifies the high or low with a horizontal, solid line.

syot kilat
syot kilat

This line will continue until it is violated. Once it is violated it will adjust to a dashed line and continue until it is violated again (retested).

Therefore, a solid line resembles an unviolated swing level; a dashed line resembles a violated swing level that has yet to be retested.

syot kilat

Ideally, this script will filter some movements by identifying impulses in the market. Knowing that price is in a trending move rather than bouncing around in a range can help traders in their analysis. In range bound conditions the indicator will show small impulses, sometimes trapped by a support and/or resistance line. In trending markets there will be separation between the support and resistance lines.

Retests are also identified by the indicator.


syot kilat

Retests of swing highs and lows may induce precise, repeatable price moves - something a trader might find advantageous. A log is included to help identify potential price levels based on historical actions when an impulse or a retest occurs.

syot kilat

Consequently, this may help traders identify take-profit targets and avoid stop losses that are too close to the entry point.

The indicator has a color identity panel to help you get familiar with the colored lines, line types, and what they mean. The color panel is concealable. Additional customization options are available, such as toggling the chart labels. These labels distinguish impulses up and down, retests, and the distance price has traveled since breaking or creating a support or resistance level.

syot kilat

This can be toggled off. A High-Volume Swings only option is available for those that wish to filter out low volume movements (such as extended market hours).


syot kilat


You also have the option of hiding far away lines and can define what is “far away” for them % wise. It is defaulted to 15% which may need to be adjusted on lower timeframes.

syot kilat

Inactive lines can be shown or they can be removed in the settings as well. While this indicator can find some great levels of support or resistance it is important to remember that, should you find this script helpful, it is a tool in your toolbox!! (:

Hope you enjoy and thank you for checking this out!
priceactionresistancessupportSupport and Resistanceswinghighlow

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?


Juga pada:

Penafian