Traduzione indicatore EMA Wave and GRaB Candles by JustUncleL

Forums ProRealTime forum Italiano Supporto ProBuilder Traduzione indicatore EMA Wave and GRaB Candles by JustUncleL

Viewing 3 posts - 1 through 3 (of 3 total)
  • #253134

    Buongiorno,

     

    sono a chiedere cortese traduzione codice in oggetto, che trovo interessante.

     

    Grazie

    https://www.tradingview.com/script/OeeX5b5L-EMA-Wave-and-GRaB-Candles-by-JustUncleL/

    //@version=3
    //
    study(“EMA Wave and GRaB Candles by JustUncleL”, overlay=true,shorttitle=”WAVEGRAB”)

    //
    // Author: JustUncleL
    // Date :24-March-2017
    //
    // Description:
    // This is a specialised Price Action Channel (PAC) or Wave that mirrors the indicator used by
    // Raghee Horner, the “34EMA Wave and GRaB Candles”.
    //
    // The Wave consist of
    // – 34 period exponential moving average on the high
    // – 34 period exponential moving average on the close
    // – 34 period exponential moving average on the low
    //
    // The GRaB candles colour scheme:
    // – Lime = Bull candle closed above Wave
    // – Green = Bear candle closed above Wave
    // – Red = Bull candle closed below Wave
    // – DarkRed = Bear candle closed below Wave
    // – Aqua = Bull candle closed inside Wave
    // – Blue = Bear candle closed inside Wave
    //
    // Optionally display a trend direction indication along bottom of chart.
    //
    // Reference:
    // For some details on how Raghee uses this indicator check out
    // – https://www.forexfactory.com/showthread.php?t=492080
    // and her various training and webinar videos on Youtube
    //
    // Note: This code is licensed under open source GPLv3 terms and conditions. Any
    // modifications to it should be made public and linked to the original code.
    //

    //
    // === INPUTS ===
    //
    ShowPAC = input(true, title=”Show EMA Wave”)
    ShowBarColor = input(true, title=”Show Coloured GRaB Candles”)
    ShowTrendIndi = input(false, title=”Show Trend Indicator”)
    PACLen = input(34,minval=2,title=”EMA Wave Length (34 by default)”)
    src = input(close,title=”Source for Wave centre EMA”)

    // — CONSTANTS —
    DodgerBlue = #1E90FF

    // === /INPUTS ===
    // Constants colours that include fully non-transparent option.
    green100 = #008000FF
    lime100 = #00FF00FF
    red100 = #FF0000FF
    blue100 = #0000FFFF
    aqua100 = #00FFFFFF
    darkred100 = #8B0000FF

    // === SERIES SETUP ===

    // Price action channel (Wave)
    pacCe = ema(src, PACLen)
    pacLo = ema(low, PACLen)
    pacHi = ema(high, PACLen)

    // === /SERIES ===

    // === PLOTTING ===
    //
    // If selected, Plot the Wave Channel based on EMA high,low and close
    L=plot(ShowPAC ?pacLo:na, color=red, linewidth=1, title=”High Wave EMA”,transp=20)
    H=plot(ShowPAC ?pacHi:na, color=green, linewidth=1, title=”Low Wave EMA”,transp=20)
    C=plot(ShowPAC ?pacCe:na, color=black, linewidth=1, title=”Centre Wave EMA”,transp=20)
    fill(L,H, color=gray,transp=92,title=”Fill Channel”)

    // Colour bars according to the close position relative to the PAC selected.
    bColour = close>=open? close>=pacHi? lime100 : close<=pacLo? red100 : aqua100 : close>=pacHi? green100 : close<=pacLo? darkred100 : blue100
    barcolor(ShowBarColor?bColour:na, title = “Bar Colours”)

    // Show trend direction indication on the bottom
    wcolor = high>pacHi and low>pacHi? lime : low<pacLo and high<pacLo ? red : gray
    plotshape(ShowTrendIndi?src:na, color=wcolor,location=location.bottom,style=shape.square,size=size.small,transp=20,title=”Trend Direction”)

    // === /PLOTTING ===
    // eof

     

     

     

    #253143

    Ecco:

    1 user thanked author for this post.
    #253144

    Perfetto, grazie !!!

     

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login