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)