- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
Momentum
açık momentum
x:=C;
y:=Ref(x,-50);
ratio:=Min(x,y)/Max(x,y);
Mom:=If(x>y,2-ratio,ratio)*100-100;Mom
ifadesinin kaynağı
www.algoritmabul.com
KAYNAK
BY UUFUK
Kod:
Nw:=HOUR()<>ref(HOUR(),-1);
n1:=9;
nc1:=valuewhen(1,nw,Ref(C,-1));
nc2:=valuewhen(n1+1,nw,Ref(C,-1));
momH:=100*nc1/nc2;
momH:100
Kod:
n:=9;
Nw:=HOUR()<>ref(HOUR(),-1);
c1:=valuewhen(1,Nw,cum(1));
cc:=ValueWhen(1,Nw,Ref(c,-1));
cp:=if(cum(1)<>c1,ref(cc,-1),cc);
ratio:=Min(cp,ValueWhen(n+1,Nw,cp))/Max(cp,ValueWhen(n+1,Nw,cp));
Mom:=If(cp>ValueWhen(n+1,Nw,cp),2-ratio,ratio)*100;
Mom
x:=C;
y:=Ref(x,-50);
ratio:=Min(x,y)/Max(x,y);
Mom:=If(x>y,2-ratio,ratio)*100-100;Mom
ifadesinin kaynağı

Oscillator - Momentum - Normalized by Jose Silva
Normalized Momentum +/-100%, with trigger signals. Momentum - Normalized by Jose Silva { Normalized Momentum v3.1 } { (c)Copyright 2003-2004 Jose Silva } { http://www.metastocktools.com } pds:=Input("Momentum periods",1,2520,10); pdsN:=Input("normalizing...

BY UUFUK