glaz

Ehlrers StochCCI

A variation of Ehlers stoch RSI replaced with CCI
สคริปต์โอเพนซอร์ซ

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
//By Glaz
//A variation of Ehlers stoch RSI
study("Ehlers StochCCI")
RSI_Length = input(8)
Stoc_Length = input(8)
WMA_Length = input(5)
docol = input(true,title="Color Change")

Value1 = cci( hlc3, RSI_Length ) - lowest( cci(hlc3, RSI_Length), Stoc_Length)
Value2 = highest(cci(close, RSI_Length ), Stoc_Length ) - lowest(cci(close,RSI_Length ),Stoc_Length )
Value3 = nz( Value1/Value2)
Value4 = 2 * ( wma( Value3, WMA_Length ) - 0.5)
Trigger = Value4[1] 


col = docol ? Value4 > Value4[1] ? #0094FF : #FF006E : #0094FF
plot(Value4,color=col)
plot(Trigger,color=yellow)
hline(0)
hline(0.80)
hline(-0.80)