| | | | 以下是通达信神奇黑马副图指标
通达信神奇黑马副图指标
源码
VAR1:=INDEXC;
VAR2:=MA(VAR1,6);
VAR3:=MA(VAR1,24);
VAR4:=MA(VAR1,32);
VAR5:=MA(VAR1,62);
VAR6:=MA(VAR1,105);
VAR7:=VAR5
VAR8:=VAR4>VAR2*1.11 AND VAR3>VAR2*1.095;
VAR9:=VAR2>VAR1*0.95;
VARA:=CLOSE/MA(CLOSE,48)*100<67;
VARB:=CLOSE/MA(CLOSE,50)*100<69;
VARC:=HIGH>LOW*1.078;
VARD:=VARC AND COUNT(VARC,4)>2;
黑马:VARD AND (VARA OR VARB) OR VAR7 AND VAR8
AND VAR9 AND CLOSE/COST(8)<=0.8 AND (CLOSE>OPEN OR CLOSE
AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)
A1:=C/REF(C,1)>1.04;
A2:=C/HHV(H,34)<0.7;
A3:=MAX(FORCAST(COST(24)/L,3),SMA(COST(24)/L,3,1))>1.39 ;
A4:=LOW=LLV(LOW,10) OR REF(LOW,1)=LLV(REF(LOW,1),30) OR REF(LOW,2)=LLV(REF(LOW,2),30);
买1:A1 AND A2 AND A3 AND A4;
VAR01:=CLOSE/REF(CLOSE,1)>1.055;
VAR02:=OPEN=LOW AND HIGH=CLOSE;
VAR03:=VOL
{J1:=STRCMP(LOWERSTR(STRLEFT(STKNAME,2)),'ST')=0;
J2:=STRCMP(LOWERSTR(STRLEFT(STKNAME,2)),'PT')=0;
J3:=STRCMP(LOWERSTR(STRLEFT(STKNAME,3)),'*ST')=0;
J4:=STRCMP(LOWERSTR(STRLEFT(STKNAME,3)),'*PT')=0;
JJ:=J1 OR J2 OR J3 OR J4;
去除PTST股:=88*(JJ=0);}
买2:VAR01 AND VAR02 AND VAR03 AND COUNT(VAR01 AND VAR02 AND VAR03,4)=1 {AND 去除PTST股};
| | | | |
|