//@version=5 indicator('Ajab Alhajeri', overlay=true) basePeriods = 26 donchian(len) => math.avg(ta.lowest(len), ta.highest(len)) baseLine = donchian(basePeriods) dataUP = ta.wpr(8) > -10 and baseLine > open and baseLine < close dataDN = ta.wpr(8) < -90 and baseLine > close and baseLine < open plotshape(dataUP, style=shape.triangleup, ...