[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Momentum Trend Indicator



PureBytes Links

Trading Reference Links


Hello,
 
I've found on WEB the following Metastock 
formula:
 
<FONT face="Courier New" 
size=2>If(Mov(C-Ref(C,-5),10,E)>(Mov((Ref(C,-1)-Ref(C,6)),10,E)),1,-1)
 
If I'm not wrong, it could be easily 
converted in AFL:
 
<FONT face="Courier New" 
size=2>If(EMA(C-Ref(C,-5),10)>EMA((Ref(C,-1)-Ref(C,6)),10),1,-1);
 
but what is it for Ref(C,6)? It 
looks into the future, and it's not a typo because the author says its formula 
is for long term trends and suggests to replace Ref(C,6) with Ref(C,-6) for 
short term trends. How does this formula work? How about?
 
Franco