Merhaba
0 altında kesişim için
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);
cross(SQMI,signal) and SQMI < 0
İndikatör 0 çizgisini kesince
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);
cross(SQMI,0)
deneyebilirsiniz.
Bilgilerinize.