Worm Script to TV

  • This topic has 1 reply, 2 voices, and was last updated 3 months ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #226308

    Hello everyone,

     

     

    I guess this isn’t really the place, so please excuse me for asking, as I didn’t find any other.

     

    Would you be so kind as to convert my “Worm” PRT Script to TradingView?

     

     

    // Starting point of the +/- ATR calculation

    Pips = 0.5

    // Script

    monATR = AverageTrueRange[14](close)
    monATR2 = (AverageTrueRange[14](close)) * 2

    up1 = Low[1]-Pips*pipsize+monatr
    up2 = Low-Pips*pipsize+monatr
    up3 = Low[1]-Pips*pipsize+monatr2
    up4 = Low-Pips*pipsize+monatr2

    dn1 = High[1]+Pips*pipsize-monatr
    dn2 = High+Pips*pipsize-monatr
    dn3 = High[1]+Pips*pipsize-monatr2
    dn4 = High+Pips*pipsize-monatr2

    RETURN up1 COLOURED(“blue”) STYLE (point,3) AS “DOT UP V”,up2 COLOURED(“red”) STYLE (point,3) AS “DOT UP BO”,up3 COLOURED(“blue”) STYLE (dottedline3,1) AS “BE UP V”,up4 COLOURED(“red”)STYLE (dottedline3,1) AS “BE UP BO”,dn1 COLOURED(“blue”) STYLE (point,3) AS “DOT DOWN V”,dn2 COLOURED(“red”) STYLE (point,3) AS “DOT DOWN BO”,dn3 COLOURED(“blue”)STYLE (dottedline3,1) AS “BE DOWN V”,dn4 COLOURED(“red”)STYLE (dottedline3,1) AS “BE DOWN BO”

     

     

    Many many thanks… 🙂

    #226324
    JS

    Hi Christos,

    The only conversion supported on this forum is from another code (e.g. Pine Script) to PRT code, but not the other way around…

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

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