等级: 新手上路
- 注册:
- 2021-12-15
- 曾用名:
|
INPUT:Z1(5,1,99,1),Z2(10,1,99,1),Z3(34,1,99,1),Z4(170,1,999,1);
DIF:=(EMA(CLOSE,10)-EMA(CLOSE,22));
DEA:=EMA(DIF,8);
{MA1:=IF(OT>0,(REF(SUM(C,Z1-1),1)+CC)/5,MA(C,Z1));
MA2:=IF(OT>0,(REF(SUM(C,Z2-1),1)+CC)/10,MA(C,Z2));
MA3:=IF(OT>0,(REF(SUM(C,Z3-1),1)+CC)/34,MA(C,Z3));
MA4:=IF(OT>0,(REF(SUM(C,169),1)+CC)/170,MA(C,Z4));}
MA1:=MA(C,Z1);
MA2:=MA(C,Z2);
MA3:=MA(C,Z3);
MA4:=MA(C,Z4);
JC:=CROSS(MA1,MA2);
SC:=CROSS(MA2,MA1);
JCT:=BARSLAST(JC);
SCT:=BARSLAST(SC);
JXFX:=IF(JC=1,-1,IF(SC=1,1,0));
GT:=HHVBARS(H,JCT+1);
DT:=LLVBARS(L,SCT+1);
JXFXT:=IF(SC,GT+1,IF(JC,DT+1,0));
HXTJ1:=BACKSET(SC,JXFXT);
HXTJ2:=CROSS(HXTJ1,0.5);
HXTJ3:=BACKSET(JC,JXFXT);
HXTJ4:=CROSS(HXTJ3,0.5);
JXD:=IF(HXTJ2,1,IF(HXTJ4,-1,0));
JXDHT:=BARSLAST(JXD=1);
JXDLT:=BARSLAST(JXD=-1);
JXGG:=REF(HHV(H,JCT-SCT+1),SCT);
JXDD:=REF(LLV(L,SCT-JCT+1),JCT);
XSD:JXDLT<JXDHT;
————周选股公式如上,麻烦老师帮我检查或测试下,谢谢。 |
|