Signal indicator constant

Questions about MultiCharts and user contributed studies.
tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Signal indicator constant

Postby tradingest » 02 Nov 2016

Hi all,

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.

Image

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;
Thanks,
tradingest
Attachments
h.JPG
(22.94 KiB) Downloaded 499 times

User avatar
Mark Brown
Posts: 182
Joined: 29 Nov 2016
Has thanked: 114 times
Been thanked: 18 times

Re: Signal indicator constant

Postby Mark Brown » 30 Nov 2016

do you want the line plotting forward to stop when it is hit? or do you want the line to continue for x number of bars?

tradingest
Posts: 283
Joined: 05 Dec 2014
Location: Italy
Has thanked: 53 times
Been thanked: 3 times

Re: Signal indicator constant

Postby tradingest » 01 Dec 2016

do you want the line plotting forward to stop when it is hit? or do you want the line to continue for x number of bars?
Only when the price touch the first time


Return to “MultiCharts”