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