tmr0

Relative True Range

Dots show the total movement for the period as a percentage (profit potential).
Line shows the volatility of the period in relation to the beginning of the period.
オープンソーススクリプト

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

免責事項

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

チャートでこのスクリプトを利用したいですか?
//coded by tmr0
//точки показывают суммарное движение за период в процентах (потенциальная прибыль)
//линия показывает волатильность за период по отношению к началу периода
// dots show the total movement for the period as a percentage (profit potential)
// line shows the volatility of the period in relation to the beginning of the period

study(title="Relative True Range", shorttitle="tRTR", overlay=false, precision=1)
res = input("D", type=resolution)
len = input(20, minval=1)

y0 = (highest(len)-lowest(len))/hl2[len-1]*100
y = security(tickerid, res, y0)
z1= (high-low)/open
z0 = sum(z1, len)*100
z = security(tickerid, res, z0)

plot(z, color=purple, style=circles, transp=0, linewidth=2)
plot(y, color=y>50?red:y>25?orange:y>10?green:blue, style=area, transp=60)

hline(0, linestyle=dotted, color=blue)
hline(10, linestyle=dotted, color=green)
hline(25, linestyle=dotted, color=orange)
hline(50, linestyle=dotted, color=red)