For Nmike Divergence Room
สคริปต์โอเพนซอร์ซ

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
//@version=2
study("Trix Bubble")

//Length setting
lengtha = input(5, minval=1)
lengthb = input(7,minval=1)
lengthc= input(9,minval=1)
lengthd =input(11,minval=1)
lengthe = input(14,minval=1)

Trix = 10000 * change(ema(ema(ema(log(close), lengtha), lengtha), lengtha)) // TRIX 5
Trixa = 10000 * change(ema(ema(ema(log(close), lengthb), lengthb), lengthb))// TRIX 7
Trixb = 10000 * change(ema(ema(ema(log(close), lengthc), lengthc), lengthc))// TRIX 9
Trixc = 10000 * change(ema(ema(ema(log(close), lengthd), lengthd), lengthd))// TRIX 11
Trixd = 10000 * change(ema(ema(ema(log(close), lengthe), lengthe), lengthe))// TRIX 14

plot(Trix, color=green, title="TRIX")
plot(Trixa, color=purple, title="TRIX")
plot(Trixb, color=blue, title="TRIX")
plot(Trixc, color=maroon, title="TRIX")
plot(Trixd, color=black, title="TRIX")