traduzione codice TW order block

Forums ProRealTime forum Italiano Supporto ProBuilder traduzione codice TW order block

Viewing 3 posts - 1 through 3 (of 3 total)
  • #222321
    Buongiorno,
    volevo chiedere cortese traduzione del seguente codice da TW, che non troppo esteso sembra interessante.
    Grazie e mille.
    // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
    // © dadoesploso
    //@version=4
    study(title=”Volatility Expansion Levels”, shorttitle = “VEL”,overlay=true)
    atrc = input(defval=0.9, title=”ATR Multiplier (of Trapped Trend Bar minimum absolute close-to-open distance). Default is 0.9. Higher values make the indicator picky.”)
    atrct = input(defval=2.0, title=”Trapping Trend Bar Close-Open Minimum value (relative to Trapped Trend Bar absolute close-to-open distance). Default is 2. Higher values make the indicator picky.”)
    lenght = input(title=”Rectangle Lenght”, type=input.integer, defval=350)
    //Bullish VEL
    if (open[1] – close[1]) > atrc*atr(10) and close – open > atrct*(open[1] – close[1])
    box.new(left=bar_index[1],top=open[1],right=bar_index+lenght,bottom=lowest(low,1),
    border_color=color.blue,border_width=3,bgcolor=na)
    alert(“Bullish OB”,alert.freq_once_per_bar_close)
    //Bearish VEL
    if (close[1] – open[1]) > atrc*atr(10) and open – close > atrct*(close[1] – open[1])
    box.new(left=bar_index[1],top=highest(high,1),right=bar_index+lenght,bottom=open[1],
    border_color=color.red,border_width=3,bgcolor=na)
    alert(“Bearish OB”,alert.freq_once_per_bar_close)
    #222380

    Eccolo:

     

    #222385

    Grazie e mille !

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