like you see below I'd like to have a signal constant on the indicator.
When the price is above the ball cyan the indicator below must be red always although after it falls below.
Code: Select all
Variable:
PivotL(0), PivotH(0);
Variable:
LeftStrengthH(8),
RightStrengthH(8);
if PivotHighVSBar( 1, H, LeftStrengthH, RightStrengthH, RightStrengthH + 1 ) <> -1
Then Begin
PivotH = High[RightStrengthH];
End;
if H > PivotH
Then begin
Plot1(0,"OFF",red);
end
else begin
Plot1(1,"ON",green);
end;
tradingest