RicardoSantos

[RS]Volatility Bands V0

EXPERIMENTAL:
Displays Volatility Cycles and forecasts maximum volatility expectancy for a predetermined time frame.
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title='[RS]Volatility Bands V0', overlay=true)
src = input(close)
max_change_0 = na(max_change_0[1]) ? 0 : max(change(src, 1), max_change_0[1])
max_change_1 = na(max_change_1[1]) ? 0 : max(change(src, 2), max_change_1[1])
max_change_2 = na(max_change_2[1]) ? 0 : max(change(src, 3), max_change_2[1])
max_change_3 = na(max_change_3[1]) ? 0 : max(change(src, 4), max_change_3[1])
max_change_4 = na(max_change_4[1]) ? 0 : max(change(src, 5), max_change_4[1])
max_change_5 = na(max_change_5[1]) ? 0 : max(change(src, 6), max_change_5[1])
max_change_10 = na(max_change_10[1]) ? 0 : max(change(src, 11), max_change_10[1])
max_change_100 = na(max_change_100[1]) ? 0 : max(change(src, 101), max_change_100[1])

plot(close+max_change_0-change(src, 1), style=circles, color=red, offset=0)
plot(close+max_change_1-change(src, 2), style=line, color=red, offset=1)
plot(close+max_change_2-change(src, 3), style=circles, color=red, offset=2)
plot(close+max_change_3-change(src, 4), style=circles, color=red, offset=3)
plot(close+max_change_4-change(src, 5), style=circles, color=red, offset=4)
plot(close+max_change_5-change(src, 6), style=circles, color=red, offset=5)
plot(close+max_change_10-change(src, 11), style=line, color=red, offset=10)
plot(close+max_change_100-change(src, 101), style=line, color=red, offset=100)

plot(close-max_change_0+change(src, 1), style=circles, color=lime, offset=0)
plot(close-max_change_1+change(src, 2), style=line, color=lime, offset=1)
plot(close-max_change_2+change(src, 3), style=circles, color=lime, offset=2)
plot(close-max_change_3+change(src, 4), style=circles, color=lime, offset=3)
plot(close-max_change_4+change(src, 5), style=circles, color=lime, offset=4)
plot(close-max_change_5+change(src, 6), style=circles, color=lime, offset=5)
plot(close-max_change_10+change(src, 11), style=line, color=lime, offset=10)
plot(close-max_change_100+change(src, 101), style=line, color=lime, offset=100)