alphaXiom

AIR Supertrend (Average Interpercentile Range)

alphaXiom Обновлено   
Supertrend (ST) is a popular stop loss and trend identification script. The simplicity of seeing a clean trend on a chart makes it attractive, yet it is restricted by only allowing the source, length and multiplier to be adjusted, & these tend to have a limited effect on the properties of the identified trend.

There is a wide variety of interesting ST scripts on TradingView that give the user more control, but none to my knowledge, based on measuring the statistical dispersion of Average Interpercentile Range (AIR).

Two more levels of control:

Normally, ATR Average True Range is used to calculate the range in ST. ATR is initially calculated using RMA to smooth out True Range. This script gives the user the option of changing the MA to some more interesting varieties & modifying their parameters.

The default range setting when you load the indicator on a chart will be AIR.

The real strength of the indicator, however, and the reason I am publishing it, is to release AIR. Play round with the percentile range setting. Lowering it will allow you to stay longer in a trade in a volatile market. Raising it will make it tighter.

For comparison, you can switch back the range setting to ATR and load up RMA to see how the original, classic ST plots.

Alerts are included in this version. Alway use a stop loss.

DISCLAIMER: None of this is financial advice.

Credits to these authors, whose hard work inspired parts of this script:
@ KivancOzbilgic - SuperTrend
@ KioseffTrading - Tillson T3 MA
@ cheatcountry - Hann Window Smoothing
@ mutantdog - Interquartile Range function in his 'Blaze' script
Информация о релизе:
Added color to candles with a fader control. Also, added green & red symbols for visual ease of use in alerts.

No functional changes, just look & feel...
Информация о релизе:
Rather than having to choose between ATR or AIR range, a mixer with both has been added, where each can be added in appropriate proportions.

User color inputs added to menu.
Информация о релизе:
No functional changes.

6 exciting visual themes to choose from! Here's a few:

Информация о релизе:
Added 4 timeframe-adjustable moving average labels.

Keep an eye on the overall trend, especially when working on lower timeframes. Set EMA or SMA labels on Daily, 4h or any user-input higher timeframe. This is a useful tool for checking retest of support & resistance &/or confirmation of a trend, and generally keeping perspective without the need for zooming out the chart to a higher timeframe.

Includes an option in settings to display the moving averages on the chart:
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.

Хотите использовать этот скрипт на графике?