0 beğenilme 0 beğenilmeme
779 kez görüntülendi
Merhabalar, aşagıdaki indikatörü ıqya nasıl ekleyebilirim.

//@version=4

study(title="UT Bot Alerts", overlay = true)

 

// Inputs

a = input(1,     title = "Key Vaule. 'This changes the sensitivity'")

c = input(10,    title = "ATR Period")

h = input(false, title = "Signals from Heikin Ashi Candles")

 

xATR  = atr(c)

nLoss = a * xATR

 

src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close

 

xATRTrailingStop = 0.0

xATRTrailingStop := iff(src > nz(xATRTrailingStop[1], 0) and src[1] > nz(xATRTrailingStop[1], 0), max(nz(xATRTrailingStop[1]), src - nLoss),

   iff(src < nz(xATRTrailingStop[1], 0) and src[1] < nz(xATRTrailingStop[1], 0), min(nz(xATRTrailingStop[1]), src + nLoss),

   iff(src > nz(xATRTrailingStop[1], 0), src - nLoss, src + nLoss)))

 

pos = 0   

pos := iff(src[1] < nz(xATRTrailingStop[1], 0) and src > nz(xATRTrailingStop[1], 0), 1,

   iff(src[1] > nz(xATRTrailingStop[1], 0) and src < nz(xATRTrailingStop[1], 0), -1, nz(pos[1], 0)))

   

xcolor = pos == -1 ? color.red: pos == 1 ? color.green : color.blue

 

ema   = ema(src,1)

above = crossover(ema, xATRTrailingStop)

below = crossover(xATRTrailingStop, ema)

 

buy  = src > xATRTrailingStop and above

sell = src < xATRTrailingStop and below

 

barbuy  = src > xATRTrailingStop

barsell = src < xATRTrailingStop

 

plotshape(buy,  title = "Buy",  text = 'Buy',  style = shape.labelup,   location = location.belowbar, color= color.green, textcolor = color.white, transp = 0, size = size.tiny)

plotshape(sell, title = "Sell", text = 'Sell', style = shape.labeldown, location = location.abovebar, color= color.red,   textcolor = color.white, transp = 0, size = size.tiny)

 

barcolor(barbuy  ? color.green : na)

barcolor(barsell ? color.red   : na)

 

alertcondition(buy,  "UT Long",  "UT Long")

alertcondition(sell, "UT Short", "UT Short")
Algoritmik Trading kategorisinde (18 puan) tarafından | 779 kez görüntülendi

1 cevap

0 beğenilme 0 beğenilmeme

Merhabalar,

Pinescript koduna hakim olmadığımızdan Tradingview’de yazılmış sistemlerin IQ’ya dönüştürülmesi noktasında maalesef yardımcı olamıyoruz.

Sistem ile ilgili detaylı bilgi verebilirseniz yardımcı olmaya çalışırız.

Bu arada yine açılan algo kütüphanemizde çok fazla strateji, Explorer ve indikatör bulunmaktadır.

Belki kullanmak istediğiniz indikatör orada olabilir anahtar kelime ile arama yapabilirsiniz.

https://www.algokutuphanesi.com/Sistem

İyi çalışmalar.

(11,069 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.



7,586 soru
7,592 cevap
4,435 yorum
10,412 kullanıcı