Greetings ...
I've been tracking the Gann Indicator with great interest. The picture it paints as an indicator has certainly caught my attention. I would lilke to work it into an EA for MQ4 but have not been successful.
So far I've been coding off the indicator but not the results are not reliable. It appears that I need to use the "actual formula".
I have found a possible formula below (and I think a few others) but I do not understand it and the use of it escapes my coding ability. Would very much appreciate some help/guidance to work through this.
For what it's worth I've also attached the indicator.
Thnx ... Pip Parade
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Gann High Low - Metastock Indicator Formula
by Adam Hefner
{name: GANN-HiLo}
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{else}If(CLOSE<Ref(Mov(L,3,S),-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,
{then}Mov(H,3,S),
{else}Mov(L,3,S));
HiLo;
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've been tracking the Gann Indicator with great interest. The picture it paints as an indicator has certainly caught my attention. I would lilke to work it into an EA for MQ4 but have not been successful.
So far I've been coding off the indicator but not the results are not reliable. It appears that I need to use the "actual formula".
I have found a possible formula below (and I think a few others) but I do not understand it and the use of it escapes my coding ability. Would very much appreciate some help/guidance to work through this.
For what it's worth I've also attached the indicator.
Thnx ... Pip Parade
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Gann High Low - Metastock Indicator Formula
by Adam Hefner
{name: GANN-HiLo}
HLd:=If(CLOSE>Ref(Mov(H,3,S),-1),
{then}1,
{else}If(CLOSE<Ref(Mov(L,3,S),-1),
{then}-1,
{else}0));
HLv:=ValueWhen(1,HLd<>0,HLd);
HiLo:=If(HLv=-1,
{then}Mov(H,3,S),
{else}Mov(L,3,S));
HiLo;
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Attached File(s)
Gann_Hi-lo_Activator_SSL.ex4
2 KB
|
640 downloads
Gann_Hi-lo_Activator_SSL.mq4
2 KB
|
756 downloads