In this chart we can see an adaptation I made of an indicator a certain fellow named nanningbob uses in one of his trading systems.
It's a great thing to have, since Forex pairs are mostly ranging markets. It captures price movement very well, and gives realistic take profit levels, without having to risk major drawdown if used wisely.

Hope you like it and find it useful.

*Props to ucsgears for the original code I modified.

🔒Want to dive deeper? Check out my paid services below🔒

ivanlabrie.substack.com/
สคริปต์โอเพนซอร์ซ

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title="WMA Bands", shorttitle="WMAB", overlay=true)
source = close
length = input(240, minval=1, title = "WMA Length")
atrlen = input(500, minval=1, title = "ATR Length")
mult1 = 3.2
mult2 = 6.4
mult3 = 9.5
ma = wma(source, length)
range =  tr
rangewma = wma(range, atrlen)

up1 = ma + rangewma * mult1
up2 = ma + rangewma * mult2
up3 = ma + rangewma * mult3

dn1 = ma - rangewma * mult1
dn2 = ma - rangewma * mult2
dn3 = ma - rangewma * mult3

plot(ma, color=black)

color1 = silver
color2 = red
color3 = maroon

up01 = plot(up1, color = color1)
up02 = plot(up2, color = color2)
up03 = plot(up3, color = color3)

dn01 = plot(dn1, color = color1)
dn02 = plot(dn2, color = color2)
dn03 = plot(dn3, color = color3)