traduzione codice TW Squeeze & Release

Forums ProRealTime forum Italiano Supporto ProBuilder traduzione codice TW Squeeze & Release

Viewing 8 posts - 1 through 8 (of 8 total)
  • #231101

    Buongiorno

     

    scusate ho problemi ha postare e richiedere una traduzione del codice non so da cosa dipenda

    #231102

    https://it.tradingview.com/script/2rpsjnzA-Squeeze-Release-AlgoAlpha/

     

    allego link e foto senza script per vedere se dipende da quello

     

    Grazie

    #231253

    Buon pomeriggio,

     

    sono appena riuscito a postare senza problemi nuova richiesta per altro codice di TW.

    A questo punto ho ragione di pensare che vi sia un filtro del forum che blocca i miei tentativi di postare lo script del codice (sia con copia e incolla direttamente nel topic oppure in un file di testo in pdf o word)

    Provo a postarlo come screenshot. Magari qualcuno dei moderatori è in grado di capire se c’è un termine o un carattere contenuto nello script che non va bene e bypassare il problema.

    Grazie per l’attenzione

    #231311

    Rispondo per prova (admin)

    #231313

    Rispondo per prova2 (admin)

    // This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © AlgoAlpha
    //@version=5
    indicator(title=”Squeeze & Release [AlgoAlpha]”, shorttitle=”AlgoAlpha -S and R”, overlay=false, timeframe=””, timeframe_gaps=true)
    // Input definitions for user configuration
    periodForCalculation = input.int(title=”Calculation Period”, defval=14, minval=1)
    lengthForSmoothing = input.int(title=”Smoothing Length”, defval=7, minval=1)
    lengthForEMA = input.int(title=”EMA Length”, defval=14, minval=1)
    lengthForHyperSqueezeDetection = input.int(title=”Hyper Squeeze Detection Length”, defval=5, minval=1)
    standarddeviationlength = input.int(title=”standard deviation Length”, defval=4999, minval=2, maxval = 4999)
    showbands = input.bool(true, “Show Deviation Bands”)
    enableSmoothing = input.bool(true, “Enable Smoothing”)
    colorForRelease = input.color(#673ab7, “Release Color”)
    colorForSqueeze = input.color(#e91e63, “Squeeze Color”)
    // Calculating ATR and its EMA
    averageTrueRange = ta.ema(ta.tr(true), periodForCalculation)
    emaOfATR = ta.ema(averageTrueRange, periodForCalculation * 2)
    volatilityIndicator = emaOfATR – averageTrueRange
    // Calculating SV (Squeeze Value) and SVMA (Squeeze Value Moving Average)
    emaHighLowDifference = ta.ema(high – low, periodForCalculation * 2)
    squeezeValue = enableSmoothing ? ta.ema(volatilityIndicator / emaHighLowDifference * 100, lengthForSmoothing) : volatilityIndicator / emaHighLowDifference * 100
    squeezeValueMA = ta.ema(squeezeValue, lengthForEMA)
    // Plotting the main lines
    movingAverageLine = plot(squeezeValueMA, color=squeezeValue > 0 and ta.rising(squeezeValue, lengthForHyperSqueezeDetection) ? color.white : color.new(color.white, 70))
    valueLine = plot(squeezeValue, title=”ATR”, color=squeezeValue > squeezeValueMA ? color.new(colorForSqueeze, 0) : color.new(colorForRelease, 0))
    // Plotting characters for Squeeze and Release
    plotchar(ta.crossover(squeezeValue, squeezeValueMA) ? squeezeValueMA – 10 : na, title=”Squeeze”, char=”S”, location=location.absolute, color=colorForSqueeze, size=size.tiny)
    plotchar(ta.crossunder(squeezeValue, squeezeValueMA) ? squeezeValueMA + 10 : na, title=”Release”, char=”R”, location=location.absolute, color=colorForRelease, size=size.tiny)
    // Filling between MA and Value
    fillColorBetweenLines = squeezeValue > squeezeValueMA ? color.new(colorForSqueeze, 0) : color.new(colorForRelease, 0)
    fill(movingAverageLine, valueLine, squeezeValue, squeezeValueMA, fillColorBetweenLines, color.new(chart.bg_color, 100))
    meanValue = ta.cum(squeezeValue)/bar_index
    standardDeviation = ta.stdev(squeezeValue, standarddeviationlength, true)
    thresholdUp = math.max(((squeezeValue-meanValue)/(2*standardDeviation)) * 100, 70)
    thresholdDown = math.max(((meanValue-squeezeValue)/(2*standardDeviation)) * 100, 70)
    upperLimit = plot(meanValue+standardDeviation, display = display.none)
    lowerHigh = plot(meanValue-standardDeviation, display = display.none)
    upperHigh = plot(meanValue + 2*standardDeviation, display = display.none)
    lowerLimit = plot(meanValue – 2*standardDeviation, display = display.none)
    fill(upperLimit, upperHigh, color = color.from_gradient(squeezeValue, -30, 30, color.new(colorForSqueeze, thresholdUp), color.new(colorForRelease, thresholdUp)), display = showbands ? display.all : display.none)
    fill(lowerLimit, lowerHigh, color = color.from_gradient(squeezeValue, -30, 30, color.new(colorForSqueeze, thresholdDown), color.new(colorForRelease, thresholdDown)), display = showbands ? display.all : display.none)
    alertcondition(ta.crossover(squeezeValue, squeezeValueMA), “Squeeze”, “Squeeze!”)
    alertcondition(ta.crossunder(squeezeValue, squeezeValueMA), “Release”, “Release!”)
    alertcondition(squeezeValue > 0 and ta.rising(squeezeValue, lengthForHyperSqueezeDetection), “Hyper Squeeze”, “Hyper Squeeze!”)
    #231314

    Ok, ho dovuto sostituire nello script tradingview S e R con un font più classico, ed eliminare le luci davanti a Squeeze e Release

    #231316

    Esatto, quello era il problema 🙁

    #231327

    Grazie a tutti per l’aiuto.

    Buona serata.

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

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