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

Here is Variable Length Dynamic Momentum Index



PureBytes Links

Trading Reference Links



To do this, create a user function called ChandeDMI as follows:


Input: DMIPrice(numericseries), DMISDLen(numeric),
DMISDAvg(numeric),DMIMaxLn(numeric),
DMIMinLn(numeric);

Var: Cnt(0), StdA(0), Vi(1), Td(14), SumUp(0), SumDn(0), Diff(0);

StdA = Average(StdDev(DMIPrice,DMISDLen),DMISDAvg);
Vi = StdDev(DMIPrice,DMISDLen);
Td = Round(14/Vi,0);

If Td>DMIMaxLn then Td = DMIMaxLn;
If Td<DMIMinLn then Td = DMIMinLn;

SumUp=0;
SumDn=0;

For Cnt = 1 to Td Begin
 Diff = DMIPrice[Cnt-1] - DMIPrice[Cnt];
 If Diff >= 0 then SumUp=SumUp+Diff else SumDn=SumDn-Diff;
End;

ChandeDMI = iff(BarNumber>DMIMaxLn,100*SumUp/(SumUp+SumDn),50);




Then, create the ChandeDMI indicator from the following code:


Input: DMIPrice(TypicalPrice), DMISDLen(5), DMISDAvg(10),
RSIPrice(TypicalPrice),RSILen(14),
DMIMaxLn(30),DMIMinLn(5), HiDMI(70), LoDMI (30);

Plot1(ChandeDMI(DMIPrice,DMISDLen,DMISDAvg,DMIMaxLn,DMIMinLn), "Chande
DMI");
Plot2(RSI(RSIPrice,RSILen), "RSI");
Plot3(HiDMI,"High Range");
Plot4(LoDMI,"Low Range");




The Omega Man




----- Original Message ----- 
From: EFG Star <ts2000i@xxxxxxxxxxx>
To: <omega-list@xxxxxxxxxx>
Sent: Monday, June 07, 1999 10:51 PM
Subject: Variable Length Dynamic Momentum Index


> I am looking for EasyLanguage Code for
> 
> Variable Length Dynamic Momentum Index
> 
> from "The New Technical Trader" book
> by Tushar S. Chande & Stanley Kroll
> Page 134
> 
> Any Help is greatly appreciated.
> 
> EFG Star
> 
>