Type : Indicator, Name : LBR_IntraHLChannel
inputs: HighLowLen(5);
vars: x(0), HHigh(0), LLow(0);
if DataCompression <= 1 and Currentbar > 1 then begin
for x = 0 to HighLowLen — 1 begin
if x = 0 then begin
HHigh = HighD(0);
LLow = LowD(0);
end;
if x > 0 then begin
value1 = HighD(x);
value2 = LowD(x);
if value1 > HHigh then
HHigh = value1;
if value2 < LLow AND Value2 > 0 then
LLow = value2;
end;
end;
Plot1(HHigh, «Highest High»);
Plot2(LLow, «Lowest Low»);
end;
if DataCompression > 1 and Currentbar > 1 then begin
Plot1(Highest(High,HighLowLen), «Highest High»);
Plot2(Lowest(Low,HighLowLen), «Lowest Low»);
end;