,AL FORMÜLÜ
PD:=10;
K1:=C-O;
K2:=H-L;
K3:=(K1+2*REF(K1,-1)+2*REF(K1,-2)+REF(K1,-3))/6;
K4:=(K2+2*REF(K2,-1)+2*REF(K2,-2)+REF(K2,-3))/6;
MOVA:=SUM(K3,PD);
RANGEA:=SUM(K4,PD);
RVGI:=MOVA/RANGEA;
RVIsignal:=(RVGI+2*REF(RVGI,-1)+2*REF(RVGI,-2)+REF(RVGI,-3))/6;
CROSS(RVGI,RVIsignal);
IND:=RVGI;
K1:=valuewhen(1.,cross(ind,ref(ind,-1)),h);
ind>ref(ind,-1) and c>k1 and SDEV(c,14)>0.5
SAT FORMULÜ
PD:=10;
K1:=C-O;
K2:=H-L;
K3:=(K1+2*REF(K1,-1)+2*REF(K1,-2)+REF(K1,-3))/6;
K4:=(K2+2*REF(K2,-1)+2*REF(K2,-2)+REF(K2,-3))/6;
MOVA:=SUM(K3,PD);
RANGEA:=SUM(K4,PD);
RVGI:=MOVA/RANGEA;
RVIsignal:=(RVGI+2*REF(RVGI,-1)+2*REF(RVGI,-2)+REF(RVGI,-3))/6;
CROSS(RVIsignal,RVGI);
IND:=RVGI;
K1:=valuewhen(1.,cross(ref(ind,-1),ind),l);
ind<ref(ind,-1) and c<k1 and SDEV(c,14)>0.5