OrhanKaplan

Updated MA_RSI w/ 3 MA

I updated RicardoSantos' MA RSI V0. I added two more moving averages and changed the background color&style.
สคริปต์โอเพนซอร์ซ

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
study(title="MARSI3", shorttitle="3MA RSI", overlay=false)

basis = rsi(close, input(14))

ma1 = sma(basis, input(3))
ma2 = sma(basis, input(15))
ma3 = sma(basis, input(30))
ma4 = ema(basis, input(100))

oversold = input(30)
overbought = input(70)

plot(ma1, title="RSI MA1", style = area, color=purple, linewidth = 2)
plot(ma2, title="RSI MA2", color=maroon, linewidth = 2)
plot(ma3, title="RSI MA3", color=black, linewidth = 3)
plot(ma4, title="RSI MA3", color=navy, linewidth = 4)

obhist = ma1 >= overbought ? ma1 : overbought
oshist = ma1 <= oversold ? ma1 : oversold

plot(obhist, title="Overbought Highligth", style=area, color=red, histbase=overbought)
plot(oshist, title="Oversold Highligth", style=area, color=green, histbase=oversold)

i1 = hline(oversold, title="Oversold Level", color=purple)
i2 = hline(overbought, title="Overbought Level", color=purple)
fill(i1, i2, color=gray, transp=70)

hline(50, title="50 Level", color=black)