0 beğenilme 0 beğenilmeme
55 kez görüntülendi
indicator("RSITrend")

[plus,minus,adx]=ta.dmi(14,14)

sw=input.bool(true,'Highlight Ranging/Sideways')

showbarcolor=input.bool(true,'Apply Barcolor')

show_Baseline=input.bool(true,'Show Hull Trend')

rsiLengthInput = input.int(14, minval=1, title="RSI Length1", group="RSI Settings")

rsiLengthInput2 = input.int(28, minval=1, title="RSI Length2", group="RSI Settings")

trendlen= input(title='Hull Trend Length', defval=30,group='Hull Trend')

oversold=input.int(30, minval=1, title="Over Sold", group="RSI Settings")

overbought=input.int(70, minval=1, title="Over Bought", group="RSI Settings")

BBMC=ta.hma(close,trendlen)

MHULL = BBMC[0]

SHULL = BBMC[2]

hmac=MHULL > SHULL ?color.new(#00c3ff , 0):color.new(#ff0062, 0)

buysignal=MHULL > SHULL

sellsignal=MHULL < SHULL

frsi=ta.hma(ta.rsi(close,rsiLengthInput),10)

srsi=ta.hma(ta.rsi(close,rsiLengthInput2),10)

hullrsi1=ta.rsi(MHULL,rsiLengthInput)

hullrsi2=ta.rsi(SHULL,rsiLengthInput)

rsic=frsi>srsi?color.new(#00c3ff , 0):color.new(#ff0062, 0)

barcolor(showbarcolor?hmac:na)

hu1=plot(show_Baseline?hullrsi1:frsi,title='HMA1',color=color.gray,linewidth=1,display=display.none)

hu2=plot(show_Baseline?hullrsi2:srsi,title='HMA2',color=color.gray,linewidth=1,display=display.none)

fill(hu1,hu2,title='HULL RSI TREND',color=show_Baseline?hmac:rsic)

fill(hu1,hu2,title='HULL with Sideways',color=sw and adx<20?color.gray:na)

 

rsiUpperBand2 = hline(90, "RSI Upper Band(90)", color=color.red,linestyle=hline.style_dotted,display=display.none)

rsiUpperBand = hline(overbought, "RSI Upper Band", color=color.red,linestyle=hline.style_dotted,display=display.none)

fill(rsiUpperBand2,rsiUpperBand,title='Buy Zone',color=color.red,transp=80)

hline(50, "RSI Middle Band", color=color.new(#787B86, 50),linestyle=hline.style_solid)

rsiLowerBand = hline(oversold, "RSI Lower Band", color=color.green,linestyle=hline.style_dotted,display=display.none)

rsiLowerBand2 = hline(10, "RSI Lower Band(10)", color=color.green,linestyle=hline.style_dotted,display=display.none)

fill(rsiLowerBand,rsiLowerBand2,title='Sell Zone',color=color.green,transp=80)

 

plotshape(buysignal and sellsignal[1] ?hullrsi1 :na, title='Buy', style=shape.triangleup, location=location.absolute,  color=color.new(color.yellow, 0), size=size.tiny, offset=0)

plotshape(sellsignal  and buysignal[1] ?hullrsi1 :na, title='Sell', style=shape.triangledown, location=location.absolute, color=color.new(color.red, 0), size=size.tiny, offset=0)

 

alertcondition(buysignal and sellsignal[1] ,title='RSI TREND:Buy Signal',message='RSI TREND: Buy Signal')

alertcondition(sellsignal  and buysignal[1],title='RSI TREND:Sell Signal',message='RSI TREND: Sell Signal')
önce Grafik kategorisinde (88 puan) tarafından | 55 kez görüntülendi

1 cevap

0 beğenilme 0 beğenilmeme
Merhaba Cengiz Bey,

FRSI := mov( RSI(C,14), 10 ,hul);
SRSI := mov( RSI(C,28), 10,hul );

MHULL := mov( C, 30,hul );
SHULL := Ref(MHULL,-2);   

hullrsi1 := RSI(MHULL, 14);
hullrsi2 := RSI(SHULL, 14);

ADX14 := ADX(14);

BuySignal  := MHULL > SHULL AND Ref(MHULL,-1) < Ref(SHULL,-1);
SellSignal := MHULL < SHULL AND Ref(MHULL,-1) > Ref(SHULL,-1);

FRSI;          
SRSI;         
hullrsi1;      
hullrsi2; 30;70   

Şeklinde indikatör olarak inceleyebilirsiniz. Diğer platform bu çizgileri birleşik gibi boyayarak sunum yapıyor, maalesef bizim tarafta tek tek incelemeniz gerekmektedir 4 adet çizgisi bulunacak indikatörün.

Bilgilerinize.
önce (6,620 puan) tarafından
Hoş geldiniz, Matriks Destek Platformu sizlere sorularınızın hızlıca cevaplanması için bir ortam sağlar. Sorduğunuz ve cevapladığınız soruların ve yorumlarınızın aldığı oylar üzerinden puan kazanırsınız. Puan sistemine bağlı kampanyamızla ücretsiz kullanım avantajlarından faydalanabilirsiniz.



9,700 soru
9,659 cevap
5,195 yorum
48,270 kullanıcı