- Katılım
- 23 Eki 2020
- Mesajlar
- 1,823
Chande's Momentum Oscillator CMO
Kod:
n:=Input("CmoH periods",1,252,14); Nw:=HOUR()<>ref(HOUR(),-1);
c1:=valuewhen(1,nw,ref(c,-1)); c2:=valuewhen(2,nw,ref(c,-1));
po:=if(nw and (c1-c2)>0,c1-c2,0); neg:=if(nw and (c1-c2)<0,c2-c1,0);
np:=cum(po)-valuewhen(n+1,nw,cum(po)); nn:=cum(neg)-valuewhen(n+1,nw,cum(neg));
100*(np-nn)/(np+nn):-50:50

Oscillator - Chande's Momentum Oscillator
Chande's Momentum Oscillator rev. 01/06/97 The following are MetaStock formulas for Tuschar Chande's Momentum Oscillator. For interpretation refer to the book The New Technical Trader, by Tuschar Chande and Stanley Kroll. CMO_1 Sum( If( C ,> ,Ref( C, -1 ) , ( C - Ref( C,-1) ) ,0 ) ,14 )...

BY UUFUK