Matriks IQ için;
al için;
periods:=opt1;
a:= opt2;
BBfactor:=1.5;
KCfactor:=1.5;
BBperiod:=20;
KCperiod:=20;
signalperiod:=5;
bb:=bband(c,BBperiod,s,BBfactor);
bbdw:=bbandbot(c,BBperiod,s,BBfactor);
bbup:=bbandtop(c,BBperiod,s,BBfactor);
KCma:=mov(c,KCperiod,s);
range:=H-L;
rangema:=mov(range,KCperiod,s);
upperKC:=KCma+rangema*KCfactor;
lowerKC:=KCma-rangema*KCfactor;
SQMI:=LINEARREG(C-((HHV(H,KCperiod)+LLV(L,KCperiod))/2+KCma)/2,KCperiod);
signal:=mov(SQMI,signalperiod,s);
e1:= Mov((H+L+2*C)/4,periods,E);
e2:= Mov(e1,periods,E);
e3:= Mov(e2,periods,E);
e4:= Mov(e3,periods,E);
e5:= Mov(e4,periods,E);
e6:= Mov(e5,periods,E);
c1:= -a*a*a;
c2:= 3*a*a+3*a*a*a;
c3:= -6*a*a-3*a-3*a*a*a;
c4:= 1+3*a+a*a*a+3*a*a;
T3:= c1*e6+c2*e5+c3*e4+c4*e3;
T3>REF(T3,-1) AND REF(T3,-1)<REF(T3,-2) AND cross(SQMI,signal)
sat için;
periods:=opt3;
a:= opt4;
e1:= Mov((H+L+2*C)/4,periods,E);
e2:= Mov(e1,periods,E);
e3:= Mov(e2,periods,E);
e4:= Mov(e3,periods,E);
e5:= Mov(e4,periods,E);
e6:= Mov(e5,periods,E);
c1:= -a*a*a;
c2:= 3*a*a+3*a*a*a;
c3:= -6*a*a-3*a-3*a*a*a;
c4:= 1+3*a+a*a*a+3*a*a;
T3:= c1*e6+c2*e5+c3*e4+c4*e3;
T3<REF(T3,-1) AND REF(T3,-1)>REF(T3,-2)
için nasıl yazılır