GANN HILOW for tradestation
Posted: Fri Jul 16, 2010 12:51 pm
by italiantrader
Hello, can someone open this eld file and put it in text format so that I can view it. Thanks.
Posted: Sun Jul 25, 2010 10:32 pm
by flinux
Metatrader di per se permette di disegnare GANN e scrivendo un apposito indicatore sarebbe possibile farlo disegnare automaticamente dall'high al low. Non so se qui qualcuno usa ancora tradestation.
Posted: Tue Jul 27, 2010 12:30 am
by Knoxy
Here's my code for Gann Hilo if it helps..
// Indicator Gann HiLo recoded from MT4
// Original is only SMA, this allows different av types
Inputs: Length(20), MAMethod(0);
Variables: Trend(0), HiLo(0), AvHigh(0), AvLow(0);
Trend=Trend[1];
If MAMethod<=0 then begin
AvLow=Average(Low,Length);
AvHigh=Average(High,Length);
end;
If MAMethod=1 then begin
AvLow=XAverage(Low,Length);
AvHigh=XAverage(High,Length);
end;
If MAMethod=2 then begin
AvLow=WAverage(Low,Length);
AvHigh=WAverage(High,Length);
end;
If MAMethod>=3 then begin
AvLow=TriAverage(Low,Length);
AvHigh=TriAverage(High,Length);
end;
if close>AvHigh[1] then Trend=1;
if close<AvLow[1] then Trend=-1;
If Trend=1 then HiLo=AvLow else HiLo=AvHigh;
Plot1(HiLo,"Gann HiLo");
Knoxy
Posted: Wed Jul 28, 2010 8:54 am
by italiantrader
thanks