SOLVED...
= B.F. - Range Bar Indicator (Points) =
rsize:=Input("Range Size (points)",0,1000000000,0);
If(Cum(If(C>0,1,0))=1, (H+L)/2 ,If( Abs(C-PREV)>=rsize, If(C>PREV, PREV+rsize, PREV-rsize), PREV));
= B.F. - Range Bar Indicator (%) =
rsize:=Input("% Range Size (em no)",0,1000000000,0);
If(Cum(If(C>0,1,0))=1, (H+L)/2 ,If( Abs((C/If(PREV=0,.00001,PREV))-1)>=rsize/100, If(C>PREV, PREV*(1+rsize/100), PREV*(1-rsize/100)), PREV));
= B.F. - Range Bar Indicator =
kind:=Input("Kind: 1.Points, 2.%", 1,2,1);
rsize:=Input("% Range Size (em no)",0,100,0);
rsizep:=Input("% Range Size (em no)",0,100,0);
indpt:=If(Cum(If(C>0,1,0))=1, (H+L)/2 ,If( Abs(C-PREV)>=rsize, If(C>PREV, PREV+rsize, PREV-rsize), PREV));
indpct:=If(Cum(If(C>0,1,0))=1, (H+L)/2 ,If( Abs((C/If(PREV=0,.00001,PREV))-1)>=rsizep/100, If(C>PREV, PREV*(1+rsizep/100), PREV*(1-rsizep/100)), PREV));
If(kind=1, indpt, indpct);
Nice to find congestions...