Worm Script to TV

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226308 quote
    ChristosDG
    Participant
    New

    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… 🙂

    Worm.itf
    #226324 quote
    JS
    Participant
    Senior

    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)
  • You must be logged in to reply to this topic.

Worm Script to TV


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
ChristosDG @christosdg Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
2 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/14/2024
Status: Active
Attachments: 1 files
Logo Logo
Loading...