//Zigo
//Written in One-Note 26/11/2014 (10:07)
//Published in PRT 8/01/2021
//Calculation the Stop losse Long and Short
c1=(highest[9](high)+lowest[9](low))/2
C2= (highest[26](high)+lowest[26](low))/2
c3=(c1+c2)/2
//Dynamic for Long positionsx
//Dynamic stop for Short positions
stlong=TriangularAverage[5](c3- f*AverageTrueRange[14](close))
stshort=TriangularAverage[5](c3+f*AverageTrueRange[14](close))
Midline = (stlong + stshort)/2
Return stLong coloured(0,255,0) as"StopLong", Midline coloured (100,255,255,175)style (line ) as " MeanLine", Stshort coloured(255,0,0) as "StopShort"