PureBytes Links
Trading Reference Links
|
Hello,
I am in the process of rewriting the Gann Hi-Lo indicator using as my
starting point the following formula by Adam Hefner:
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;
The resulting plot is not quite correct because the 3MA high and the 3MA
low plots should overlap on the bar at which the close is greater/less than
the current MA.
The obvious solution is to create two plots GannHi and GannLo to replace
the HiLo plot. However, we would need to specify an If statement without
the ELSE condition.
We can't write If(HLv=-1,Mov(H,3,S),0) because it doesn't plot correctly.
Any suggestions for creating an equivalent of IF without the need to
provide an ELSE parameter?
Many thanks in advance.
Regards,
Kevin
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|