04-26-2009, 02:29 PM
|
#2 |
Join Date: Feb 2007 Location: US Thanks: 86
Thanked 206 Times in 89 Posts
| Re: GanHiLo Looks like you got it from this thread: Gann Hi/Lo Activator for Tradestation - Forex Factory
from Piter, but inexplicably it is source protected, therefore MC can't open it and TS can use it but can't edit the source.
However, this is just a simple hi-lo activator, plotting the 10 period moving average of the highs and lows, depending on condition of the swing, where swing equals to whether the price is above (+1) or below (-1) the 10 period average of the hi or lo, respectively. Code: { HiLo Activator
by Mark K sadhu@myacc.net }
Inputs: Len(10),Price(C);
Var: Swing(0);
Value1 = AverageFC(H,Len);
Value2 = AverageFC(L,Len);
if Price < Value2[1] then Swing = -1;
if Price > Value1[1] then Swing = 1;
if Swing = 1 then
Plot1(Value2,"+B");
if Swing = -1 then
Plot3(Value1,"+S");
{optionally add
Plot2(Value1,"-B");
Plot4(Value2,"-S");} |
| |