//换手:(VOL/CAPITAL)*100;
量比:LIANGBI;
换手:HUANSHOU;
量换比:量比/换手;
//条件2 收盘价大于开盘价and 昨日最低<前天最低
//换手:(VOL/CAPITAL)*100;
量比:LIANGBI;
换手:HUANSHOU;
量换比:量比/换手;
//条件2 收盘价大于开盘价and 昨日最低<前天最低
//tj2:CLOSE>OPEN;
//tj3:REF(LOW,1)<REF(LOW,2);
//条件3 收盘价>=五日均线
MA5:=MA(CLOSE,5);
CLOSE>=MA5;
//条件4 macd金交叉
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
Zero : 0;
//条件5 热点板块
//DRAWTEXT(量换比>=N AND CLOSE>OPEN AND REF(LOW,1)<REF(LOW,2) AND CLOSE>=MA5 AND CROSS(DIFF,DEA),DEA,'买点'),colorred;
DRAWTEXT(量换比>=N AND CLOSE>OPEN AND REF(LOW,1)<REF(LOW,2) AND CLOSE>=MA5 AND DIFF>DEA,DEA,'←买1'),colorred;
DRAWTEXT(量比>2AND 换手<15 AND CLOSE>OPEN AND REF(LOW,1)<REF(LOW,2) AND CLOSE>=MA5 AND DIFF>DEA,DEA,'←买2'),colorred;