dear traders ![](https://resources.faireconomy.media/images/emojis/64/1f601.png?v=15.1)
i am currently searching the gann hilo indicator for tradestation. i have the mt4 version, i also found the indicator code for an older tradestation version on the net, but it does not work any more.
--> 4 years old code from ts:
Inputs: R(numericseries);
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 ");
If Swing=-1 Then Begin
Plot2(Value1,"+Sell ");
end;
i really would appreciate if someone could help me further.
![](https://resources.faireconomy.media/images/emojis/64/1f601.png?v=15.1)
i am currently searching the gann hilo indicator for tradestation. i have the mt4 version, i also found the indicator code for an older tradestation version on the net, but it does not work any more.
--> 4 years old code from ts:
Inputs: R(numericseries);
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 ");
If Swing=-1 Then Begin
Plot2(Value1,"+Sell ");
end;
i really would appreciate if someone could help me further.