OPEN-SOURCE SCRIPT
ATR Channels 1-2-3

It is an overlay indicator that builds a system of channels around a moving average using ATR as the distance metric. The script first calculates a central moving average of the closing price, which can be either EMA or SMA depending on the selected parameter. This moving average acts as the axis of the channels and is independent of the ATR calculation.
Next, it computes the Average True Range using a separate period. The ATR is used directly as an absolute measure of price volatility, without additional smoothing or normalization.
Based on the central moving average and the ATR value, three pairs of bands are generated. The first channel is created by adding and subtracting one ATR from the moving average. The second channel is created by adding and subtracting two times the ATR, and the third channel by adding and subtracting three times the ATR. There is no conditional or adaptive logic involved; the distances are linear and strictly proportional to the current ATR value.
All lines are recalculated on every bar close. The script does not include signals, filters, or trading logic. It purely visualizes volatility-adjusted price envelopes around a reference moving average.
Next, it computes the Average True Range using a separate period. The ATR is used directly as an absolute measure of price volatility, without additional smoothing or normalization.
Based on the central moving average and the ATR value, three pairs of bands are generated. The first channel is created by adding and subtracting one ATR from the moving average. The second channel is created by adding and subtracting two times the ATR, and the third channel by adding and subtracting three times the ATR. There is no conditional or adaptive logic involved; the distances are linear and strictly proportional to the current ATR value.
All lines are recalculated on every bar close. The script does not include signals, filters, or trading logic. It purely visualizes volatility-adjusted price envelopes around a reference moving average.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.