any way to rid of the dots on each bar till condition is met?
https://tos.mx/QsW0bpX
https://tos.mx/QsW0bpX
Code:
#created by calitrader
input bars = 20 ;
input percent =15;
def dayC= close(period=AggregationPeriod.DAY)[1];
def dayO= high(period=AggregationPeriod.DAY);
def c1=dayO/dayC >=1.2;
def c2=if high==highest(high,bars) and high/lowest(close,bars)>=1+percent/100 then yes else no;
def line=if c1 and c2 then high else line[1];
plot signal=line;
signal.SetPaintingStrategy(paintingStrategy = PaintingStrategy.DASHES);