tmr0

Moving RSI by tmr0

My moveing RSI strategy. Work on any pairs and timeframes
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
//coded by tmr0
//@version=2
strategy("Moving RSI by tmr0",shorttitle="tMRSI", overlay=false, default_qty_type=strategy.cash, default_qty_value=7000,  precision=0)

rsilen=input(3)
smalen=input(20)
chan=input(20, step=5)

s=hl2-sma(hl2,smalen)
z=rsi(s,rsilen)
plot(s, style =areabr, color = #b08040, transp=65)
hline(0, linestyle=dashed)
enterL = z<chan
enterS = z>(100-chan)

plotshape(enterL, "EnterL", style=shape.triangleup, color=teal, location=location.bottom)
plotshape(enterS, "EnterS", style=shape.triangledown, color=maroon, location=location.bottom)
//plotshape(overL and not enterS, "StopL", style=shape.square, color=teal, location=location.bottom)
//plotshape(overS and not enterL, "StopS", style=shape.square, color=maroon, location=location.bottom)

strategy.entry("Long", strategy.long, when=enterL)
strategy.entry("Short", strategy.short, when=enterS)
//strategy.close("Short", when=overS)
//strategy.close("Long", when=overL)