Matriks Destek ve Yardım Platformu

Matriks Ürünleri ile ilgili tüm sorularınız için bizlere buradan ulaşabilirsiniz. Daha önce sorulan soruları ve verilen cevapları ilgili sekmelerden ve arama üzerinden inceleyebilirsiniz. Sağ taraftaki kategoriler üzerinden İlgilendiğiniz özelliklerle ilgili soruları filtreleyebilirsiniz. Soru ve cevapları sosyal medyada paylaşabilirsiniz. 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.

0

Tradingview dakı asagıdakı acık kodu yazılan ındıkatoru matrıks dılıne cevırebılır mısınız

Soruldu
Görüntülenme
888 görüntülenme
Durum
Cevaplandı

//@version=4

// Copyright (c) 2021-present, Alex Orekhov (everget)

study("Nick Rypock Trailing Reverse", shorttitle="NRTR", overlay=true)

 

k = input(title="Coefficient of Correction, %", type=input.float, minval=0, maxval=100, step=0.1, defval=2)

showLabels = input(title="Show Buy/Sell Labels ?", type=input.bool, defval=true)

applyRibbon = input(title="Apply Ribbon ?", type=input.bool, defval=true)

 

var int trend = 0

var float hp = close

var float lp = close

float nrtr = close

 

percentage = k * 0.01

 

if trend >= 0

    if close > hp

        hp := close

        hp

    nrtr := hp * (1 - percentage)

    if close <= nrtr

        trend := -1

        lp := close

        nrtr := lp * (1 + percentage)

        nrtr

else

    if close < lp

        lp := close

        lp

    nrtr := lp * (1 + percentage)

    if close > nrtr

        trend := 1

        hp := close

        nrtr := hp * (1 - percentage)

        nrtr

 

var color longColor = color.green

var color shortColor = color.red

var color textColor = color.white

 

longStopPlot = plot(trend == 1 ? nrtr : na, title="Long Stop", style=plot.style_linebr, linewidth=2, color=longColor)

buySignal = trend == 1 and trend[1] == -1

plotshape(buySignal ? nrtr : na, title="Long Stop Start", location=location.absolute, style=shape.circle, size=size.tiny, color=longColor, transp=0)

plotshape(buySignal and showLabels ? nrtr : na, title="Buy Label", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=longColor, textcolor=textColor, transp=0)

 

shortStopPlot = plot(trend == 1 ? na : nrtr, title="Short Stop", style=plot.style_linebr, linewidth=2, color=shortColor)

sellSignal = trend == -1 and trend[1] == 1

plotshape(sellSignal ? nrtr : na, title="Short Stop Start", location=location.absolute, style=shape.circle, size=size.tiny, color=shortColor, transp=0)

plotshape(sellSignal and showLabels ? nrtr : na, title="Sell Label", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=shortColor, textcolor=textColor, transp=0)

 

midPricePlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0, display=display.none, editable=false)

 

longFillColor = applyRibbon ? (trend == 1 ? longColor : na) : na

shortFillColor = applyRibbon ? (trend == -1 ? shortColor : na) : na

fill(midPricePlot, longStopPlot, title="Long Ribbon", color=longFillColor)

fill(midPricePlot, shortStopPlot, title="Short Ribbon", color=shortFillColor)

 

changeCond = trend != trend[1]

alertcondition(changeCond, title="Alert: NRTR Direction Change", message="NRTR has changed direction!")

alertcondition(buySignal, title="Alert: NRTR Buy", message="NRTR Buy!")

alertcondition(sellSignal, title="Alert: NRTR Sell", message="NRTR Sell!")

 

 

Paylaş

1 Cevap

0
merhaba,

diğer dillerden formül çevirimi coğu zaman mümkün olmamaktadır,

formülü inceledik maalesef olumlu dönüş yapamıyoruz,

ancak o seviyelere yakın değer uretecek,

K1:=input("Period",1,500,22);
K2:=input("ATR Period",1,500,22);
mult:=input("ATR Çarpani",1,20,3);
ShortStop:=llv(l, K1) + mult * atre(K2);
LongStop:=hhv(h, K1) - mult * atre(K2);
FINALUPPERBAND:=IF(ShortStop<Prev or Ref(c,-1)>Prev,ShortStop,Prev);
FINALLOWERBAND:=IF(LongStop>Prev or Ref(c,-1)<Prev,LongStop,Prev);
ChandelierEXIT:=IF(REF(FINALUPPERBAND,-1)=Prev and C>FINALUPPERBAND,FINALLOWERBAND,IF(Prev=Ref(FINALLOWERBAND,-1) and C>=FINALLOWERBAND,FINALLOWERBAND,IF(Prev=Ref(FINALLOWERBAND,-1) and C<FINALLOWERBAND,FINALUPPERBAND,FINALUPPERBAND)));
ChandelierEXIT

 

formülüne göz atabilirsiniz,

bilgilerinize
BağlantıBayraklaserkanceMatriks Destek40.169

Cevabınız

Cevap yazmak için giriş yapın.Giriş yapKayıt ol