以下是通达信傻买傻卖——仿涨停板选股战法(无源码的请下载附件导入)
T:=IF((BARSCOUNT(C) > 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);
N:=IF((T > 0.35),6,65);
W:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));
HH:=CONST(HHV(H,N));
LL:=CONST(LLV(L,N));
MP:=CONST(HH/2+LL/2);
CCP:=CONST(C);
YYY:=CONST(IF(CCP>=MP,LL-(HH-LL)*0.2,HH+(HH-LL)*0.2));
V11:=(C+H+L)/3;
MA33:=MA(V11,2);
MA55:=MA(V11,5);
N18:=BARSLAST(CROSS(MA33,MA55));
N28:=BARSLAST(CROSS(MA55,MA33));
N88:=IF(N18<N28,N18+1,0-N28-1);
涨停:CROSS(W,-5) AND N88<0 AND REF(N88,1)>0;
176511301.jpg
|