以下是通达信好股好底选股公式源码
VAR1:=EMA((OPEN+HIGH+LOW)/3,55);
VAR2:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6);
VAR3:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6)*4;
VAR4:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6)*8;
VAR5:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6)*16;
VAR6:=IF(HHV(ABS(HHV(CLOSE,6)/LLV(CLOSE,6)-1),6)>10/100,3,6)*48;
VAR7:=REF(CLOSE>OPEN OR CLOSE<OPEN,2) AND CLOSE>MA(CLOSE,5) AND CLOSE/REF(CLOSE,1)>1.01 AND HIGH/CLOSE<1.018;
VAR8:=REF(CLOSE<OPEN,2) OR REF(CLOSE<OPEN,3) AND REF(CLOSE<OPEN OR CLOSE>OPEN,5);
VAR9:=REF(CLOSE/REF(CLOSE,1)<1.02,2) AND REF(CLOSE>OPEN AND CLOSE/REF(CLOSE,1)<1.01,1);
VAR10:=IF(MINUTE=5,VAR6,IF(MINUTE=15,VAR5,IF(MINUTE=30,VAR4,IF(MINUTE=60,VAR3,VAR2))));
VAR11:=IF(VOL=0,MA(CLOSE,VAR10),SUM(AMOUNT,VAR10)/SUM(VOL,VAR10)/100);
VAR12:=REF(CLOSE<OPEN OR CLOSE>OPEN,17) AND REF(HIGH>CLOSE,7) AND REF(CLOSE>OPEN OR CLOSE<OPEN,8) AND REF(CLOSE>OPEN OR CLOSE<OPEN,6);
VAR13:=REF(CLOSE<OPEN OR CLOSE>OPEN,16) AND REF(OPEN/REF(CLOSE,1)<1.05,6) AND CROSS(CLOSE,VAR1) AND REF(HIGH>CLOSE,8);
VAR14:=REF(HIGH>CLOSE,21) AND REF(HIGH>OPEN,13) AND REF(HIGH>OPEN,17) AND REF(HIGH>OPEN,28) AND REF(HIGH>CLOSE,3);
BUYHAOGU:VAR7 AND VAR8 AND VAR9 AND VAR12 AND VAR13 AND CROSS(CLOSE,REF(VAR11,1)) AND VAR14;
评论(0)