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

RE: Chande's CMO...



PureBytes Links

Trading Reference Links

> I found this , i think its what u r after.

That does work.  This produces the same results with a bit 
simpler code:

value1 = summation(absvalue(Close-Close[1]), Length);
if value1 <> 0 then
  CMO = 100 * summation(Close - Close[1],Length) / value1; 

Or, even easier/faster:

value1 = summation(absvalue(Close-Close[1]), Length);
if value1 <> 0 then
  CMO = 100 * (Close - Close[Length]) / value1; 

Gary