Sayfa 25/272 ÝlkÝlk ... 1523242526273575125 ... SonSon
Arama sonucu : 2172 madde; 193 - 200 arasý.

Konu: Tradingview

  1. [QUOTE=oyunagelenadam;5104030]Yörük hocam bomba adamsýn..
    Viop on gorunuzu viop ticarethanesine atarsanýz sevinirim

    sn oyunagelenadam,
    bomba deðilim....aksine çok aciz biriyim...

    genel periyotlar ile 15 dakkalýk görüntüler ekledim...belki iþinize yarar...

    https://www.tradingview.com/x/9MvUl9gE/

    https://www.tradingview.com/x/wMNywgSz/

    https://www.tradingview.com/x/oYQpbNJ7/

    https://www.tradingview.com/x/G0qhhEOZ/

    https://www.tradingview.com/x/9Lweb04k/

    https://www.tradingview.com/x/OWRQ1Lb8/

    https://www.tradingview.com/x/4K9ka6SB/
    Teknik olarak; yarýna gebe olan bugünü yaþamalý ki, yarýn, yaþanmýþ olsun.


  2. Teknik olarak; yarýna gebe olan bugünü yaþamalý ki, yarýn, yaþanmýþ olsun.

  3. þimdiye kadar...yazýlan...incelenilen....farklý kiþilerin scriptleri ile basit sistemler kurma....

    yazýlan scriptlerin....deðerlerinde ve görsellerinde oynama üzerine.....

    kurulabilecek birkaç sistem örneði..... yazýlarýn.... 2021 yýl sonuna kadar sonlandýrýlýmasý...
    Teknik olarak; yarýna gebe olan bugünü yaþamalý ki, yarýn, yaþanmýþ olsun.


  4. bu sistem örneðinde;

    stopv kodu, hacmin stop olarak kullanýlmasý ve hacimle trend belirlenmesi, görseldeki rengi beyaz çizgi.....

    kodu(deðiþtirebilirsiniz) ise:

    study("Volatility Stop", shorttitle="StopV", overlay=true)
    length = input(10)
    mult = input(2)
    atr_ = atr(length)
    max1 = max(nz(max_[1]), close)
    min1 = min(nz(min_[1]), close)
    is_uptrend_prev = nz(is_uptrend[1], true)
    stop = is_uptrend_prev ? max1 - mult * atr_ : min1 + mult * atr_
    vstop_prev = nz(vstop[1])
    vstop1 = is_uptrend_prev ? max(vstop_prev, stop) : min(vstop_prev, stop)
    is_uptrend = close - vstop1 >= 0
    is_trend_changed = is_uptrend != is_uptrend_prev
    max_ = is_trend_changed ? close : max1
    min_ = is_trend_changed ? close : min1
    vstop = is_trend_changed ? is_uptrend ? max_ - mult * atr_ : min_ + mult * atr_ : vstop1
    plot(vstop, color = is_uptrend ? green : red, style=cross, linewidth=2)


    yörük yazan ise devinasyon ile 100 bar için kanal hesaplamasýdýr.....
    görselde kýrmýzý-mavi-yeþil çizgi olarak gözükür....

    kodu(deðiþtirebilirsiniz) ise:


    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © LucemAnb
    // User Version

    //@version=4
    study("Trend", "Yörük", overlay=true)


    source = input(close)
    length = input(100, minval=1)
    offset = input(0, minval=0)
    dev = input(2.0, "Deviation")
    smoothing = input(1, minval=1)
    mtf_val = input("", "Resolution", input.resolution)
    line_thick = input(4, "S&R Thickness", minval=1, maxval=4)
    signals = input("Recent", "Signals Display", options=["Recent", "All"])
    p = input("Lime", "Up Color", options=["Red", "Lime", "Orange", "Teal", "Yellow", "White", "Black"])
    q = input("Red", "Down Color", options=["Red", "Lime", "Orange", "Teal", "Yellow", "White", "Black"])
    goto = input(0, "End At Bar Index")

    cc(x) => x=="Red"?color.red:x=="Lime"?color.lime:x=="Orange "?color.orange:x=="Teal"?
    color.teal:x=="Yellow"?color.yellow:x=="Black"?col or.black:color.white
    data(x) => sma(security(syminfo.tickerid, mtf_val!="" ? mtf_val : timeframe.period, x), smoothing)

    linreg = data(linreg(source, length, offset))
    linreg_p = data(linreg(source, length, offset+1))


    x = bar_index
    slope = linreg - linreg_p
    intercept = linreg - x*slope
    deviationSum = 0.0
    for i=0 to length-1
    deviationSum:= deviationSum + pow(source[i]-(slope*(x-i)+intercept), 2)
    deviation = sqrt(deviationSum/(length))
    x1 = x-length
    x2 = x
    y1 = slope*(x-length)+intercept
    y2 = linreg

    updating = goto <= 0 or x < goto

    if updating
    line b = line.new(x1, y1, x2, y2, xloc.bar_index, extend.right, color.**ua, width=line_thick)
    line.delete(b[1])
    line dp = line.new(x1, deviation*dev + y1, x2, deviation*dev + y2, xloc.bar_index, extend.right, cc(q), width=line_thick)
    line.delete(dp[1])
    line dm = line.new(x1, -deviation*dev + y1, x2, -deviation*dev + y2, xloc.bar_index, extend.right, cc(p), width=line_thick)
    line.delete(dm[1])

    dm_current = -deviation*dev + y2
    dp_current = deviation*dev + y2
    buy = crossunder(close, dm_current)
    sell = crossover(close, dp_current)
    alertcondition(buy, "Buy Lin Reg", "Crossing On the Lower Regression Channel")
    alertcondition(sell, "Sell Lin Reg", "Crossing On the Higher Regression Channel")

    plotshape(buy, "BUY", shape.labelup, location.belowbar, color.lime, text='BUY', textcolor=color.black, show_last=signals=="All"?99999999:length)
    plotshape(sell, "SELL", shape.labeldown, location.abovebar, color.red, text='SELL', textcolor=color.white, show_last=signals=="All"?99999999:length)

    plot(x, "Bar Index", color.**ua, line_thick, plot.style_cross, display=display.none)


    son olarak tr3 ise hareketli ortalamar -atr hesaplamasýyla elde edilen pmax ile
    belirlenecek 20 þeyi strateji testi dahil trendlerini takip etme.....

    kodu deðiþtirilebilir, belirlenen hisseler deðiþtirilebilir...azaltýlýr-artýrýlýr.....
    kodu ise uzun ama yapmanýz gereken pine kopyalamak....kývanç hocanýn çalýþmasýdýr....

    kodu ise:


    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © KivancOzbilgic
    //developer: KivancOzbilgic
    //author: KivancOzbilgic
    //@version=4
    strategy("PMax Explorer", shorttitle="Tr3", overlay=true)
    src = input(hl2, title="Source")
    Periods = input(title="ATR Length", type=input.integer, defval=10)
    Multiplier = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
    mav = input(title="Moving Average Type", defval="EMA", options=["SMA", "EMA", "WMA", "TMA", "VAR", "WWMA", "ZLEMA", "TSF"])
    length =input(3, "Moving Average Length", minval=1)
    changeATR= input(title="Change ATR Calculation Method ?", type=input.bool, defval=true)
    showsupport = input(title="Show Moving Average?", type=input.bool, defval=true)
    showsignalsk = input(title="Show Crossing Signals?", type=input.bool, defval=true)
    showsignalsc = input(title="Show Price/Pmax Crossing Signals?", type=input.bool, defval=false)
    highlighting = input(title="Highlighter On/Off ?", type=input.bool, defval=true)
    atr2 = sma(tr, Periods)
    atr= changeATR ? atr(Periods) : atr2
    Var_Func(src,length)=>
    valpha=2/(length+1)
    vud1=src>src[1] ? src-src[1] : 0
    vdd1=src<src[1] ? src[1]-src : 0
    vUD=sum(vud1,9)
    vDD=sum(vdd1,9)
    vCMO=nz((vUD-vDD)/(vUD+vDD))
    VAR=0.0
    VAR:=nz(valpha*abs(vCMO)*src)+(1-valpha*abs(vCMO))*nz(VAR[1])
    VAR=Var_Func(src,length)
    Wwma_Func(src,length)=>
    wwalpha = 1/ length
    WWMA = 0.0
    WWMA := wwalpha*src + (1-wwalpha)*nz(WWMA[1])
    WWMA=Wwma_Func(src,length)
    Zlema_Func(src,length)=>
    zxLag = length/2==round(length/2) ? length/2 : (length - 1) / 2
    zxEMAData = (src + (src - src[zxLag]))
    ZLEMA = ema(zxEMAData, length)
    ZLEMA=Zlema_Func(src,length)
    Tsf_Func(src,length)=>
    lrc = linreg(src, length, 0)
    lrc1 = linreg(src,length,1)
    lrs = (lrc-lrc1)
    TSF = linreg(src, length, 0)+lrs
    TSF=Tsf_Func(src,length)
    getMA(src, length) =>
    ma = 0.0
    if mav == "SMA"
    ma := sma(src, length)
    ma

    if mav == "EMA"
    ma := ema(src, length)
    ma

    if mav == "WMA"
    ma := wma(src, length)
    ma

    if mav == "TMA"
    ma := sma(sma(src, ceil(length / 2)), floor(length / 2) + 1)
    ma

    if mav == "VAR"
    ma := VAR
    ma

    if mav == "WWMA"
    ma := WWMA
    ma

    if mav == "ZLEMA"
    ma := ZLEMA
    ma

    if mav == "TSF"
    ma := TSF
    ma
    ma

    MAvg=getMA(src, length)
    Pmax_Func(src,length)=>
    longStop = MAvg - Multiplier*atr
    longStopPrev = nz(longStop[1], longStop)
    longStop := MAvg > longStopPrev ? max(longStop, longStopPrev) : longStop
    shortStop = MAvg + Multiplier*atr
    shortStopPrev = nz(shortStop[1], shortStop)
    shortStop := MAvg < shortStopPrev ? min(shortStop, shortStopPrev) : shortStop
    dir = 1
    dir := nz(dir[1], dir)
    dir := dir == -1 and MAvg > shortStopPrev ? 1 : dir == 1 and MAvg < longStopPrev ? -1 : dir
    PMax = dir==1 ? longStop: shortStop
    PMax=Pmax_Func(src,length)
    plot(showsupport ? MAvg : na, color=#0585E1, linewidth=2, title="Moving Avg Line")
    pALL=plot(PMax, color=color.red, linewidth=2, title="PMax", transp=0)
    alertcondition(cross(MAvg, PMax), title="Cross Alert", message="PMax - Moving Avg Crossing!")
    alertcondition(crossover(MAvg, PMax), title="Crossover Alarm", message="Moving Avg BUY SIGNAL!")
    alertcondition(crossunder(MAvg, PMax), title="Crossunder Alarm", message="Moving Avg SELL SIGNAL!")
    alertcondition(cross(src, PMax), title="Price Cross Alert", message="PMax - Price Crossing!")
    alertcondition(crossover(src, PMax), title="Price Crossover Alarm", message="PRICE OVER PMax - BUY SIGNAL!")
    alertcondition(crossunder(src, PMax), title="Price Crossunder Alarm", message="PRICE UNDER PMax - SELL SIGNAL!")
    buySignalk = crossover(MAvg, PMax)
    plotshape(buySignalk and showsignalsk ? PMax*0.995 : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
    sellSignallk = crossunder(MAvg, PMax)
    plotshape(sellSignallk and showsignalsk ? PMax*1.005 : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
    buySignalc = crossover(src, PMax)
    plotshape(buySignalc and showsignalsc ? PMax*0.995 : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=#0F18BF, textcolor=color.white, transp=0)
    sellSignallc = crossunder(src, PMax)
    plotshape(sellSignallc and showsignalsc ? PMax*1.005 : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=#0F18BF, textcolor=color.white, transp=0)
    mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0,display=display.none)
    longFillColor = highlighting ? (MAvg>PMax ? color.green : na) : na
    shortFillColor = highlighting ? (MAvg<PMax ? color.red : na) : na
    fill(mPlot, pALL, title="UpTrend Highligter", color=longFillColor)
    fill(mPlot, pALL, title="DownTrend Highligter", color=shortFillColor)
    showscr = input(true, title="Show Screener Label")
    posX_scr = input(20, title="Pos. Label x-axis")
    posY_scr = input(1, title="Pos. Size Label y-axis")
    colinput = input(title="Label Color", defval="White", options=["White", "Black", "Red", "Green", "Yellow", "Blue"])
    col = color.gray
    if colinput=="White"
    col:=color.white
    if colinput=="Black"
    col:=color.black
    if colinput=="Red"
    col:=color.red
    if colinput=="Green"
    col:=color.green
    if colinput=="Yellow"
    col:=color.yellow
    if colinput=="Blue"
    col:=color.blue
    dummy0 = input(true, title = "=Backtest Inputs=")
    FromDay = input(defval = 1, title = "From Day", minval = 1, maxval = 31)
    FromMonth = input(defval = 1, title = "From Month", minval = 1, maxval = 12)
    FromYear = input(defval = 2005, title = "From Year", minval = 2005)
    ToDay = input(defval = 1, title = "To Day", minval = 1, maxval = 31)
    ToMonth = input(defval = 1, title = "To Month", minval = 1, maxval = 12)
    ToYear = input(defval = 9999, title = "To Year", minval = 2006)
    Start = timestamp(FromYear, FromMonth, FromDay, 00, 00)
    Finish = timestamp(ToYear, ToMonth, ToDay, 23, 59)
    Timerange() =>
    time >= Start and time <= Finish ? true : false
    if buySignalk
    strategy.entry("Long", strategy.long,when=Timerange())
    if sellSignallk
    strategy.entry("Short", strategy.short,when=Timerange())
    t1=input('AKBNK', title='Symbol 01',type=input.symbol)
    t2=input('YKBNK', title='Symbol 02',type=input.symbol)
    t3=input('GARAN', title='Symbol 03',type=input.symbol)
    t4=input('ISCTR', title='Symbol 04',type=input.symbol)
    t5=input('HALKB', title='Symbol 05',type=input.symbol)
    t6=input('VAKBN', title='Symbol 06',type=input.symbol)
    t7=input('ARCLK', title='Symbol 07',type=input.symbol)
    t8=input('ASELS', title='Symbol 08',type=input.symbol)
    t9=input('BIMAS', title='Symbol 09',type=input.symbol)
    t10=input('EKGYO', title='Symbol 10',type=input.symbol)
    t11=input('EREGL', title='Symbol 11',type=input.symbol)
    t12=input('KCHOL', title='Symbol 12',type=input.symbol)
    t13=input('KOZAA', title='Symbol 13',type=input.symbol)
    t14=input('KOZAL', title='Symbol 14',type=input.symbol)
    t15=input('KRDMD', title='Symbol 15',type=input.symbol)
    t16=input('OYAKC', title='Symbol 16',type=input.symbol)
    t17=input('PETKM', title='Symbol 17',type=input.symbol)
    t18=input('PGSUS', title='Symbol 18',type=input.symbol)
    t19=input('SISE', title='Symbol 19',type=input.symbol)
    t20=input('TCELL', title='Symbol 20',type=input.symbol)
    Pmax(Multiplier, Periods) =>
    Up=MAvg-(Multiplier*atr)
    Dn=MAvg+(Multiplier*atr)

    TrendUp = 0.0
    TrendUp := MAvg[1]>TrendUp[1] ? max(Up,TrendUp[1]) : Up
    TrendDown = 0.0
    TrendDown := MAvg[1]<TrendDown[1]? min(Dn,TrendDown[1]) : Dn
    Trend = 0.0
    Trend := MAvg > TrendDown[1] ? 1: MAvg< TrendUp[1]? -1: nz(Trend[1],1)
    Tsl = Trend==1? TrendUp: TrendDown

    S_Buy = Trend == 1 ? 1 : 0
    S_Sell = Trend != 1 ? 1 : 0

    [Trend, Tsl]
    [Trend, Tsl] = Pmax(Multiplier, Periods)
    TrendReversal = Trend != Trend[1]
    [t01, s01] = security(t1, timeframe.period, Pmax(Multiplier, Periods))
    [t02, s02] = security(t2, timeframe.period, Pmax(Multiplier, Periods))
    [t03, s03] = security(t3, timeframe.period, Pmax(Multiplier, Periods))
    [t04, s04] = security(t4, timeframe.period, Pmax(Multiplier, Periods))
    [t05, s05] = security(t5, timeframe.period, Pmax(Multiplier, Periods))
    [t06, s06] = security(t6, timeframe.period, Pmax(Multiplier, Periods))
    [t07, s07] = security(t7, timeframe.period, Pmax(Multiplier, Periods))
    [t08, s08] = security(t8, timeframe.period, Pmax(Multiplier, Periods))
    [t09, s09] = security(t9, timeframe.period, Pmax(Multiplier, Periods))
    [t010, s010] = security(t10, timeframe.period, Pmax(Multiplier, Periods))
    [t011, s011] = security(t11, timeframe.period, Pmax(Multiplier, Periods))
    [t012, s012] = security(t12, timeframe.period, Pmax(Multiplier, Periods))
    [t013, s013] = security(t13, timeframe.period, Pmax(Multiplier, Periods))
    [t014, s014] = security(t14, timeframe.period, Pmax(Multiplier, Periods))
    [t015, s015] = security(t15, timeframe.period, Pmax(Multiplier, Periods))
    [t016, s016] = security(t16, timeframe.period, Pmax(Multiplier, Periods))
    [t017, s017] = security(t17, timeframe.period, Pmax(Multiplier, Periods))
    [t018, s018] = security(t18, timeframe.period, Pmax(Multiplier, Periods))
    [t019, s019] = security(t19, timeframe.period, Pmax(Multiplier, Periods))
    [t020, s020] = security(t20, timeframe.period, Pmax(Multiplier, Periods))
    tr01 = t01 != t01[1], up01 = t01 == 1, dn01 = t01 == -1
    tr02 = t02 != t02[1], up02 = t02 == 1, dn02 = t02 == -1
    tr03 = t03 != t03[1], up03 = t03 == 1, dn03 = t03 == -1
    tr04 = t04 != t04[1], up04 = t04 == 1, dn04 = t04 == -1
    tr05 = t05 != t05[1], up05 = t05 == 1, dn05 = t05 == -1
    tr06 = t06 != t06[1], up06 = t06 == 1, dn06 = t06 == -1
    tr07 = t07 != t07[1], up07 = t07 == 1, dn07 = t07 == -1
    tr08 = t08 != t08[1], up08 = t08 == 1, dn08 = t08 == -1
    tr09 = t09 != t09[1], up09 = t09 == 1, dn09 = t09 == -1
    tr010 = t010 != t010[1], up010 = t010 == 1, dn010 = t010 == -1
    tr011 = t011 != t011[1], up011 = t011 == 1, dn011 = t011 == -1
    tr012 = t012 != t012[1], up012 = t012 == 1, dn012 = t012 == -1
    tr013 = t013 != t013[1], up013 = t013 == 1, dn013 = t013 == -1
    tr014 = t014 != t014[1], up014 = t014 == 1, dn014 = t014 == -1
    tr015 = t015 != t015[1], up015 = t015 == 1, dn015 = t015 == -1
    tr016 = t016 != t016[1], up016 = t016 == 1, dn016 = t016 == -1
    tr017 = t017 != t017[1], up017 = t017 == 1, dn017 = t017 == -1
    tr018 = t018 != t018[1], up018 = t018 == 1, dn018 = t018 == -1
    tr019 = t019 != t019[1], up019 = t019 == 1, dn019 = t019 == -1
    tr020 = t020 != t020[1], up020 = t020 == 1, dn020 = t020 == -1
    pot_label = 'Potential Reversal: \n'
    pot_label := tr01 ? pot_label + t1 + '\n' : pot_label
    pot_label := tr02 ? pot_label + t2 + '\n' : pot_label
    pot_label := tr03 ? pot_label + t3 + '\n' : pot_label
    pot_label := tr04 ? pot_label + t4 + '\n' : pot_label
    pot_label := tr05 ? pot_label + t5 + '\n' : pot_label
    pot_label := tr06 ? pot_label + t6 + '\n' : pot_label
    pot_label := tr07 ? pot_label + t7 + '\n' : pot_label
    pot_label := tr08 ? pot_label + t8 + '\n' : pot_label
    pot_label := tr09 ? pot_label + t9 + '\n' : pot_label
    pot_label := tr010 ? pot_label + t10 + '\n' : pot_label
    pot_label := tr011 ? pot_label + t11 + '\n' : pot_label
    pot_label := tr012 ? pot_label + t12 + '\n' : pot_label
    pot_label := tr013 ? pot_label + t13 + '\n' : pot_label
    pot_label := tr014 ? pot_label + t14 + '\n' : pot_label
    pot_label := tr015 ? pot_label + t15 + '\n' : pot_label
    pot_label := tr016 ? pot_label + t16 + '\n' : pot_label
    pot_label := tr017 ? pot_label + t17 + '\n' : pot_label
    pot_label := tr018 ? pot_label + t18 + '\n' : pot_label
    pot_label := tr019 ? pot_label + t19 + '\n' : pot_label
    pot_label := tr020 ? pot_label + t20 + '\n' : pot_label
    scr_label = 'Confirmed Reversal: \n'
    scr_label := tr01[1] ? scr_label + t1 + '\n' : scr_label
    scr_label := tr02[1] ? scr_label + t2 + '\n' : scr_label
    scr_label := tr03[1] ? scr_label + t3 + '\n' : scr_label
    scr_label := tr04[1] ? scr_label + t4 + '\n' : scr_label
    scr_label := tr05[1] ? scr_label + t5 + '\n' : scr_label
    scr_label := tr06[1] ? scr_label + t6 + '\n' : scr_label
    scr_label := tr07[1] ? scr_label + t7 + '\n' : scr_label
    scr_label := tr08[1] ? scr_label + t8 + '\n' : scr_label
    scr_label := tr09[1] ? scr_label + t9 + '\n' : scr_label
    scr_label := tr010[1] ? scr_label + t10 + '\n' : scr_label
    scr_label := tr011[1] ? scr_label + t11 + '\n' : scr_label
    scr_label := tr012[1] ? scr_label + t12 + '\n' : scr_label
    scr_label := tr013[1] ? scr_label + t13 + '\n' : scr_label
    scr_label := tr014[1] ? scr_label + t14 + '\n' : scr_label
    scr_label := tr015[1] ? scr_label + t15 + '\n' : scr_label
    scr_label := tr016[1] ? scr_label + t16 + '\n' : scr_label
    scr_label := tr017[1] ? scr_label + t17 + '\n' : scr_label
    scr_label := tr018[1] ? scr_label + t18 + '\n' : scr_label
    scr_label := tr019[1] ? scr_label + t19 + '\n' : scr_label
    scr_label := tr020[1] ? scr_label + t20 + '\n' : scr_label
    up_label = 'Uptrend: \n'
    up_label := up01[1] ? up_label + t1 + '\n' : up_label
    up_label := up02[1] ? up_label + t2 + '\n' : up_label
    up_label := up03[1] ? up_label + t3 + '\n' : up_label
    up_label := up04[1] ? up_label + t4 + '\n' : up_label
    up_label := up05[1] ? up_label + t5 + '\n' : up_label
    up_label := up06[1] ? up_label + t6 + '\n' : up_label
    up_label := up07[1] ? up_label + t7 + '\n' : up_label
    up_label := up08[1] ? up_label + t8 + '\n' : up_label
    up_label := up09[1] ? up_label + t9 + '\n' : up_label
    up_label := up010[1] ? up_label + t10 + '\n' : up_label
    up_label := up011[1] ? up_label + t11 + '\n' : up_label
    up_label := up012[1] ? up_label + t12 + '\n' : up_label
    up_label := up013[1] ? up_label + t13 + '\n' : up_label
    up_label := up014[1] ? up_label + t14 + '\n' : up_label
    up_label := up015[1] ? up_label + t15 + '\n' : up_label
    up_label := up016[1] ? up_label + t16 + '\n' : up_label
    up_label := up017[1] ? up_label + t17 + '\n' : up_label
    up_label := up018[1] ? up_label + t18 + '\n' : up_label
    up_label := up019[1] ? up_label + t19 + '\n' : up_label
    up_label := up020[1] ? up_label + t20 + '\n' : up_label
    dn_label = 'Downtrend: \n'
    dn_label := dn01[1] ? dn_label + t1 + '\n' : dn_label
    dn_label := dn02[1] ? dn_label + t2 + '\n' : dn_label
    dn_label := dn03[1] ? dn_label + t3 + '\n' : dn_label
    dn_label := dn04[1] ? dn_label + t4 + '\n' : dn_label
    dn_label := dn05[1] ? dn_label + t5 + '\n' : dn_label
    dn_label := dn06[1] ? dn_label + t6 + '\n' : dn_label
    dn_label := dn07[1] ? dn_label + t7 + '\n' : dn_label
    dn_label := dn08[1] ? dn_label + t8 + '\n' : dn_label
    dn_label := dn09[1] ? dn_label + t9 + '\n' : dn_label
    dn_label := dn010[1] ? dn_label + t10 + '\n' : dn_label
    dn_label := dn011[1] ? dn_label + t11 + '\n' : dn_label
    dn_label := dn012[1] ? dn_label + t12 + '\n' : dn_label
    dn_label := dn013[1] ? dn_label + t13 + '\n' : dn_label
    dn_label := dn014[1] ? dn_label + t14 + '\n' : dn_label
    dn_label := dn015[1] ? dn_label + t15 + '\n' : dn_label
    dn_label := dn016[1] ? dn_label + t16 + '\n' : dn_label
    dn_label := dn017[1] ? dn_label + t17 + '\n' : dn_label
    dn_label := dn018[1] ? dn_label + t18 + '\n' : dn_label
    dn_label := dn019[1] ? dn_label + t19 + '\n' : dn_label
    dn_label := dn020[1] ? dn_label + t20 + '\n' : dn_label
    f_colorscr (_valscr ) =>
    _valscr ? #00000000 : na

    f_printscr (_txtscr ) =>
    var _lblscr = label(na),
    label.delete(_lblscr ),
    _lblscr := label.new(
    time + (time-time[1])*posX_scr ,
    ohlc4[posY_scr],
    _txtscr ,
    xloc.bar_time,
    yloc.price,
    f_colorscr ( showscr ),
    textcolor = showscr ? col : na,
    size = size.normal,
    style=label.style_label_center
    )
    f_printscr ( scr_label + '\n' + pot_label +'\n' + up_label + '\n' + dn_label)
    Teknik olarak; yarýna gebe olan bugünü yaþamalý ki, yarýn, yaþanmýþ olsun.

  5.  Alýntý Originally Posted by @yörük@ Yazýyý Oku

    bu sistem örneðinde;

    Tüm senetleri içeren bir graf atmanýz mümkün mü ?
    Yazdýklarým yatýrým danýþmanlýðý kapsamýnda olmayýp doðacak kar veya zarardan sorumlu deðilim...


  6. bu basit sistem örneðinde ise
    stopv ye 9eme ve sling shot sistem örneði iliþkilenmiþtir....
    beyaz stopv çizgisi.....eflatun çizgi 9 ema.....kýrmýzý ve yeþil üçgenler slingshot kanallarý.....
    oluþan oklar ise standart indikatörlerin fibo ile iliþkilenmesi sonucu.... al sat sinyalleri gibidir....


    hepsinde deðiþiklik yapaýlabiliyor....

    stopv kodu önceki iletide paylaþýldýðý için

    9ema kodu ise;

    //@version=3
    study(title="D 9EMA", overlay=true)
    src = close, len = 9
    out = ema(src, len)
    out1 = security(tickerid, "D" , out)
    plot(out1)


    sling shot sistemin kodu ise ;

    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © Noldo

    //@version=4
    study("ANN BTC MTF CM Sling Shot System" , overlay = true , max_bars_back = 1)
    src = close[0]

    // Definition : INDICATORS

    // RSI

    _rsi = rsi(close,14)

    // MACD

    fun_macd(_src,_fastlen,_slowlen,_signallen) =>

    float _output = na
    _macd = ema(_src,_fastlen) - ema(_src,_slowlen)
    _signal = ema(_macd , _signallen)
    _output := _macd - _signal


    _hist = fun_macd(src,12,26,9)

    // MOMENTUM

    t_mom = 10


    f_mom(_src , _length) =>

    _output = 0.00
    _length_adjusted = _length < 0 ? 0 : _length

    _output := nz((_src / _src[_length_adjusted] ) - 1 ) * 100


    mom = f_mom(src , t_mom)

    // BOLLINGER BANDS

    length = 20
    mult = 2.0
    basis = sma(src, length)
    dev = mult * stdev(src, length)
    upper = basis + dev
    lower = basis - dev


    // CM GUPPY EMA

    len1 = 3
    len2 = 5
    len3 = 8
    len4 = 10
    len5 = 12
    len6 = 15
    //Slow EMA
    len7 = 30
    len8 = 35
    len9 = 40
    len10 = 45
    len11 = 50
    len12 = 60


    //Fast EMA
    ema1 = ema(src, len1)
    ema2 = ema(src, len2)
    ema3 = ema(src, len3)
    ema4 = ema(src, len4)
    ema5 = ema(src, len5)
    ema6 = ema(src, len6)
    //Slow EMA
    ema7 = ema(src, len7)
    ema8 = ema(src, len8)
    ema9 = ema(src, len9)
    ema10 = ema(src, len10)
    ema11 = ema(src, len11)
    ema12 = ema(src, len12)
    // DEEP LEARNING INDICATORS

    _indicator1 = ((_rsi - _rsi[1] ) / (_rsi[1]))
    _indicator2 = ((volume - volume[1] ) / (volume[1]))
    _indicator3 = ((_hist - _hist[1] ) / (_hist[1]))
    _indicator4 = ((mom - mom[1] ) / (mom[1]))
    _indicator5 = ((lower - lower[1] ) / (lower[1]))
    _indicator6 = ((basis - basis[1] ) / (basis[1]))
    _indicator7 = ((upper - upper[1] ) / (upper[1]))

    _indicator8 = ((ema1 - ema1[1] ) / (ema1[1]))
    _indicator9 = ((ema2 - ema2[1] ) / (ema2[1]))
    _indicator10 = ((ema3 - ema3[1] ) / (ema3[1]))
    _indicator11 = ((ema4 - ema4[1] ) / (ema4[1]))
    _indicator12 = ((ema5 - ema5[1] ) / (ema5[1]))
    _indicator13 = ((ema6 - ema6[1] ) / (ema6[1]))
    _indicator14 = ((ema7 - ema7[1] ) / (ema7[1]))
    _indicator15 = ((ema8 - ema8[1] ) / (ema8[1]))
    _indicator16 = ((ema9 - ema9[1] ) / (ema9[1]))
    _indicator17 = ((ema10 - ema10[1] ) / (ema10[1]))
    _indicator18 = ((ema11 - ema11[1] ) / (ema11[1]))
    _indicator19 = ((ema12 - ema12[1] ) / (ema12[1]))

    // Inputs on Tangent Function :

    tangentdiff(_src) => nz((_src - _src[1]) / _src[1] )


    // Deep Learning Activation Function (Tanh) :

    ActivationFunctionTanh(v) => (1 - exp(-2 * v))/( 1 + exp(-2 * v))


    // DEEP LEARNING

    // INPUTS :

    input_1 = tangentdiff(_indicator1)
    input_2 = tangentdiff(_indicator2)
    input_3 = tangentdiff(_indicator3)
    input_4 = tangentdiff(_indicator4)
    input_5 = tangentdiff(_indicator5)
    input_6 = tangentdiff(_indicator6)
    input_7 = tangentdiff(_indicator7)
    input_8 = tangentdiff(_indicator8)
    input_9 = tangentdiff(_indicator9)
    input_10 = tangentdiff(_indicator10)
    input_11 = tangentdiff(_indicator11)
    input_12 = tangentdiff(_indicator12)
    input_13 = tangentdiff(_indicator13)
    input_14 = tangentdiff(_indicator14)
    input_15 = tangentdiff(_indicator15)
    input_16 = tangentdiff(_indicator16)
    input_17 = tangentdiff(_indicator17)
    input_18 = tangentdiff(_indicator18)
    input_19 = tangentdiff(_indicator19)


    // LAYERS :

    // Input Layers

    n_0 = ActivationFunctionTanh(input_1 + 0)
    n_1 = ActivationFunctionTanh(input_2 + 0)
    n_2 = ActivationFunctionTanh(input_3 + 0)
    n_3 = ActivationFunctionTanh(input_4 + 0)
    n_4 = ActivationFunctionTanh(input_5 + 0)
    n_5 = ActivationFunctionTanh(input_6 + 0)
    n_6 = ActivationFunctionTanh(input_7 + 0)
    n_7 = ActivationFunctionTanh(input_8 + 0)
    n_8 = ActivationFunctionTanh(input_9 + 0)
    n_9 = ActivationFunctionTanh(input_10 + 0)
    n_10 = ActivationFunctionTanh(input_11 + 0)
    n_11 = ActivationFunctionTanh(input_12 + 0)
    n_12 = ActivationFunctionTanh(input_13 + 0)
    n_13 = ActivationFunctionTanh(input_14 + 0)
    n_14 = ActivationFunctionTanh(input_15 + 0)
    n_15 = ActivationFunctionTanh(input_16 + 0)
    n_16 = ActivationFunctionTanh(input_17 + 0)
    n_17 = ActivationFunctionTanh(input_18 + 0)
    n_18 = ActivationFunctionTanh(input_19 + 0)


    //

    // BTC 1 Minute

    fun_btc1() =>

    float _output = na

    n_19 = ActivationFunctionTanh(0.001035 * n_0 + -0.000547 * n_1 + 0.002711 * n_2 + 0.002422 * n_3 + 0.000514 * n_4 + -0.003417 * n_5 +
    -0.000103 * n_6 + 0.004029 * n_7 + 0.003805 * n_8 + 0.003190 * n_9 + 0.002755 * n_10 + 0.002324 * n_11 +
    0.001708 * n_12 + -0.000654 * n_13 + -0.001226 * n_14 + -0.001723 * n_15 + -0.002161 * n_16 + -0.002550 * n_17 +
    -0.003215 * n_18 + 0.262654 )

    n_20 = ActivationFunctionTanh(0.000871 * n_0 + -0.000464 * n_1 + 0.002263 * n_2 + 0.002004 * n_3 + 0.000395 * n_4 + -0.002937 * n_5 +
    -0.000110 * n_6 + 0.003381 * n_7 + 0.003192 * n_8 + 0.002672 * n_9 + 0.002304 * n_10 + 0.001938 * n_11 +
    0.001415 * n_12 + -0.000587 * n_13 + -0.001072 * n_14 + -0.001493 * n_15 + -0.001864 * n_16 + -0.002194 * n_17 +
    -0.002757 * n_18 + -0.115754 )

    n_21 = ActivationFunctionTanh(0.000748 * n_0 + -0.000400 * n_1 + 0.001938 * n_2 + 0.001711 * n_3 + 0.000326 * n_4 + -0.002545 * n_5 +
    -0.000102 * n_6 + 0.002903 * n_7 + 0.002740 * n_8 + 0.002292 * n_9 + 0.001974 * n_10 + 0.001659 * n_11 +
    0.001208 * n_12 + -0.000517 * n_13 + -0.000935 * n_14 + -0.001298 * n_15 + -0.001618 * n_16 + -0.001902 * n_17 +
    -0.002387 * n_18 + -0.339950 )

    n_22 = ActivationFunctionTanh(0.000695 * n_0 + -0.000372 * n_1 + 0.001799 * n_2 + 0.001587 * n_3 + 0.000300 * n_4 + -0.002370 * n_5 +
    -0.000097 * n_6 + 0.002696 * n_7 + 0.002545 * n_8 + 0.002129 * n_9 + 0.001833 * n_10 + 0.001540 * n_11 +
    0.001121 * n_12 + -0.000484 * n_13 + -0.000872 * n_14 + -0.001210 * n_15 + -0.001507 * n_16 + -0.001772 * n_17 +
    -0.002223 * n_18 + -0.432853 )

    n_23 = ActivationFunctionTanh(0.000993 * n_0 + -0.000526 * n_1 + 0.002595 * n_2 + 0.002312 * n_3 + 0.000479 * n_4 + -0.003303 * n_5 +
    -0.000107 * n_6 + 0.003863 * n_7 + 0.003648 * n_8 + 0.003057 * n_9 + 0.002639 * n_10 + 0.002224 * n_11 +
    0.001631 * n_12 + -0.000641 * n_13 + -0.001192 * n_14 + -0.001670 * n_15 + -0.002091 * n_16 + -0.002466 * n_17 +
    -0.003105 * n_18 + 0.148192 )

    n_24 = ActivationFunctionTanh(0.000916 * n_0 + -0.000487 * n_1 + 0.002384 * n_2 + 0.002116 * n_3 + 0.000423 * n_4 + -0.003076 * n_5 +
    -0.000110 * n_6 + 0.003559 * n_7 + 0.003360 * n_8 + 0.002814 * n_9 + 0.002426 * n_10 + 0.002042 * n_11 +
    0.001493 * n_12 + -0.000609 * n_13 + -0.001118 * n_14 + -0.001561 * n_15 + -0.001951 * n_16 + -0.002297 * n_17 +
    -0.002889 * n_18 + -0.025859 )

    _output := ActivationFunctionTanh( 0.199872 * n_19 + 0.166532 * n_20 + 0.147040 * n_21 + 0.139158 * n_22 + 0.189832 * n_23 + 0.174459 * n_24 +
    0.232677 )


    // BTC 3 Minutes

    fun_btc3() =>

    float _output = na

    n_19 = ActivationFunctionTanh(0.002123 * n_0 + 0.000026 * n_1 + 0.000552 * n_2 + 0.000803 * n_3 + 0.001434 * n_4 + -0.000310 * n_5 +
    0.000631 * n_6 + 0.002397 * n_7 + 0.001834 * n_8 + 0.001168 * n_9 + 0.000800 * n_10 + 0.000470 * n_11 +
    0.000018 * n_12 + -0.001559 * n_13 + -0.001780 * n_14 + -0.001986 * n_15 + -0.002121 * n_16 + -0.002148 * n_17 +
    -0.002187 * n_18 + 0.460544 )


    n_20 = ActivationFunctionTanh(0.001727 * n_0 + 0.000021 * n_1 + 0.000447 * n_2 + 0.000648 * n_3 + 0.001158 * n_4 + -0.000266 * n_5 +
    0.000505 * n_6 + 0.001945 * n_7 + 0.001486 * n_8 + 0.000942 * n_9 + 0.000642 * n_10 + 0.000372 * n_11 +
    0.000004 * n_12 + -0.001284 * n_13 + -0.001465 * n_14 + -0.001633 * n_15 + -0.001744 * n_16 + -0.001766 * n_17 +
    -0.001799 * n_18 + -0.099424 )


    n_21 = ActivationFunctionTanh(0.001538 * n_0 + 0.000019 * n_1 + 0.000397 * n_2 + 0.000577 * n_3 + 0.001030 * n_4 + -0.000239 * n_5 +
    0.000448 * n_6 + 0.001731 * n_7 + 0.001322 * n_8 + 0.000838 * n_9 + 0.000570 * n_10 + 0.000330 * n_11 +
    0.000001 * n_12 + -0.001147 * n_13 + -0.001308 * n_14 + -0.001458 * n_15 + -0.001557 * n_16 + -0.001577 * n_17 +
    -0.001606 * n_18 + -0.279473 )

    n_22 = ActivationFunctionTanh(0.002007 * n_0 + 0.000025 * n_1 + 0.000520 * n_2 + 0.000757 * n_3 + 0.001351 * n_4 + -0.000300 * n_5 +
    0.000592 * n_6 + 0.002263 * n_7 + 0.001731 * n_8 + 0.001100 * n_9 + 0.000752 * n_10 + 0.000439 * n_11 +
    0.000012 * n_12 + -0.001482 * n_13 + -0.001692 * n_14 + -0.001886 * n_15 + -0.002014 * n_16 + -0.002040 * n_17 +
    -0.002078 * n_18 + 0.232250 )

    n_23 = ActivationFunctionTanh(0.001901 * n_0 + 0.000024 * n_1 + 0.000492 * n_2 + 0.000715 * n_3 + 0.001278 * n_4 + -0.000288 * n_5 +
    0.000559 * n_6 + 0.002142 * n_7 + 0.001637 * n_8 + 0.001040 * n_9 + 0.000710 * n_10 + 0.000413 * n_11 +
    0.000008 * n_12 + -0.001408 * n_13 + -0.001607 * n_14 + -0.001792 * n_15 + -0.001913 * n_16 + -0.001938 * n_17 +
    -0.001974 * n_18 + 0.090036 )

    n_24 = ActivationFunctionTanh(0.001751 * n_0 + 0.000022 * n_1 + 0.000453 * n_2 + 0.000657 * n_3 + 0.001174 * n_4 + -0.000269 * n_5 +
    0.000512 * n_6 + 0.001971 * n_7 + 0.001506 * n_8 + 0.000955 * n_9 + 0.000651 * n_10 + 0.000378 * n_11 +
    0.000004 * n_12 + -0.001301 * n_13 + -0.001484 * n_14 + -0.001655 * n_15 + -0.001767 * n_16 + -0.001789 * n_17 +
    -0.001823 * n_18 + -0.075800 )

    n_25 = ActivationFunctionTanh(0.001777 * n_0 + 0.000022 * n_1 + 0.000460 * n_2 + 0.000668 * n_3 + 0.001193 * n_4 + -0.000272 * n_5 +
    0.000520 * n_6 + 0.002002 * n_7 + 0.001529 * n_8 + 0.000970 * n_9 + 0.000661 * n_10 + 0.000384 * n_11 +
    0.000005 * n_12 + -0.001320 * n_13 + -0.001506 * n_14 + -0.001679 * n_15 + -0.001793 * n_16 + -0.001816 * n_17 +
    -0.001850 * n_18 + -0.048113 )

    n_26 = ActivationFunctionTanh(0.001304 * n_0 + 0.000016 * n_1 + 0.000336 * n_2 + 0.000488 * n_3 + 0.000872 * n_4 + -0.000205 * n_5 +
    0.000379 * n_6 + 0.001467 * n_7 + 0.001120 * n_8 + 0.000709 * n_9 + 0.000482 * n_10 + 0.000278 * n_11 +
    -0.000000 * n_12 + -0.000974 * n_13 + -0.001111 * n_14 + -0.001238 * n_15 + -0.001322 * n_16 + -0.001339 * n_17 +
    -0.001364 * n_18 + -0.490012 )

    _output := ActivationFunctionTanh(0.161390 * n_19 + 0.125042 * n_20 + 0.113319 * n_21 + 0.146797 * n_22 + 0.137496 * n_23 + 0.126592 * n_24 +
    0.128412 * n_25 + 0.099997 * n_26 + -0.031189 )


    // BTC 5 Minutes


    fun_btc5() =>

    float _output = na

    n_19 = ActivationFunctionTanh(0.006017 * n_0 + -0.000133 * n_1 + 0.003973 * n_2 + 0.000452 * n_3 + 0.001212 * n_4 + -0.002359 * n_5 +
    0.002415 * n_6 + 0.005932 * n_7 + 0.003877 * n_8 + 0.001921 * n_9 + 0.000979 * n_10 + 0.000298 * n_11 +
    -0.000395 * n_12 + -0.002463 * n_13 + -0.002613 * n_14 + -0.002726 * n_15 + -0.002816 * n_16 + -0.002890 * n_17 +
    -0.003013 * n_18 + 0.431206 )


    n_20 = ActivationFunctionTanh(0.004061 * n_0 + -0.000090 * n_1 + 0.002641 * n_2 + 0.000305 * n_3 + 0.000794 * n_4 + -0.001673 * n_5 +
    0.001568 * n_6 + 0.003965 * n_7 + 0.002573 * n_8 + 0.001245 * n_9 + 0.000606 * n_10 + 0.000143 * n_11 +
    -0.000328 * n_12 + -0.001734 * n_13 + -0.001837 * n_14 + -0.001914 * n_15 + -0.001975 * n_16 + -0.002027 * n_17 +
    -0.002111 * n_18 + -0.382686 )


    n_21 = ActivationFunctionTanh(0.005755 * n_0 + -0.000127 * n_1 + 0.003784 * n_2 + 0.000432 * n_3 + 0.001150 * n_4 + -0.002287 * n_5 +
    0.002285 * n_6 + 0.005658 * n_7 + 0.003691 * n_8 + 0.001817 * n_9 + 0.000915 * n_10 + 0.000262 * n_11 +
    -0.000401 * n_12 + -0.002383 * n_13 + -0.002528 * n_14 + -0.002636 * n_15 + -0.002722 * n_16 + -0.002794 * n_17 +
    -0.002911 * n_18 + 0.252004 )

    n_22 = ActivationFunctionTanh(0.005446 * n_0 + -0.000121 * n_1 + 0.003570 * n_2 + 0.000409 * n_3 + 0.001081 * n_4 + -0.002188 * n_5 +
    0.002145 * n_6 + 0.005344 * n_7 + 0.003481 * n_8 + 0.001705 * n_9 + 0.000850 * n_10 + 0.000231 * n_11 +
    -0.000398 * n_12 + -0.002276 * n_13 + -0.002413 * n_14 + -0.002516 * n_15 + -0.002598 * n_16 + -0.002666 * n_17 +
    -0.002778 * n_18 + 0.102695 )

    n_23 = ActivationFunctionTanh(0.004542 * n_0 + -0.000101 * n_1 + 0.002960 * n_2 + 0.000341 * n_3 + 0.000891 * n_4 + -0.001861 * n_5 +
    0.001762 * n_6 + 0.004441 * n_7 + 0.002884 * n_8 + 0.001399 * n_9 + 0.000685 * n_10 + 0.000167 * n_11 +
    -0.000359 * n_12 + -0.001929 * n_13 + -0.002044 * n_14 + -0.002131 * n_15 + -0.002199 * n_16 + -0.002256 * n_17 +
    -0.002350 * n_18 + -0.228588 )

    n_24 = ActivationFunctionTanh(0.005623 * n_0 + -0.000124 * n_1 + 0.003692 * n_2 + 0.000422 * n_3 + 0.001120 * n_4 + -0.002246 * n_5 +
    0.002224 * n_6 + 0.005523 * n_7 + 0.003601 * n_8 + 0.001768 * n_9 + 0.000886 * n_10 + 0.000248 * n_11 +
    -0.000401 * n_12 + -0.002339 * n_13 + -0.002480 * n_14 + -0.002586 * n_15 + -0.002670 * n_16 + -0.002740 * n_17 +
    -0.002855 * n_18 + 0.183601 )

    n_25 = ActivationFunctionTanh(0.004981 * n_0 + -0.000110 * n_1 + 0.003253 * n_2 + 0.000374 * n_3 + 0.000982 * n_4 + -0.002025 * n_5 +
    0.001944 * n_6 + 0.004877 * n_7 + 0.003171 * n_8 + 0.001544 * n_9 + 0.000761 * n_10 + 0.000195 * n_11 +
    -0.000381 * n_12 + -0.002102 * n_13 + -0.002228 * n_14 + -0.002322 * n_15 + -0.002397 * n_16 + -0.002460 * n_17 +
    -0.002562 * n_18 + -0.078775 )


    _output := ActivationFunctionTanh(0.262383 * n_19 + 0.175495 * n_20 + 0.243476 * n_21 + 0.227423 * n_22 + 0.191729 * n_23 + 0.236145 * n_24 +
    0.207806 * n_25 + 0.026324 )

    // BTC 15 MINS

    fun_btc15() =>

    float _output = na

    n_19 = ActivationFunctionTanh(1.293257 * n_0 + 0.472554 * n_1 + -0.895507 * n_2 + 7.015572 * n_3 + 0.593760 * n_4 + -1.305593 * n_5 +
    0.004794 * n_6 + 2.186163 * n_7 + -0.179762 * n_8 +-1.225158 * n_9 + -0.977530 * n_10 + -0.462584 * n_11 +
    0.408550 * n_12 + 1.769293 * n_13 + 1.192573 * n_14 + 0.363880 * n_15 + -0.614220 * n_16 + -1.674585 * n_17 +
    -3.886520 * n_18 + 1.707623 )


    n_20 = ActivationFunctionTanh(-0.418554 * n_0 + -0.181308 * n_1 + 0.600509 * n_2 + 0.039391 * n_3 + -0.413697 * n_4 + -0.499073 * n_5 +
    -0.261308 * n_6 + -0.232663 * n_7 + -0.351711 * n_8 + -0.378750 * n_9 + -0.322916 * n_10 + -0.256092 * n_11 +
    -0.166355 * n_12 + -0.211169 * n_13 + -0.355281 * n_14 + -0.526071 * n_15 + -0.711899 * n_16 + -0.905197 * n_17 +
    -1.296504 * n_18 + -0.554952 )


    n_21 = ActivationFunctionTanh(-0.035480 * n_0 + -0.021081 * n_1 + -0.365212 * n_2 + 0.056914 * n_3 + -0.142554 * n_4 + -0.059345 * n_5 +
    -0.277609 * n_6 + -0.176719 * n_7 + -0.186312 * n_8 + -0.160749 * n_9 + -0.139131 * n_10 + -0.124488 * n_11 +
    -0.115378 * n_12 + -0.208219 * n_13 + -0.251116 * n_14 + -0.289558 * n_15 + -0.323317 * n_16 + -0.352714 * n_17 +
    -0.400455 * n_18 + -0.805595 )

    n_22 = ActivationFunctionTanh(0.127697 * n_0 + -0.396088 * n_1 + -0.220907 * n_2 + 0.373565 * n_3 + 0.099899 * n_4 + 0.854134 * n_5 +
    -0.213292 * n_6 + 0.441236 * n_7 + -0.620463 * n_8 + -0.749920 * n_9 + -0.280333 * n_10 + 0.322233 * n_11 +
    1.223385 * n_12 + 2.472768 * n_13 + 1.882159 * n_14 + 1.058183 * n_15 + 0.089279 * n_16 + -0.965008 * n_17 +
    -3.185136 * n_18 + -1.527580 )

    n_23 = ActivationFunctionTanh(-0.332919 * n_0 + -0.354824 * n_1 + 0.467307 * n_2 + 0.075305 * n_3 + 0.216661 * n_4 + 0.341631 * n_5 +
    -0.459070 * n_6 + 0.035533 * n_7 +-0.456678 * n_8 +-0.461727 * n_9 +-0.177285 * n_10 + 0.167962 * n_11 +
    0.666441 * n_12 + 1.196486 * n_13 + 0.798169 * n_14 + 0.270911 * n_15 + -0.335477 * n_16 + -0.987666 * n_17 +
    -2.348907 * n_18 + -1.126590 )

    n_24 = ActivationFunctionTanh(-0.435452 * n_0 + -0.197200 * n_1 + 0.657232 * n_2 + 0.052956 * n_3 + -0.406795 * n_4 + -0.481384 * n_5 +
    -0.264595 * n_6 + -0.222973 * n_7 +-0.354976 * n_8 +-0.377929 * n_9 + -0.310282 * n_10 + -0.229988 * n_11 +
    -0.121623 * n_12 + -0.153214 * n_13 + -0.314893 * n_14 + -0.507960 * n_15 + -0.718880 * n_16 + -0.938835 * n_17 +
    -1.385175 * n_18 + -0.560046 )

    n_25 = ActivationFunctionTanh(-0.446536 * n_0 + -0.212623 * n_1 + 0.660502 * n_2 + 0.051337 * n_3 + -0.363987 * n_4 + -0.398627 * n_5 +
    -0.300080 * n_6 + -0.206941 * n_7 +-0.351769 * n_8 +-0.359350 * n_9 + -0.270055 * n_10 + -0.166549 * n_11 +
    -0.026700 * n_12 + -0.030858 * n_13 + -0.217746 * n_14 + -0.442773 * n_15 + -0.689667 * n_16 + -0.947814 * n_17 +
    -1.472945 * n_18 + -0.642802 )

    n_26 = ActivationFunctionTanh(0.162369 * n_0 + 0.080565 * n_1 +-0.925052 * n_2 + 0.407992 * n_3 + -0.042152 * n_4 + -0.044202 * n_5 +
    -0.110007 * n_6 +-0.233211 * n_7 +-0.152412 * n_8 +-0.115330 * n_9 + -0.154931 * n_10 + -0.220581 * n_11 +
    -0.333292 * n_12 + -0.559388 * n_13 + -0.494620 * n_14 + -0.389645 * n_15 + -0.257170 * n_16 + -0.106494 * n_17 +
    0.224906 * n_18 + -0.543859 )

    _output := ActivationFunctionTanh(3.791166 * n_19 + 1.217929 * n_20 + -0.346824 * n_21 + 1.304904 * n_22 + 1.308826 * n_23 + 1.258987 * n_24 +
    1.200855 * n_25 + -1.146649 * n_26 + -4.002537 )


    // BTC 30 MINS


    fun_btc30()=>
    float _output = na

    n_19 = ActivationFunctionTanh(-0.000023 * n_0 + -0.000607 * n_1 + 0.000241 * n_2 + 0.000345 * n_3 + -0.000419 * n_4 + -0.002526 * n_5 +
    -0.000442 * n_6 + -0.000413 * n_7 + -0.000749 * n_8 + -0.001152 * n_9 + -0.001397 * n_10 + -0.001619 * n_11 +
    -0.001930 * n_12 + -0.002685 * n_13 + -0.002812 * n_14 + -0.002931 * n_15 + -0.003046 * n_16 + -0.003158 * n_17 +
    -0.003357 * n_18 + -0.450947 )


    n_20 = ActivationFunctionTanh(-0.000023 * n_0 + -0.000599 * n_1 + 0.000237 * n_2 + 0.000340 * n_3 + -0.000414 * n_4 + -0.002492 * n_5 +
    -0.000437 * n_6 + -0.000408 * n_7 + -0.000739 * n_8 + -0.001137 * n_9 + -0.001379 * n_10 + -0.001597 * n_11 +
    -0.001904 * n_12 + -0.002649 * n_13 + -0.002774 * n_14 + -0.002892 * n_15 + -0.003005 * n_16 + -0.003115 * n_17 +
    -0.003312 * n_18 + -0.467159 )


    _output := ActivationFunctionTanh(0.097635 * n_19 + 0.096672 * n_20 + -0.103314 )


    // BTC 45 MINS

    fun_btc45()=>
    float _output = na

    n_19 = ActivationFunctionTanh(0.456835 * n_0 + -2.030716 * n_1 + -0.798281 * n_2 + -3.530275 * n_3 + -1.188534 * n_4 + 1.279288 * n_5 +
    1.336088 * n_6 + -0.464409 * n_7 + -0.263642 * n_8 + 0.027486 * n_9 + 0.254813 * n_10 + 0.462855 * n_11 +
    0.753647 * n_12 + 0.911255 * n_13 + 0.516245 * n_14 + 0.005384 * n_15 + -0.577498 * n_16 + -1.201224 * n_17 +
    -2.493732 * n_18 + -1.187097 )


    n_20 = ActivationFunctionTanh(0.345529 * n_0 + -1.999497 * n_1 + -0.782418 * n_2 + -2.315818 * n_3 + -0.431140 * n_4 + 1.196262 * n_5 +
    0.918115 * n_6 + -0.657603 * n_7 + -0.386932 * n_8 + -0.051425 * n_9 + 0.173754 * n_10 + 0.383645 * n_11 +
    0.669264 * n_12 + 0.800226 * n_13 + 0.405910 * n_14 + -0.106178 * n_15 + -0.692585 * n_16 + -1.322158 * n_17 +
    -2.632564 * n_18 + -0.832007 )


    _output := ActivationFunctionTanh(2.596823 * n_19 + 2.303467 * n_20 + -0.176739 )


    // BTC 1H

    fun_btc60()=>
    float _output = na

    n_19 = ActivationFunctionTanh(0.000721 * n_0 + -0.000037 * n_1 + 0.000942 * n_2 + 0.001116 * n_3 + 0.001428 * n_4 + 0.000986 * n_5 +
    0.000415 * n_6 + 0.000455 * n_7 + 0.000356 * n_8 + 0.000320 * n_9 + 0.000360 * n_10 + 0.000416 * n_11 +
    0.000506 * n_12 + 0.000942 * n_13 + 0.001068 * n_14 + 0.001181 * n_15 + 0.001284 * n_16 + 0.001377 * n_17 +
    0.001537 * n_18 + -0.449562 )


    n_20 = ActivationFunctionTanh(0.000712 * n_0 + -0.000037 * n_1 + 0.000929 * n_2 + 0.001101 * n_3 + 0.001409 * n_4 + 0.000973 * n_5 +
    0.000410 * n_6 + 0.000449 * n_7 + 0.000351 * n_8 + 0.000316 * n_9 + 0.000355 * n_10 + 0.000411 * n_11 +
    0.000499 * n_12 + 0.000930 * n_13 + 0.001053 * n_14 + 0.001165 * n_15 + 0.001266 * n_16 + 0.001358 * n_17 +
    0.001516 * n_18 + -0.465792 )


    _output := ActivationFunctionTanh(-0.117262 * n_19 + -0.116105 * n_20 + -0.657030 )


    // BTC 2H

    fun_btc120()=>
    float _output = na

    n_19 = ActivationFunctionTanh(0.000113 * n_0 + 0.000301 * n_1 + -0.000138 * n_2 + -0.000060 * n_3 + -0.000468 * n_4 + -0.001918 * n_5 +
    -0.000607 * n_6 + 0.000071 * n_7 + -0.000122 * n_8 + -0.000414 * n_9 + -0.000571 * n_10 + -0.000722 * n_11 +
    -0.000938 * n_12 + -0.001718 * n_13 + -0.001902 * n_14 + -0.002051 * n_15 + -0.002112 * n_16 + -0.002158 * n_17 +
    -0.002224 * n_18 + -0.451214 )


    n_20 = ActivationFunctionTanh(0.000111 * n_0 + 0.000297 * n_1 + -0.000136 * n_2 + -0.000059 * n_3 + -0.000462 * n_4 + -0.001893 * n_5 +
    -0.000599 * n_6 + 0.000070 * n_7 + -0.000120 * n_8 + -0.000408 * n_9 + -0.000564 * n_10 + -0.000712 * n_11 +
    -0.000926 * n_12 + -0.001695 * n_13 + -0.001877 * n_14 + -0.002024 * n_15 + -0.002083 * n_16 + -0.002129 * n_17 +
    -0.002194 * n_18 + -0.467423 )


    _output := ActivationFunctionTanh(0.089138 * n_19 + 0.088259 * n_20 + -0.125159 )


    // BTC 3H

    fun_btc180()=>
    float _output = na

    n_19 = ActivationFunctionTanh(0.004831 * n_0 + -0.003359 * n_1 + 0.000649 * n_2 + 0.000370 * n_3 + -0.001701 * n_4 + -0.004579 * n_5 +
    -0.001762 * n_6 + 0.001327 * n_7 + -0.000107 * n_8 + -0.001431 * n_9 + -0.002089 * n_10 + -0.002653 * n_11 +
    -0.003390 * n_12 + -0.006023 * n_13 + -0.006537 * n_14 + -0.006888 * n_15 + -0.007180 * n_16 + -0.007425 * n_17 +
    -0.007744 * n_18 + -0.450723 )


    n_20 = ActivationFunctionTanh(0.004766 * n_0 + -0.003314 * n_1 + 0.000639 * n_2 + 0.000365 * n_3 + -0.001679 * n_4 + -0.004518 * n_5 +
    -0.001739 * n_6 + 0.001309 * n_7 + -0.000106 * n_8 + -0.001413 * n_9 + -0.002062 * n_10 + -0.002618 * n_11 +
    -0.003345 * n_12 + -0.005943 * n_13 + -0.006449 * n_14 + -0.006796 * n_15 + -0.007085 * n_16 + -0.007325 * n_17 +
    -0.007641 * n_18 + -0.466939 )


    _output := ActivationFunctionTanh(0.150474 * n_19 + 0.148997 * n_20 + 0.035489 )


    // BTC 4H


    fun_btc240() =>

    float _output = na

    n_19 = ActivationFunctionTanh(0.000298 * n_0 + -0.000209 * n_1 + -0.000044 * n_2 + -0.000178 * n_3 + -0.000555 * n_4 + -0.001287 * n_5 +
    -0.000457 * n_6 + -0.000244 * n_7 + -0.000442 * n_8 + -0.000654 * n_9 + -0.000766 * n_10 + -0.000862 * n_11 +
    -0.000983 * n_12 + -0.001239 * n_13 + -0.001244 * n_14 + -0.001216 * n_15 + -0.001169 * n_16 + -0.001127 * n_17 +
    -0.001056 * n_18 + -0.386015 )


    n_20 = ActivationFunctionTanh(0.000346 * n_0 + -0.000242 * n_1 + -0.000050 * n_2 + -0.000206 * n_3 + -0.000643 * n_4 + -0.001492 * n_5 +
    -0.000530 * n_6 + -0.000282 * n_7 + -0.000512 * n_8 + -0.000757 * n_9 + -0.000887 * n_10 + -0.000999 * n_11 +
    -0.001139 * n_12 + -0.001436 * n_13 + -0.001442 * n_14 + -0.001410 * n_15 + -0.001355 * n_16 + -0.001306 * n_17 +
    -0.001225 * n_18 + -0.177099 )


    n_21 = ActivationFunctionTanh(0.000336 * n_0 + -0.000235 * n_1 + -0.000049 * n_2 + -0.000200 * n_3 + -0.000625 * n_4 + -0.001449 * n_5 +
    -0.000515 * n_6 + -0.000274 * n_7 + -0.000498 * n_8 + -0.000736 * n_9 + -0.000862 * n_10 + -0.000971 * n_11 +
    -0.001107 * n_12 + -0.001395 * n_13 + -0.001401 * n_14 + -0.001370 * n_15 + -0.001317 * n_16 + -0.001269 * n_17 +
    -0.001190 * n_18 + -0.221836 )

    n_22 = ActivationFunctionTanh(0.000450 * n_0 + -0.000312 * n_1 + -0.000058 * n_2 + -0.000262 * n_3 + -0.000827 * n_4 + -0.001924 * n_5 +
    -0.000680 * n_6 + -0.000360 * n_7 + -0.000657 * n_8 + -0.000974 * n_9 + -0.001142 * n_10 + -0.001287 * n_11 +
    -0.001468 * n_12 + -0.001852 * n_13 + -0.001859 * n_14 + -0.001818 * n_15 + -0.001747 * n_16 + -0.001684 * n_17 +
    -0.001579 * n_18 + 0.493827 )

    n_23 = ActivationFunctionTanh(0.000405 * n_0 + -0.000282 * n_1 + -0.000056 * n_2 + -0.000239 * n_3 + -0.000749 * n_4 + -0.001740 * n_5 +
    -0.000616 * n_6 + -0.000328 * n_7 + -0.000596 * n_8 + -0.000882 * n_9 + -0.001034 * n_10 + -0.001165 * n_11 +
    -0.001328 * n_12 + -0.001675 * n_13 + -0.001682 * n_14 + -0.001644 * n_15 + -0.001580 * n_16 + -0.001523 * n_17 +
    -0.001428 * n_18 + 0.119740 )

    n_24 = ActivationFunctionTanh(0.000357 * n_0 + -0.000250 * n_1 + -0.000051 * n_2 + -0.000212 * n_3 + -0.000662 * n_4 + -0.001537 * n_5 +
    -0.000545 * n_6 + -0.000291 * n_7 + -0.000528 * n_8 + -0.000780 * n_9 + -0.000914 * n_10 + -0.001030 * n_11 +
    -0.001174 * n_12 + -0.001480 * n_13 + -0.001486 * n_14 + -0.001453 * n_15 + -0.001396 * n_16 + -0.001346 * n_17 +
    -0.001262 * n_18 + -0.128058 )

    n_25 = ActivationFunctionTanh(0.000440 * n_0 + -0.000306 * n_1 + -0.000058 * n_2 + -0.000257 * n_3 + -0.000811 * n_4 + -0.001886 * n_5 +
    -0.000667 * n_6 + -0.000354 * n_7 + -0.000645 * n_8 + -0.000956 * n_9 + -0.001120 * n_10 + -0.001262 * n_11 +
    -0.001439 * n_12 + -0.001815 * n_13 + -0.001823 * n_14 + -0.001782 * n_15 + -0.001713 * n_16 + -0.001651 * n_17 +
    -0.001548 * n_18 + 0.379354 )

    n_26 = ActivationFunctionTanh(0.000402 * n_0 + -0.000280 * n_1 + -0.000056 * n_2 + -0.000237 * n_3 + -0.000744 * n_4 + -0.001728 * n_5 +
    -0.000612 * n_6 + -0.000326 * n_7 + -0.000592 * n_8 + -0.000877 * n_9 + -0.001027 * n_10 + -0.001157 * n_11 +
    -0.001320 * n_12 + -0.001664 * n_13 + -0.001671 * n_14 + -0.001633 * n_15 + -0.001570 * n_16 + -0.001513 * n_17 +
    -0.001419 * n_18 + 0.103566 )

    n_27 = ActivationFunctionTanh(0.000397 * n_0 + -0.000277 * n_1 + -0.000055 * n_2 + -0.000235 * n_3 + -0.000735 * n_4 + -0.001708 * n_5 +
    -0.000605 * n_6 + -0.000322 * n_7 + -0.000585 * n_8 + -0.000866 * n_9 + -0.001015 * n_10 + -0.001143 * n_11 +
    -0.001304 * n_12 + -0.001644 * n_13 + -0.001651 * n_14 + -0.001614 * n_15 + -0.001551 * n_16 + -0.001495 * n_17 +
    -0.001402 * n_18 + 0.075917 )

    _output := ActivationFunctionTanh(0.065151 * n_19 + 0.073377 * n_20 + 0.071596 * n_21 + 0.099989 * n_22 + 0.085296 * n_23 + 0.075337 * n_24 +
    0.095584 * n_25 + 0.084647 * n_26 + 0.083536 * n_27 + -0.267587)


    // BTC 1D


    fun_btc1d() =>

    float _output = na

    n_19 = ActivationFunctionTanh(-0.633481 * n_0 + -2.753370 * n_1 + -1.072644 * n_2 + -1.079077 * n_3 + -0.671968 * n_4 + 1.273822 * n_5 +
    -1.417603 * n_6 + 1.920770 * n_7 + -0.750125 * n_8 + -0.996893 * n_9 + -0.344481 * n_10 + 0.446467 * n_11 +
    1.471010 * n_12 + 0.867572 * n_13 + -0.032375 * n_14 + -0.592290 * n_15 + -0.681300 * n_16 + -0.265232 * n_17 +
    1.979485 * n_18 + -1.345200)


    n_20 = ActivationFunctionTanh(-0.251524 * n_0 + -0.264709 * n_1 + 3.330025 * n_2 + -1.758135 * n_3 + -1.373010 * n_4 + 1.024623 * n_5 +
    -1.250970 * n_6 + 1.994500 * n_7 + -1.449193 * n_8 + -1.519239 * n_9 + -0.634501 * n_10 + 0.357019 * n_11 +
    1.618683 * n_12 + 1.244217 * n_13 + 0.095207 * n_14 + -0.804969 * n_15 + -1.284815 * n_16 + -1.282321 * n_17 +
    0.126797 * n_18 + -1.330270 )


    n_21 = ActivationFunctionTanh(-1.122826 * n_0 + -1.840816 * n_1 + -0.867246 * n_2 + -0.466440 * n_3 + -0.909494 * n_4 + 2.803960 * n_5 +
    -0.404034 * n_6 + 3.146714 * n_7 + -0.734065 * n_8 + -1.349509 * n_9 + -0.647806 * n_10 + 0.225948 * n_11 +
    1.342840 * n_12 + 0.374333 * n_13 + -0.685559 * n_14 + -1.339505 * n_15 + -1.443742 * n_16 + -0.964248 * n_17 +
    1.614178 * n_18 + -1.065157 )

    n_22 = ActivationFunctionTanh(-1.614547* n_0 + -5.775336 * n_1 + 2.373008 * n_2 + 1.409746 * n_3 + 2.042374 * n_4 + -2.684138 * n_5 +
    -3.278848 * n_6 + -4.058455 * n_7 + -3.065954 * n_8 + -1.084300 * n_9 + -0.373446 * n_10 + 0.033366 * n_11 +
    0.274066 * n_12 + -1.467020 * n_13 + -2.112150 * n_14 + -2.522296 * n_15 + -2.657468 * n_16 + -2.519434 * n_17 +
    -1.528425 * n_18 + 0.889220 )

    n_23 = ActivationFunctionTanh(-4.975500 * n_0 + -8.747454 * n_1 + 5.629647 * n_2 + -4.440584 * n_3 + -5.782330 * n_4 + 6.942848 * n_5 +
    6.390540 * n_6 + 0.825718 * n_7 + 0.316324 * n_8 + -0.984473 * n_9 + -2.171598 * n_10 + -3.179572 * n_11 +
    -4.102874 * n_12 + -1.132156 * n_13 + 0.333999 * n_14 + 1.388291 * n_15 + 1.964566 * n_16 + 2.076432 * n_17 +
    1.104546 * n_18 + -3.212789 )


    n_24 = ActivationFunctionTanh(-6.984274 * n_0 + -0.314850 * n_1 + -10.744062* n_2 + 0.894127 * n_3 + 4.901208 * n_4 + 12.686739 * n_5 +
    -1.080490 * n_6 + 2.438996 * n_7 + -3.434949 * n_8 + -3.154140 * n_9 + -1.260743 * n_10 + 0.773605 * n_11 +
    3.179477 * n_12 + 4.365244 * n_13 + 3.115380 * n_14 + 1.991410 * n_15 + 1.100088 * n_16 + 0.474979 * n_17 +
    -0.000249 * n_18 + -14.874917 )


    n_25 = ActivationFunctionTanh(-0.556166 * n_0 + -2.940919 * n_1 + -0.567908 * n_2 + -1.740896 * n_3 + -0.729119 * n_4 + -0.002763 * n_5 +
    -2.089633 * n_6 + 0.156883 * n_7 + -1.439659 * n_8 + -1.052742 * n_9 + -0.257507 * n_10 + 0.607066 * n_11 +
    1.710413 * n_12 + 1.624694 * n_13 + 0.828132 * n_14 + 0.301360 * n_15 + 0.173646 * n_16 + 0.483932 * n_17 +
    2.346727 * n_18 + -1.441965 )


    n_26 = ActivationFunctionTanh(2.337116 * n_0 + -10.281617 * n_1 + 6.405422 * n_2 + 3.379239 * n_3 + -13.529903 * n_4 + -5.426502 * n_5 +
    3.897074 * n_6 + -1.408937 * n_7 + 1.332063 * n_8 + 0.640766 * n_9 + -0.492073 * n_10 + -1.333120 * n_11 +
    -2.021923 * n_12 + -3.785108 * n_13 + -4.272612 * n_14 + -4.483000 * n_15 + -4.343631 * n_16 + -3.853584 * n_17 +
    -1.991719 * n_18 + 1.213537 )

    n_27 = ActivationFunctionTanh(3.475374 * n_0 + 1.138465 * n_1 + -0.511812 * n_2 + 3.546847 * n_3 + -7.835312 * n_4 + -2.012181 * n_5 +
    4.277505 * n_6 + -0.820841 * n_7 + -5.434230 * n_8 + -5.021443 * n_9 + -3.856838 * n_10 + -2.747896 * n_11 +
    -1.542846 * n_12 + -3.607826 * n_13 + -3.965775 * n_14 + -3.150198 * n_15 + -1.046815 * n_16 + 2.285882 * n_17 +
    12.038928 * n_18 + 5.110039 )

    n_28 = ActivationFunctionTanh(0.119270 * n_0 + -7.072358 * n_1 + 2.153632 * n_2 + 1.003484 * n_3 + 3.255953 * n_4 + 1.094897 * n_5 +
    4.873614 * n_6 + 0.544976 * n_7 + 1.331742 * n_8 + -1.306206 * n_9 + -2.919219 * n_10 + -4.517879 * n_11 +
    -6.578425 * n_12 + -6.612962 * n_13 + -4.792399 * n_14 + -3.307242 * n_15 + -2.421065 * n_16 + -2.213441 * n_17 +
    -3.688225 * n_18 + 1.535839 )

    n_29 = ActivationFunctionTanh(2.653389 * n_0 + -6.113949 * n_1 + 0.704048 * n_2 + -0.135280 * n_3 + -7.889001 * n_4 + 2.987226 * n_5 +
    5.026648 * n_6 + 1.343060 * n_7 + -6.208260 * n_8 + -3.681602 * n_9 + -0.659369 * n_10 + 2.010165 * n_11 +
    4.810512 * n_12 + 2.922294 * n_13 + 0.666526 * n_14 + -1.001707 * n_15 + -1.894088 * n_16 + -1.996187 * n_17 +
    -0.136645 * n_18 + -2.300340 )

    _output := ActivationFunctionTanh(-1.548688 * n_19 + -2.072813 * n_20 + -2.113910 * n_21 + -5.412547 * n_22 + 4.062228 * n_23 + -8.646635 * n_24 +
    -1.693534 * n_25 + -8.243129 * n_26 + -0.854547 * n_27 + 10.011633 * n_28 + -5.581477* n_29 + 0.411135 )


    // BTC 1W

    // BITCOIN

    fun_btc1w() =>

    float _output = na

    n_19 = ActivationFunctionTanh(1.201680 * n_0 + 4.790233 * n_1 + -13.247836* n_2 + -3.518553 * n_3 + -6.729975 * n_4 + 17.274753 * n_5 +
    -10.388693 * n_6 + -2.911250 * n_7 + -2.738169 * n_8 + -2.270430 * n_9 + -2.453312 * n_10 + -2.490656 * n_11 +
    -2.170890 * n_12 + 1.189402 * n_13 + 1.890770 * n_14 + 2.383743 * n_15 + 2.695515 * n_16 + 2.803777 * n_17 +
    2.651196 * n_18 + 4.104636 )


    n_20 = ActivationFunctionTanh(7.668744 * n_0 + -8.203325 * n_1 + -13.587246* n_2 + 3.468900 * n_3 + 3.433852 * n_4 + -11.015916 * n_5 +
    -8.860698 * n_6 + -0.473582 * n_7 + 4.238994 * n_8 + 3.527646 * n_9 + 1.578865 * n_10 + -0.222423 * n_11 +
    -2.035478 * n_12 + -0.383831 * n_13 + -0.099256 * n_14 + -0.341738 * n_15 + -0.984246 * n_16 + -2.363940 * n_17 +
    -6.588227 * n_18 + 5.088957 )


    n_21 = ActivationFunctionTanh(-10.032236* n_0 + 4.815768 * n_1 + -2.417359 * n_2 + 2.446398 * n_3 + -3.901874 * n_4 + -3.210481 * n_5 +
    3.557028 * n_6 + 7.880321 * n_7 + 5.681482 * n_8 + 0.897076 * n_9 + -1.029320 * n_10 + -1.864362 * n_11 +
    -1.742023 * n_12 + 3.850158 * n_13 + 3.761906 * n_14 + 2.026571 * n_15 + -0.354672 * n_16 + -1.840503 * n_17 +
    -2.922887 * n_18 + -4.577407 )

    n_22 = ActivationFunctionTanh(1.741262 * n_0 + 1.912236 * n_1 + 6.477892 * n_2 + -1.326788 * n_3 + 0.869487 * n_4 + 2.810600 * n_5 +
    -6.166025 * n_6 + -8.550872 * n_7 + -0.580922 * n_8 + 1.616882 * n_9 + 0.687221 * n_10 + -0.584032 * n_11 +
    -2.475119 * n_12 + -3.528662 * n_13 + -2.183762 * n_14 + -1.625953 * n_15 + -1.337159 * n_16 + 0.197613 * n_17 +
    5.350869 * n_18 + -0.509766 )

    n_23 = ActivationFunctionTanh(-0.949103 * n_0 + -0.607215 * n_1 + -0.387264 * n_2 + 2.358837 * n_3 + -0.152102 * n_4 + -1.812956 * n_5 +
    -2.974987 * n_6 + 1.322940 * n_7 + 1.334885 * n_8 + 0.267618 * n_9 + -0.300794 * n_10 + -0.705249 * n_11 +
    -1.086082 * n_12 + -0.263323 * n_13 + 0.327146 * n_14 + 0.795826 * n_15 + 1.188228 * n_16 + 1.646276 * n_17 +
    2.630985 * n_18 + -0.769845 )


    n_24 = ActivationFunctionTanh(-1.304055 * n_0 + -1.768287 * n_1 + -1.201598 * n_2 + -6.539091 * n_3 + -7.670284 * n_4 + 7.429614 * n_5 +
    -3.488533 * n_6 + -9.388240 * n_7 + -3.937760 * n_8 + -0.677761 * n_9 + 0.372259 * n_10 + 1.053771 * n_11 +
    1.770086 * n_12 + 4.428619 * n_13 + 5.409645 * n_14 + 6.441749 * n_15 + 7.462278 * n_16 + 8.390557 * n_17 +
    9.990950 * n_18 + -8.729093 )

    n_25 = ActivationFunctionTanh(-3.753865 * n_0 + -10.000424 * n_1 + -7.531577 * n_2 + 1.962272 * n_3 + 3.222989 * n_4 + 8.067265 * n_5 +
    -3.749201 * n_6 + -3.957342 * n_7 + -16.594564* n_8 + -12.142972* n_9 + -6.143112 * n_10 + -1.046300 * n_11 +
    4.335467 * n_12 + 8.135875 * n_13 + 6.330516 * n_14 + 4.383505 * n_15 + 2.605501 * n_16 + 1.171710 * n_17 +
    -0.634893 * n_18 + -2.024363 )

    n_26 = ActivationFunctionTanh(-3.613123 * n_0 + 6.850406 * n_1 + -5.668935 * n_2 + 6.155231 * n_3 + -1.127932 * n_4 + 0.011634 * n_5 +
    -16.964766 * n_6 + -0.302819 * n_7 + -2.079260 * n_8 + -0.684992 * n_9 + 0.833319 * n_10 + 2.101285 * n_11 +
    3.320521 * n_12 + 1.380460 * n_13 + -0.118373 * n_14 + -1.172973 * n_15 + -2.016801 * n_16 + -3.331162 * n_17 +
    -6.696846 * n_18 + -1.426084 )

    n_27 = ActivationFunctionTanh(-6.301982 * n_0 + 1.008239 * n_1 + -0.596387 * n_2 + 1.300704 * n_3 + 1.353916 * n_4 + -4.990400 * n_5 +
    -3.126689 * n_6 + -1.566456 * n_7 + -1.023235 * n_8 + -2.047515 * n_9 + -2.443359 * n_10 + -2.552728 * n_11 +
    -2.367935 * n_12 + -0.615406 * n_13 + -0.390442 * n_14 + -0.328221 * n_15 + -0.363243 * n_16 + -0.430245 * n_17 +
    -0.576579 * n_18 + 0.756044 )


    n_28 = ActivationFunctionTanh(-10.731304 * n_0 + 18.593990 * n_1 + -4.192338 * n_2 + -4.843999* n_3 + -3.704364 * n_4 + 19.068650 * n_5 +
    11.714564 * n_6 + -15.959616 * n_7 + -5.964808 * n_8 + -0.531594* n_9 + 1.171733 * n_10 + 2.326418 * n_11 +
    3.661263 * n_12 + 7.021172 * n_13 + 6.283531 * n_14 + 4.822940 * n_15 + 3.075006 * n_16 + 1.260840 * n_17 +
    -2.360973 * n_18 + -2.463228 )

    _output := ActivationFunctionTanh(-21.620951 * n_19 + -5.099888 * n_20 + -8.320312 * n_21 + -6.986557 * n_22 + -1.548381 * n_23 + 8.281869 * n_24 +
    8.902845 * n_25 + 10.057955 * n_26 + 4.794667 * n_27 + -3.723837 * n_28 + 5.820034 )



    //

    res1 = input("1", type=input.resolution, title="1 min")
    res2 = input("3", type=input.resolution, title="3 mins")
    res3 = input("5", type=input.resolution, title="5 mins")
    res4 = input("15", type=input.resolution, title="15 mins")
    res5 = input("30", type=input.resolution, title="30 mins")
    res6 = input("45", type=input.resolution, title="45 mins")
    res7 = input("60", type=input.resolution, title="1H")
    res8 = input("120", type=input.resolution, title="2H")
    res9 = input("180", type=input.resolution, title="3H")
    res10 = input("240", type=input.resolution, title="4H")
    res11 = input("1D", type=input.resolution, title="1D")
    res12 = input("1W", type=input.resolution, title="1W")

    //

    _output1 = fun_btc1()
    _output3 = fun_btc3()
    _output5 = fun_btc5()
    _output15 = fun_btc15()
    _output30 = fun_btc30()
    _output45 = fun_btc45()
    _output60 = fun_btc60()
    _output120 = fun_btc120()
    _output180 = fun_btc180()
    _output240 = fun_btc240()
    _output1d = fun_btc1d()
    _output1w = fun_btc1w()

    //

    float _output = na

    if (timeframe.isminutes and timeframe.multiplier == 1)

    _output := _output1

    if (timeframe.isminutes and timeframe.multiplier == 3)

    _output := _output3

    if (timeframe.isminutes and timeframe.multiplier == 5)

    _output := _output5

    if (timeframe.isminutes and timeframe.multiplier == 15)

    _output := _output15

    if (timeframe.isminutes and timeframe.multiplier == 30)

    _output := _output30

    if (timeframe.isminutes and timeframe.multiplier == 45)

    _output := _output45

    if (timeframe.isminutes and timeframe.multiplier == 60)

    _output := _output60

    if (timeframe.isminutes and timeframe.multiplier == 120)

    _output := _output120

    if (timeframe.isminutes and timeframe.multiplier == 180)

    _output := _output180

    if (timeframe.isminutes and timeframe.multiplier == 240)

    _output := _output240

    if (timeframe.isdaily and timeframe.multiplier == 1)

    _output := _output1d

    if (timeframe.isweekly and timeframe.multiplier == 1)

    _output := _output1w


    //

    _chg_src = tangentdiff(src) * 100

    _seed = (_output - _chg_src)


    // CM SLING SHOT SYSTEM

    sae = input(true, title="Show Aggressive Entry?, Or Use as Alert To Potential Conservative Entry?")
    sce = input(true, title="Show Conservative Entry?")
    st = input(true, title="Show Trend Arrows at Top and Bottom of Screen?")
    def = input(false, title="Only Choose 1 - Either Conservative Entry Arrows or 'B'-'S' Letters")
    pa = input(true, title="Show Conservative Entry Arrows?")
    sl = input(false, title="Show 'B'-'S' Letters?")

    //EMA Definitions
    emaSlow = ema(_seed, 62)
    emaFast = ema(_seed, 38)

    _emaSlow = ema(close,62)
    _emaFast = ema(close,38)

    //Aggressive Entry or Alert To Potential Trade
    pullbackUpT() => emaFast < emaSlow and _seed > emaFast
    pullbackDnT() => emaFast > emaSlow and _seed < emaFast
    //Conservative Entry Code For Highlight Bars
    entryUpT() => emaFast < emaSlow and _seed[1] > emaFast and _seed < emaFast
    entryDnT() => emaFast > emaSlow and _seed[1] < emaFast and _seed > emaFast
    //Conservative Entry True/False Condition
    entryUpTrend = emaFast < emaSlow and _seed[1] > emaFast and _seed < emaFast ? 1 : 0
    entryDnTrend = emaFast > emaSlow and _seed[1] < emaFast and _seed > emaFast ? 1 : 0
    //Define Up and Down Trend for Trend Arrows at Top and Bottom of Screen
    upTrend = emaFast <= emaSlow
    downTrend = emaFast > emaSlow
    //Definition for Conseervative Entry Up and Down PlotArrows
    codiff = entryUpTrend == 1 ? entryUpTrend : 0
    codiff2 = entryDnTrend == 1 ? entryDnTrend : 0
    //Color definition for Moving Averages
    col = emaFast < emaSlow ? color.lime : emaFast > emaSlow ? color.red : color.yellow
    //Moving Average Plots and Fill
    p1 = plot(_emaSlow, title="Slow MA", style=plot.style_linebr, linewidth=4, color=col)
    p2 = plot(_emaFast, title="Slow MA", style=plot.style_linebr, linewidth=2, color=col)
    fill(p1, p2, color=color.silver, transp=50)
    //Aggressive Entry, Conservative Entry Highlight Bars
    barcolor(sae and pullbackUpT() ? color.yellow : sae and pullbackDnT() ? color.yellow : na)
    barcolor(sce and entryUpT() ? color.**ua : sce and entryDnT() ? color.**ua : na)
    //Trend Triangles at Top and Bottom of Screen
    plotshape(st and upTrend ? upTrend : na, title="Conservative Buy Entry Triangle",style=shape.triangleup, location=location.bottom, color=color.lime, transp=0, offset=0)
    plotshape(st and downTrend ? downTrend : na, title="Conservative Short Entry Triangle",style=shape.triangledown, location=location.top, color=color.red, transp=0, offset=0)
    //Plot Arrows OR Letters B and S for Buy Sell Signals
    plotarrow(pa and codiff ? codiff : na, title="Up Entry Arrow", colorup=color.lime, maxheight=30, minheight=30, transp=0)
    plotarrow(pa and codiff2*-1 ? codiff2*-1 : na, title="Down Entry Arrow", colordown=color.red, maxheight=30, minheight=30, transp=0)
    plotchar(sl and codiff ? low - tr : na, title="Buy Entry", offset=0, char='B', location=location.absolute, color=color.lime, transp=0)
    plotchar(sl and codiff2 ? high + tr : na, title="Short Entry", offset=0, char='S', location=location.absolute, color=color.red, transp=0)
    Teknik olarak; yarýna gebe olan bugünü yaþamalý ki, yarýn, yaþanmýþ olsun.

  7. sistem 3...


    robot örneði....görsellerinde ve kodunda oynama yapýlmýþtýr...sizlerde istediðiniz deðiþikliði yapabilirsiniz.....

    robot...jma ortalama -range-adx-sar-rsý volumle beraber-macd hesaplamalarýný yapýyor....
    bu indikatörler ile strateji kuruluyor....belirlenen deðerde stop olan....
    belirlenen deðerler ile take profit ve trailing stop ile kar al yapan....
    pulbackleri hesaba katan....sinyalleri grafikte gösteren.... bir örnek....

    kodu ise;

    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © XaviZ

    //@version=4
    study(title="Robot", overlay=true)

    // VARIABLES
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    var bool longCond = na, var bool shortCond = na
    var bool XlongCond = na, var bool XshortCond = na
    var int CondIni_long0 = 0, var int CondIni_short0 = 0
    var int CondIni_long = 0, var int CondIni_short = 0
    var int CondIniX0 = 0, var int CondIniX = 0
    var float last_open_longCondition = na, var float last_open_shortCondition = na
    var int last_longCondition0 = na, var int last_shortCondition0 = na
    var int last_longCondition = na, var int last_shortCondition = na
    var int last_XlongCondition0 = na, var int last_XshortCondition0 = na
    var int last_XlongCondition = na, var int last_XshortCondition = na
    var float ts = 0.0
    var bool long_tp = na, var bool short_tp = na
    var bool long_ts = na, var bool short_ts = na
    var bool long_ts_last_minute = na, var bool short_ts_last_minute = na
    var bool long_ts_pump_last_minute = na, var bool short_ts_pump_last_minute = na
    var bool long_ts_pump = na, var bool short_ts_pump = na
    var int last_long_tp = na, var int last_short_tp = na
    var int last_long_ts_pump = na, var int last_short_ts_pump = na
    var int last_long_ts = na, var int last_short_ts = na
    var int CondIni_long_sl = 0, var int CondIni_short_sl = 0
    var bool Final_Long_sl0 = na, var bool Final_Short_sl0 = na
    var bool Final_Long_sl = na, var bool Final_Short_sl = na
    var int last_long_sl = na, var int last_short_sl = na
    var bool Final_XlongCondition0 = na, var bool Final_XshortCondition0 = na
    var bool Final_XlongCondition = na, var bool Final_XshortCondition = na
    var int CondIni_Xlong0 = 0, var int CondIni_Xshort0 = 0
    var int CondIni_Xlong = 0, var int CondIni_Xshort = 0
    var bool Final_longCondition0 = na, var bool Final_shortCondition0 = na
    var bool Final_longCondition = na, var bool Final_shortCondition = na
    var bool BT_Final_longCondition = na, var bool BT_Final_shortCondition = na
    var bool Final_Long_tp = na, var bool Final_Short_tp = na
    var bool Final_Long_ts = na, var bool Final_Short_ts = na
    var bool Final_Long_ts_pump = na, var bool Final_Short_ts_pump = na
    var bool JMA_longCond = na, var bool JMA_shortCond = na
    var bool RF_longCond = na, var bool RF_shortCond = na
    var bool ADX_longCond = na, var bool ADX_shortCond = na
    var bool SAR_longCond = na, var bool SAR_shortCond = na
    var bool RSI_longCond = na, var bool RSI_shortCond = na
    var bool MACD_longCond = na, var bool MACD_shortCond = na
    var bool JMA_XlongCond = na, var bool JMA_XshortCond = na
    var bool RF_XlongCond = na, var bool RF_XshortCond = na
    var bool ADX_XlongCond = na, var bool ADX_XshortCond = na
    var bool SAR_XlongCond = na, var bool SAR_XshortCond = na

    // INITIAL SETTINGS
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Position = input("BOTH", "LONG / SHORT", options = ["BOTH","LONG","SHORT"])
    src = hlc3, src2 = hl2
    is_Long = Position == "SHORT" ? na : true
    is_Short = Position == "LONG" ? na : true

    // JURIK MOVING AVERAGE
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_JMA = input(true, "JURIK MOVING AVERAGE")
    length = input(10, title="JMA LENGTH", type=input.integer, minval = 0)
    phase = input(5, title="JMA PHASE", type=input.integer, minval = 0)
    power = input(2, title="JMA POWER", type=input.float, minval = 0, step = 0.2)

    JMA(src)=>
    phaseRatio = phase < -100 ? 0.5 : phase > 100 ? 2.5 : phase / 100 + 1.5
    beta = 0.45 * (length - 1) / (0.45 * (length - 1) + 2)
    alpha = pow(beta, power)
    jma = 0.0
    e0 = 0.0
    e0 := (1 - alpha) * src + alpha * nz(e0[1])
    e1 = 0.0
    e1 := (src - e0) * (1 - beta) + beta * nz(e1[1])
    e2 = 0.0
    e2 := (e0 + phaseRatio * e1 - nz(jma[1])) * pow(1 - alpha, 2) + pow(alpha, 2) * nz(e2[1])
    jma := e2 + nz(jma[1])

    JMA_Rising = JMA(src) > JMA(src)[1]
    JMA_Falling = JMA(src) < JMA(src)[1]
    JMA_Rising2 = JMA(src2) > JMA(src2)[1]
    JMA_Falling2 = JMA(src2) < JMA(src2)[1]

    JMA_color = JMA_Rising ? color.green : JMA_Falling ? color.red : color.yellow

    plot(Act_JMA ? JMA(src) : na, color=JMA_color, linewidth = 1, title= "Ort")

    // RANGE FILTER
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_RF = input(true, "RANGE FILTER")
    per = input(defval=10, title="SAMPLING PERIOD", minval=1)
    mult = input(defval=1.9, title="RANGE MULTIPLIER", minval=0.1, step = 0.1)

    Range_filter(_src, _per, _mult)=>
    var float _upward = 0.0
    var float _downward = 0.0
    wper = (_per*2) - 1
    avrng = ema(abs(_src - _src[1]), _per)
    _smoothrng = ema(avrng, wper)*_mult
    _filt = _src
    _filt := _src > nz(_filt[1]) ? ((_src-_smoothrng) < nz(_filt[1]) ? nz(_filt[1]) : (_src-_smoothrng)) : ((_src+_smoothrng) > nz(_filt[1]) ? nz(_filt[1]) : (_src+_smoothrng))
    _upward := _filt > _filt[1] ? nz(_upward[1]) + 1 : _filt < _filt[1] ? 0 : nz(_upward[1])
    _downward := _filt < _filt[1] ? nz(_downward[1]) + 1 : _filt > _filt[1] ? 0 : nz(_downward[1])
    [_smoothrng,_filt,_upward,_downward]

    [smoothrng, filt, upward, downward] = Range_filter(src, per, mult)
    [_, _, upward2, downward2] = Range_filter(src2, per, mult)

    hband = filt + smoothrng
    lband = filt - smoothrng

    filtcolor = upward > 0 ? color.lime : downward > 0 ? color.red : color.orange
    filtplot = plot(Act_RF ? filt : na, color = filtcolor, linewidth = 1, title="Denge", editable = false)

    hbandplot = plot(Act_RF ? hband : na, color = color.**ua, transp = 30, title = "Direnç", editable = false)
    lbandplot = plot(Act_RF ? lband : na, color = color.**ua, transp = 30, title = "Destek", editable = false)

    fill(hbandplot, filtplot, color = color.**ua, title = "Direnç", editable = false)
    fill(lbandplot, filtplot, color = color.**ua, title = "Destek", editable = false)

    // ADX
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_ADX = input(true, "ORIGINAL AVERAGE DIRECTIONAL INDEX")
    ADX_len = input(2, title="ADX LENGTH", type=input.integer, minval = 1)
    th = input(3, title="ADX THRESHOLD", type=input.integer, minval = 0)

    calcADX(_len)=>
    up = change(high)
    down = -change(low)
    plusDM = na(up) ? na : (up > down and up > 0 ? up : 0)
    minusDM = na(down) ? na : (down > up and down > 0 ? down : 0)
    truerange = rma(tr, _len)
    _plus = fixnan(100 * rma(plusDM, _len) / truerange)
    _minus = fixnan(100 * rma(minusDM, _len) / truerange)
    sum = _plus + _minus
    _adx = 100 * rma(abs(_plus - _minus) / (sum == 0 ? 1 : sum), _len)
    [_plus,_minus,_adx]

    [DIPlus,DIMinus,ADX] = calcADX(ADX_len)

    macol = DIPlus > DIMinus and ADX > th ? color.lime : DIPlus < DIMinus and ADX > th ? color.red : color.orange
    barcolor(color = Act_ADX ? macol : na, title = "ADX")

    // SAR
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_SAR = input(true, "PARABOLIC SAR")
    Sst = input (0.0, "SAR STAR", step=0.01, minval = 0.01)
    Sinc = input (0.01, "SAR INC", step=0.01, minval = 0.01)
    Smax = input (0.2, "SAR MAX", step=0.01, minval = 0.01)

    SAR = sar(Sst, Sinc, Smax)

    plot(Act_SAR ? SAR : na, color = macol, style = plot.style_cross, title = "SAR")

    // RSI VOLUME WEIGHTED
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_RSI = input(true, "RSI VOLUME WEIGHTED")
    RSI_len = input(21, "RSI LENGHT", minval = 1)
    RSI_obos = input(52,title="RSI CENTER LINE", type=input.integer, minval = 1)

    WiMA(src, length) =>
    var float MA_s=0.0
    MA_s:=(src + nz(MA_s[1] * (length-1)))/length
    MA_s

    RSI_Volume(fv, length) =>
    up=iff(fv>fv[1],abs(fv-fv[1])*volume,0)
    dn=iff(fv<fv[1],abs(fv-fv[1])*volume,0)
    upt=WiMA(up,length)
    dnt=WiMA(dn,length)
    100*(upt/(upt+dnt))

    RSI_V = RSI_Volume(src, RSI_len)

    // MACD
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_MACD = input(true, "MOVING AVERAGE CONVERGENCE / DIVERGENCE")
    fast_length = input(7, title="MACD FAST LENGTH", type=input.integer, minval = 1)
    slow_length = input(16, title="MACD SLOW LENGTH", type=input.integer, minval = 1)
    signal_length = input(10, title="MACD SIGNAL SMOOTHING", type=input.integer, minval = 1, maxval = 50)

    [_,_,hist] = macd(src,fast_length,slow_length,signal_length)

    // STRATEGY
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_not_conf = input(true, "ACTIVATE NOT CONFIRMED SIGNALS")

    JMA_longCond := (Act_JMA ? ((JMA_Rising) or (JMA_Rising2)) : RF_longCond)
    RF_longCond := (Act_RF ? ((high > hband and upward > 0) or (high > hband and upward2 > 0)) : ADX_longCond)
    ADX_longCond := (Act_ADX ? (DIPlus > DIMinus and ADX > th) : SAR_longCond)
    SAR_longCond := (Act_SAR ? (SAR < close) : RSI_longCond)
    RSI_longCond := (Act_RSI ? (RSI_V > RSI_obos) : MACD_longCond)
    MACD_longCond := (Act_MACD ? (hist > 0) : JMA_longCond)

    JMA_shortCond := (Act_JMA ? ((JMA_Falling) or (JMA_Falling2)) : RF_shortCond)
    RF_shortCond := (Act_RF ? ((low < lband and downward > 0) or (low < lband and downward2 > 0)) : ADX_shortCond)
    ADX_shortCond := (Act_ADX ? (DIPlus < DIMinus and ADX > th) : SAR_shortCond)
    SAR_shortCond := (Act_SAR ? (SAR > close) : RSI_shortCond)
    RSI_shortCond := (Act_RSI ? (RSI_V < RSI_obos) : MACD_shortCond)
    MACD_shortCond := (Act_MACD ? (hist < 0) : JMA_shortCond)

    longCond := JMA_longCond and RF_longCond and ADX_longCond and SAR_longCond and RSI_longCond and MACD_longCond and volume > sma(volume,30)*0.5
    shortCond := JMA_shortCond and RF_shortCond and ADX_shortCond and SAR_shortCond and RSI_shortCond and MACD_shortCond and volume > sma(volume,30)*0.5

    JMA_XlongCond := (Act_JMA ? ((JMA_Falling) or (JMA_Falling2)) : RF_XlongCond)
    RF_XlongCond := (Act_RF ? ((low < lband and downward > 0) or (low < lband and downward2 > 0)) : ADX_XlongCond)
    ADX_XlongCond := (Act_ADX ? not (DIPlus < DIMinus and ADX > th) : SAR_XlongCond)
    SAR_XlongCond := (Act_SAR ? (SAR > close) : JMA_XlongCond)

    JMA_XshortCond := (Act_JMA ? ((JMA_Rising) or (JMA_Rising2)) : RF_XshortCond)
    RF_XshortCond := (Act_RF ? ((high > hband and upward > 0) or (high > hband and upward2 > 0)) : ADX_XshortCond)
    ADX_XshortCond := (Act_ADX ? not (DIPlus > DIMinus and ADX > th) : SAR_XshortCond)
    SAR_XshortCond := (Act_SAR ? (SAR < close) : JMA_XshortCond)

    XlongCond := JMA_XlongCond and RF_XlongCond and ADX_XlongCond and SAR_XlongCond
    XshortCond := JMA_XshortCond and RF_XshortCond and ADX_XshortCond and SAR_XshortCond

    CondIni_long0 := longCond ? 1 : shortCond ? -1 : CondIni_long0[1]
    CondIni_short0 := longCond ? 1 : shortCond ? -1 : CondIni_short0[1]

    longCondition0 = (longCond and CondIni_long0[1] == -1)
    shortCondition0 = (shortCond and CondIni_short0[1] == 1)

    CondIni_long := longCond[1] ? 1 : shortCond[1] ? -1 : CondIni_long[1]
    CondIni_short := longCond[1] ? 1 : shortCond[1] ? -1 : CondIni_short[1]

    longCondition = (longCond[1] and CondIni_long[1] == -1)
    shortCondition = (shortCond[1] and CondIni_short[1] == 1)

    CondIniX0 := XlongCond ? 1 : XshortCond ? -1 : CondIniX0[1]

    XlongCondition0 = XlongCond and CondIniX0[1] == -1
    XshortCondition0 = XshortCond and CondIniX0[1] == 1

    CondIniX := XlongCond[1] ? 1 : XshortCond[1] ? -1 : CondIniX[1]

    XlongCondition = XlongCond[1] and CondIniX[1] == -1
    XshortCondition = XshortCond[1] and CondIniX[1] == 1

    // Get the price of the last opened long or short

    last_open_long0 = max(SAR[1],hband)
    last_open_short0 = min(SAR[1],lband)

    last_open_longCondition := longCondition0 and not longCondition ? max(last_open_long0,open) :
    longCondition and longCondition0[1] and not longCondition[1] ? max(max(last_open_long0[1],open[1]),close[1]) : longCondition ? open : nz(last_open_longCondition[1])
    last_open_shortCondition := shortCondition0 and not shortCondition ? min(last_open_short0, open) :
    shortCondition and shortCondition0[1] and not shortCondition[1] ? min(min(last_open_short0[1],open[1]),close[1]) : shortCondition ? open : nz(last_open_shortCondition[1])

    // Check if your last postion was a long or a short

    last_longCondition0 := longCondition0 ? time : nz(last_longCondition0[1])
    last_shortCondition0 := shortCondition0 ? time : nz(last_shortCondition0[1])

    in_longCondition0 = last_longCondition0 > last_shortCondition0
    in_shortCondition0 = last_shortCondition0 > last_longCondition0

    last_longCondition := longCondition ? time : nz(last_longCondition[1])
    last_shortCondition := shortCondition ? time : nz(last_shortCondition[1])

    in_longCondition = last_longCondition > last_shortCondition
    in_shortCondition = last_shortCondition > last_longCondition

    last_XlongCondition0 := XlongCondition0 ? time : nz(last_XlongCondition0[1])
    last_XshortCondition0 := XshortCondition0 ? time : nz(last_XshortCondition0[1])

    in_longConditionX0 = last_longCondition > last_XlongCondition0
    in_shortConditionX0 = last_shortCondition > last_XshortCondition0

    last_XlongCondition := XlongCondition ? time : nz(last_XlongCondition[1])
    last_XshortCondition := XshortCondition ? time : nz(last_XshortCondition[1])

    in_longConditionX = last_longCondition > last_XlongCondition
    in_shortConditionX = last_shortCondition > last_XshortCondition

    // TAKE PROFIT
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    TpTs = input("BOTH", "TAKE PROFIT / TRAILING STOP", options = ["BOTH","TAKE PROFIT","TRAILING STOP"])
    is_TP = TpTs == "TRAILING STOP" ? na : true
    is_TS = TpTs == "TAKE PROFIT" ? na : true

    tp = input(0.7, "TAKE PROFIT %", type = input.float, step = 0.1)

    // TP Conditions

    long_tp := (is_TP and is_Long and high > (last_open_longCondition*(1+(tp/100))) and not (shortCondition0 and Act_not_conf) and in_longCondition and in_longConditionX)
    short_tp := (is_TP and is_Short and low < (last_open_shortCondition*(1-(tp/100))) and not (longCondition0 and Act_not_conf) and in_shortCondition and in_shortConditionX)

    // Get the time of the last ts close

    last_long_tp := long_tp ? time : nz(last_long_tp[1])
    last_short_tp := short_tp ? time : nz(last_short_tp[1])

    Final_Long_tp := (long_tp and last_longCondition > nz(last_long_tp[1]) and last_longCondition > nz(last_long_sl[1]))
    Final_Short_tp := (short_tp and last_shortCondition > nz(last_short_tp[1]) and last_shortCondition > nz(last_short_sl[1]))

    // TRAILING STOP
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    tsi = input(0.5, "TRAILING STOP ACTIVATION %", type = input.float, step = 0.1)
    ts_low_profit = input(0.2, "TRAILING STOP OFFSET % (PROFIT=0.5%)", type = input.float, step = 0.05, minval = 0.01)
    ts_high_profit = input(0.75, "TRAILING STOP OFFSET % (PROFIT=10%)", type = input.float, step = 0.1, minval = 0.1)

    // Dynamic Trailing Stop linear extrapolation / interpolation according with profit

    ts_dynamic(x)=>
    ts_dynamic = 0.0
    ts_dynamic := max(((((ts_high_profit-ts_low_profit)/9.5)*(x-0.5)) + ts_low_profit), ts_low_profit)

    long_profit = abs(((high-last_open_longCondition)/last_open_longCondition)*100)
    short_profit = abs(((low-last_open_shortCondition)/last_open_shortCondition)*100)

    ts := in_longCondition ? ts_dynamic(long_profit) : ts_dynamic(short_profit)

    // TS Conditions

    long_ts := (is_TS and is_Long and high >= (close*(1+(ts/100))) and high >= (last_open_longCondition*(1+(tsi/100)))
    and (high >= hband*(1+(ts/100))) and not (shortCondition0 and Act_not_conf) and in_longCondition and in_longConditionX)

    long_ts_last_minute := is_TS and ((timenow > (time + (timeframe.multiplier*60000) - 60000)) and high < (close*(1+(ts/100)))
    and (high > ((last_open_longCondition*(1+(tsi/100)))*(1+(ts/100)))) and (high >= hband*(1+(ts/100)))
    and is_Long and not (shortCondition0 and Act_not_conf) and in_longCondition and in_longConditionX)

    short_ts := (is_TS and is_Short and low <= (close*(1-(ts/100))) and low <= (last_open_shortCondition*(1-(tsi/100)))
    and (low <= lband*(1-(ts/100))) and not (longCondition0 and Act_not_conf) and in_shortCondition and in_shortConditionX)

    short_ts_last_minute := is_TS and ((timenow > (time + (timeframe.multiplier*60000) - 60000)) and low > (close*(1-(ts/100)))
    and (low < ((last_open_shortCondition*(1-(tsi/100)))*(1-(ts/100)))) and (low <= lband*(1-(ts/100)))
    and is_Short and not (longCondition0 and Act_not_conf) and in_shortCondition and in_shortConditionX)

    // Ts for Pumps

    ts_pump_long_profit = abs(((high-last_open_longCondition)/last_open_longCondition)*100)
    ts_pump_short_profit = abs(((low-last_open_shortCondition)/last_open_shortCondition)*100)

    ts_pump = in_longCondition0 ? ts_dynamic(ts_pump_long_profit) : ts_dynamic(ts_pump_short_profit)

    Act_ts_pump = input(1.0, "TRAILING STOP FOR PUMPS ACTIVATION % ", type = input.float, step = 0.1)

    long_ts_pump := is_Long and longCondition0 and not longCondition and high > ((last_open_longCondition*(1+(Act_ts_pump/100)))*(1+(ts_pump/100)))
    and high > last_open_longCondition*(1+(Act_ts_pump/100)) and high >= (close*(1+(ts_pump/100))) and Act_not_conf

    long_ts_pump_last_minute := (timenow > (time + (timeframe.multiplier*60000) - 60000)) and high < (close*(1+(ts_pump/100)))
    and high > ((last_open_longCondition*(1+(Act_ts_pump/100)))*(1+(ts_pump/100))) and is_Long and longCondition0 and not longCondition
    and high > last_open_longCondition*(1+(Act_ts_pump/100)) and Act_not_conf

    short_ts_pump := is_Short and shortCondition0 and not shortCondition and low < ((last_open_shortCondition*(1-(Act_ts_pump/100)))*(1-(ts_pump/100)))
    and low < last_open_shortCondition*(1-(Act_ts_pump/100)) and low <= (close*(1-(ts_pump/100))) and Act_not_conf

    short_ts_pump_last_minute := (timenow > (time + (timeframe.multiplier*60000) - 60000)) and low > (close*(1-(ts_pump/100)))
    and low < ((last_open_shortCondition*(1-(Act_ts_pump/100)))*(1-(ts_pump/100))) and is_Short and shortCondition0 and not shortCondition
    and low < last_open_shortCondition*(1-(Act_ts_pump/100)) and Act_not_conf

    // Get the time of the last ts close

    last_long_ts := long_ts or long_ts_last_minute ? time : nz(last_long_ts[1])
    last_short_ts := short_ts or short_ts_last_minute ? time : nz(last_short_ts[1])

    Final_Long_ts := ((long_ts or long_ts_last_minute) and last_longCondition > nz(last_long_ts[1]) and last_longCondition > nz(last_long_sl[1]))
    Final_Short_ts := ((short_ts or short_ts_last_minute) and last_shortCondition > nz(last_short_ts[1]) and last_shortCondition > nz(last_short_sl[1]))

    last_long_ts_pump := long_ts_pump or long_ts_pump_last_minute ? time : nz(last_long_ts_pump[1])
    last_short_ts_pump := short_ts_pump or short_ts_pump_last_minute ? time : nz(last_short_ts_pump[1])

    Final_Long_ts_pump := ((long_ts_pump or long_ts_pump_last_minute) and last_longCondition0 > nz(last_long_ts_pump[1]))
    Final_Short_ts_pump := ((short_ts_pump or short_ts_pump_last_minute) and last_shortCondition0 > nz(last_short_ts_pump[1]))

    // Emergency close

    Closing_long_ts = long_ts_last_minute or ((TpTs == "TRAILING STOP" ? (Final_Long_ts) : TpTs == "BOTH" ? (Final_Long_tp and Final_Long_ts) : na) and (close <= last_open_longCondition))
    Closing_short_ts = short_ts_last_minute or ((TpTs == "TRAILING STOP" ? (Final_Short_ts) : TpTs == "BOTH" ? (Final_Short_tp and Final_Short_ts) : na) and (close >= last_open_shortCondition))

    Color_Closing_long_ts = (high < (close*(1+(ts/100))) and (high > ((last_open_longCondition*(1+(tsi/100)))*(1+(ts/100))))
    and (high >= hband*(1+(ts/100))) and is_Long and not (shortCondition0 and Act_not_conf) and in_longCondition and in_longConditionX) ? color.yellow :
    ((TpTs == "TRAILING STOP" ? (Final_Long_ts) : TpTs == "BOTH" ? (Final_Long_tp and Final_Long_ts) : na) and (close <= last_open_longCondition)) ? color.red : color.white

    Color_Closing_short_ts = (low > (close*(1-(ts/100))) and (low < ((last_open_shortCondition*(1-(tsi/100)))*(1-(ts/100))))
    and (low <= lband*(1-(ts/100))) and is_Short and not (longCondition0 and Act_not_conf) and in_shortCondition and in_shortConditionX) ? color.yellow :
    ((TpTs == "TRAILING STOP" ? (Final_Short_ts) : TpTs == "BOTH" ? (Final_Short_tp and Final_Short_ts) : na) and (close >= last_open_shortCondition)) ? color.red : color.white

    // STOP LOSS
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    Act_sl = input(false, "ACTIVATE STOP LOSS")
    sl = input(4.0, "STOP LOSS %", type = input.float, step = 0.1)

    long_sl = Act_sl and is_Long and low <= ((1-(sl/100))*last_open_longCondition) and not (open < ((1-(sl/100))*last_open_longCondition))
    short_sl = Act_sl and is_Short and high >= ((1+(sl/100))*last_open_shortCondition) and not (open > ((1+(sl/100))*last_open_shortCondition))

    // Sl

    Final_Long_sl0 := Position == "BOTH" ? long_sl and CondIni_long_sl[1] == -1 and not Final_Long_ts and not shortCondition and not (shortCondition0 and Act_not_conf) :
    long_sl and CondIni_long_sl[1] == -1 and not Final_Long_ts

    Final_Short_sl0 := Position == "BOTH" ? short_sl and CondIni_short_sl[1] == -1 and not Final_Short_ts and not longCondition and not (longCondition0 and Act_not_conf) :
    short_sl and CondIni_short_sl[1] == -1 and not Final_Short_ts

    // Get the time of the last sl close

    last_long_sl := Final_Long_sl ? time : nz(last_long_sl[1])
    last_short_sl := Final_Short_sl ? time : nz(last_short_sl[1])

    Final_Long_sl := Final_Long_sl0 and last_longCondition > nz(last_long_ts[1]) and last_longCondition > nz(last_long_sl[1])
    Final_Short_sl := Final_Short_sl0 and last_shortCondition > nz(last_short_ts[1]) and last_shortCondition > nz(last_short_sl[1])

    // SIGNALS
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    // long & short

    Final_longCondition0 := is_Long and longCondition0 and not longCondition and nz(CondIni_long0[1]) == -1 and Act_not_conf
    Final_shortCondition0 := is_Short and shortCondition0 and not shortCondition and nz(CondIni_short0[1]) == 1 and Act_not_conf

    plotshape(Final_longCondition0, title = "Not_Conf Long Signal", text = "��", style=shape.triangleup, location=location.belowbar, color = color.blue, transp = 0, size=size.tiny)
    plotshape(Final_shortCondition0, title = "Not_Conf Short Signal", text = "��", style=shape.triangledown, location=location.abovebar, color = #FF0000, transp = 0, size=size.tiny)

    Final_longCondition := is_Long and longCondition and not Final_shortCondition0 and not (Final_longCondition0[1] and not Final_Long_ts_pump[1])
    Final_shortCondition := is_Short and shortCondition and not Final_longCondition0 and not (Final_shortCondition0[1] and not Final_Short_ts_pump[1])

    plotshape(Final_longCondition, title = "Long Signal", style=shape.triangleup, location=location.belowbar, color = color.blue, transp = 0, size=size.tiny)
    plotshape(Final_shortCondition, title = "Short Signal", style=shape.triangledown, location=location.abovebar, color = #FF0000, transp = 0, size=size.tiny)

    // Xlong0 & Xshort0

    CondIni_Xlong0 := Final_Long_tp or Final_Short_tp or Final_Long_sl or Final_XlongCondition0 or Final_shortCondition0 or Final_shortCondition ? 1 :
    Final_longCondition0 or Final_longCondition ? -1 : nz(CondIni_Xlong0[1])

    CondIni_Xshort0 := Final_Long_tp or Final_Short_tp or Final_Short_sl or Final_XshortCondition0 or Final_longCondition0 or Final_longCondition ? 1 :
    Final_shortCondition0 or Final_shortCondition ? -1 : nz(CondIni_Xshort0[1])

    Final_XlongCondition0 := (Position == "SHORT" ? na : Position == "BOTH" ? (XlongCondition0 and last_longCondition > last_XlongCondition0[1]) :
    ((shortCondition0 and last_longCondition > last_shortCondition0[1]) or (XlongCondition0 and last_longCondition > last_XlongCondition0[1])))
    and CondIni_Xlong0 == -1 and not Final_longCondition0 and not Final_shortCondition0 and not Final_longCondition and not Final_shortCondition

    Final_XshortCondition0 := (Position == "LONG" ? na : Position == "BOTH" ? (XshortCondition0 and last_shortCondition > last_XshortCondition0[1]) :
    ((longCondition0 and last_shortCondition > last_longCondition0[1]) or (XshortCondition0 and last_shortCondition > last_XshortCondition0[1])))
    and CondIni_Xshort0 == -1 and not Final_longCondition0 and not Final_shortCondition0 and not Final_longCondition and not Final_shortCondition

    // Xlong & Xshort

    CondIni_Xlong := Final_Long_tp or Final_Short_tp or Final_Long_sl or Final_XlongCondition or Final_shortCondition0 or Final_shortCondition ? 1 :
    Final_longCondition0 or Final_longCondition ? -1 : nz(CondIni_Xlong[1])

    CondIni_Xshort := Final_Long_tp or Final_Short_tp or Final_Short_sl or Final_XshortCondition or Final_longCondition0 or Final_longCondition ? 1 :
    Final_shortCondition0 or Final_shortCondition ? -1 : nz(CondIni_Xshort[1])

    Final_XlongCondition := (Position == "SHORT" ? na : Position == "BOTH" ? (XlongCondition and last_longCondition > last_XlongCondition[1]) :
    ((shortCondition and last_longCondition > last_shortCondition[1]) or (XlongCondition and last_longCondition > last_XlongCondition[1])))
    and CondIni_Xlong == -1 and not Final_longCondition0 and not Final_shortCondition0

    Final_XshortCondition := (Position == "LONG" ? na : Position == "BOTH" ? (XshortCondition and last_shortCondition > last_XshortCondition[1]) :
    ((longCondition and last_shortCondition > last_longCondition[1]) or (XshortCondition and last_shortCondition > last_XshortCondition[1])))
    and CondIni_Xshort == -1 and not Final_longCondition0 and not Final_shortCondition0

    Final_XL = (Final_XlongCondition0 and Act_not_conf) or (Final_XlongCondition and not Act_not_conf)
    Final_XS = (Final_XshortCondition0 and Act_not_conf) or (Final_XshortCondition and not Act_not_conf)

    plotshape(Final_XL, title = "XL Signal", text = "XL", style=shape.triangledown, location=location.abovebar, color = color.orange, transp = 0, size=size.tiny)
    plotshape(Final_XS, title = "XS Signal", text = "XS", style=shape.triangleup, location=location.belowbar, color = color.**ua, transp = 0, size=size.tiny)

    // Tp

    plotshape(Final_Long_tp and not Final_Long_ts, text ="TP", title="Take Profit Long", style=shape.triangledown, location=location.abovebar, color = color.red, editable = false, transp = 0)
    plotshape(Final_Short_tp and not Final_Short_ts, text ="TP", title="Take Profit Short", style=shape.triangleup, location=location.belowbar, color = color.lime, editable = false, transp = 0)

    ltp = iff(Final_Long_tp, last_open_longCondition*(1+(tp/100)), na), plot(ltp, style = plot.style_cross, linewidth=3, color = Color_Closing_long_ts, editable = false)
    stp = iff(Final_Short_tp, last_open_shortCondition*(1-(tp/100)), na), plot(stp, style = plot.style_cross, linewidth=3, color = Color_Closing_short_ts, editable = false)

    // Ts

    plotshape(Final_Long_ts and not Final_Long_tp, text ="TS", title="Trailing Stop Long", style=shape.triangledown, location=location.abovebar, color = color.red, editable = false, transp = 0)
    plotshape(Final_Short_ts and not Final_Short_tp, text ="TS", title="Trailing Stop Short", style=shape.triangleup, location=location.belowbar, color = color.lime, editable = false, transp = 0)

    lts = iff(Final_Long_ts, high*(1-(ts/100)), na), plot(lts, style = plot.style_cross, linewidth=3, color = Color_Closing_long_ts, editable = false)
    sts = iff(Final_Short_ts, low*(1+(ts/100)), na), plot(sts, style = plot.style_cross, linewidth=3, color = Color_Closing_short_ts, editable = false)

    // Ts on pumps

    plotshape(Final_Long_ts_pump and Final_longCondition0, text ="PUMP", title="Trailing Stop Long Pump", style=shape.triangledown,
    location=location.abovebar, color = color.red, editable = false, transp = 0)
    plotshape(Final_Short_ts_pump and Final_shortCondition0, text ="PUMP", title="Trailing Stop Short Pump", style=shape.triangleup,
    location=location.belowbar, color = color.lime, editable = false, transp = 0)

    lts_pump = iff(Final_Long_ts_pump and Final_longCondition0, high*(1-(ts_pump/100)), na), plot(lts_pump, style = plot.style_cross, linewidth=3, color = color.white, editable = false)
    sts_pump = iff(Final_Short_ts_pump and Final_shortCondition0, low*(1+(ts_pump/100)), na), plot(sts_pump, style = plot.style_cross, linewidth=3, color = color.white, editable = false)

    // Tp & Ts

    plotshape(Final_Long_ts and Final_Long_tp, title="TP & Trailing Stop Long", style=shape.flag, location=location.abovebar, color = color.red, editable = false, transp = 0, size=size.tiny)
    plotshape(Final_Short_ts and Final_Short_tp, title="TP & Trailing Stop Short", style=shape.flag, location=location.belowbar, color = color.green, editable = false, transp = 0, size=size.tiny)

    // Sl

    plotshape(Final_Long_sl, text ="SL", title="Stop Loss Long", style=shape.triangledown, location=location.abovebar, color = color.fuchsia, editable = false, transp = 0)
    plotshape(Final_Short_sl, text ="SL", title="Stop Loss Short", style=shape.triangleup, location=location.belowbar, color = color.fuchsia, editable = false, transp = 0)

    lsl = iff(Final_Long_sl, (1-(sl/100))*last_open_longCondition, na), plot(lsl, style = plot.style_cross, linewidth=3, color = color.white, editable = false)
    ssl = iff(Final_Short_sl, (1+(sl/100))*last_open_shortCondition, na), plot(ssl, style = plot.style_cross, linewidth=3, color = color.white, editable = false)

    // Final Long & Short Counter

    if is_TP
    if Final_Long_tp or Final_Long_sl or Final_XlongCondition
    CondIni_long := -1
    CondIni_long0 := -1
    else
    if Final_Long_ts or Final_Long_sl or Final_XlongCondition
    CondIni_long := -1
    CondIni_long0 := -1

    if is_TP
    if Final_Short_tp or Final_Short_sl or Final_XshortCondition
    CondIni_short := 1
    CondIni_short0 := 1
    else
    if Final_Short_ts or Final_Short_sl or Final_XshortCondition
    CondIni_short := 1
    CondIni_short0 := 1

    if Final_longCondition
    CondIni_long0 := 1

    if Final_shortCondition
    CondIni_short0 := -1

    // Final SL Counter

    CondIni_long_sl := Final_Long_sl or Final_shortCondition0 or Final_shortCondition or Final_XlongCondition ? 1 : Final_longCondition0 or Final_longCondition ? -1 : CondIni_long_sl[1]
    CondIni_short_sl := Final_Short_sl or Final_longCondition0 or Final_longCondition or Final_XshortCondition ? 1 : Final_shortCondition0 or Final_shortCondition ? -1 : CondIni_short_sl[1]

    // Levels

    plot(is_TP and is_Long and in_longCondition0 and not longCondition0 ? (last_open_longCondition*(1+(tp/100))) : na, "Long Take Profit", color = color.lime, style=3, linewidth=1, editable = false)
    plot(is_TP and is_Short and in_shortCondition0 and not shortCondition0 ? (last_open_shortCondition*(1-(tp/100))) : na, "Short Take Profit", color = #FF0000, style=3, linewidth=1, editable = false)

    plot(is_TS and is_Long and in_longCondition0 and not longCondition0 ? (last_open_longCondition*(1+(tsi/100))) : na, "Long Trailing", color = color.green, style=3, linewidth=1, editable = false)
    plot(is_TS and is_Short and in_shortCondition0 and not shortCondition0 ? (last_open_shortCondition*(1-(tsi/100))) : na, "Short Trailing", color = color.red, style=3, linewidth=1, editable = false)

    // Weekend

    Weekend = true
    W_color = Weekend and (dayofweek == dayofweek.sunday or dayofweek == dayofweek.saturday) ? color.teal : na
    bgcolor(W_color, title = "WEEKEND")

    // ALERTS
    // â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â –‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â– ‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘

    alertcondition(Final_longCondition0, title="Not_Conf Long Alert", message = "NC LONG")

    alertcondition(Final_shortCondition0, title="Not_Conf Short Alert", message = "NC SHORT")

    alertcondition(Final_longCondition, title="Long Alert", message = "LONG")

    alertcondition(Final_shortCondition, title="Short Alert", message = "SHORT")

    alertcondition(Final_Long_tp, title="Take Profit on Longs Alert", message = "LONG TP")

    alertcondition(Final_Short_tp, title="Take Profit on Shorts Alert", message = "SHORT TP")

    alertcondition((Final_Long_ts and close > hband) and not Closing_long_ts, title="Trailing Stop on Longs Alert", message = "LONG TS") // closing X% every minute

    alertcondition((Final_Short_ts and close < lband) and not Closing_short_ts, title="Trailing Stop on Shorts Alert", message = "SHORT TS") // closing X% every minute

    alertcondition(Final_XL or Final_Long_sl or Closing_long_ts or (Final_Long_ts_pump and (close > last_open_longCondition*(1+Act_ts_pump/100)) and Act_not_conf), title="XLong/PUMP/Stop Loss on Longs Alert", message = "XLONG/PUMP/STOP-LOSS")

    alertcondition(Final_XS or Final_Short_sl or Closing_short_ts or (Final_Short_ts_pump and (close < last_open_shortCondition*(1-Act_ts_pump/100)) and Act_not_conf), title="XShort/PUMP/Stop Loss on Shorts Alert", message = "XSHORT/PUMP/STOP-LOSS")
    Teknik olarak; yarýna gebe olan bugünü yaþamalý ki, yarýn, yaþanmýþ olsun.

Sayfa 25/272 ÝlkÝlk ... 1523242526273575125 ... SonSon

Yer Ýmleri

Yer Ýmleri

Gönderi Kurallarý

  • Yeni konu açamazsýnýz
  • Konulara cevap yazamazsýnýz
  • Yazýlara ek gönderemezsiniz
  • Yazýlarýnýzý deðiþtiremezsiniz
  •