Type : Indicator, Name : HI LO Activator
Inputs: R(8);
Var: Swing(0);
Value1=Average(H,R);
Value2=Average(L,R);
If C<Value2[1] And C[1]>=Value2[2] then Swing=-1;
If C>Value1[1] And C[1]<=Value1[2] then Swing=1;
If Swing=1 Then Begin
Plot1(Value2,»+Buy «);
Plot2(Value1,»-Buy»);
end;
If Swing=-1 Then Begin
Plot3(Value1,»+Sell «);
Plot4(Value2,»-Sell»);
end;