EmpoweredTrader

ET-ATR-Price-Overlay

Overlays the Average True Range high/low over Price. Shifts between support and resistance levels (based on ATR-21) according to price trend and breaks.

Average true range: en.wikipedia.org/wik...i/Average_true_range

@EmpoweredTrader

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
// @EmpoweredTrader
// Overlays ATR high/low over price.  Shifts between support and resistance levels (based on ATR-21) according to trend and breaks.
study(title="ET-ATR-Price-Overlay", shorttitle="ATR Overlay", overlay=true) 
sd = input(true, title="Show ATR?")


atrSeries = iff(na(atrSeries[1]), close + (atr(21)*3), iff(close > atrSeries[1], 
                                                        iff(close[1] < atrSeries[1], close - (atr(21)*3), iff(atrSeries[1] < close - (atr(21)*3), close - (atr(21)*3), atrSeries[1])), 
                                                         iff(close[1] > atrSeries[1], close + (atr(21)*3), iff(atrSeries[1] < close + (atr(21)*3), atrSeries[1], close + (atr(21)*3)))))

plot(atrSeries, title="ATR level",style=circles, color=blue ,linewidth=3)