通达信公式小情人
小情人:C/REF(C,1) =1.095 AND C=H AND L REF(H,1)*1.001,NODRAW;
小情人天:BARSLAST(小情人)+1,NODRAW;
五十金叉天:BARSLAST(CROSS(MA(C,5),MA(C,10)))+1,NODRAW;
十廿金叉天:=BARSLAST(CROSS(MA(C,10),MA(C,20)))+1;
五日上涨天:BARSLAST(MA(C,5) REF(MA(C,5),1) AND REF(MA(C,5),1) REF(MA(C,5),2))+1,NODRAW;
十日上涨天:BARSLAST(MA(C,10) REF(MA(C,10),1) AND REF(MA(C,10),1) REF(MA(C,10),2))+1,NODRAW;
涨停跌幅:(HHV(H,小情人天)/L-1)*100,NODRAW;
跳空低开:=O REF(C,1) AND REF(C,1) REF(C,2);
止跌上升:=C REF(C,1) AND REF(C,1) REF(C,2);
关爱你:BETWEEN(小情人天,3,8) AND BETWEEN(涨停跌幅,15,45) AND MIN(C,O) MA(C,5) AND MA(C,5)/MA(C,10) =1.1;
均线条件1:=MA(C,5) MA(C,20) AND MA(C,10) MA(C,20) AND (MA(C,10) =REF(MA(C,10),1) OR MA(C,20) =REF(MA(C,20),1)) AND BETWEEN(十廿金叉天,1,6);
均线条件2:=MA(C,20) MA(C,10) AND MA(C,5) MA(C,10) AND MA(C,5) =REF(MA(C,5),1) AND BETWEEN(五十金叉天,1,6);
均线条件3:=MA(C,20) MA(C,10) AND MA(C,10) MA(C,5) AND ((MA(C,5)-MA(C,10)) REF(MA(C,5)-MA(C,10),1)) AND MA(C,10)/MA(C,5) 1.01;
均线条件:=均线条件1 OR 均线条件2 OR 均线条件3;
苛护你:IF(BETWEEN(BARSLAST(关爱你)+1,1,4) AND 跳空低开 AND (H-L)/ABS(C-O) 4,2,0);
抱一抱:IF(REF(苛护你,1) AND 止跌上升,3,0);
亲一亲:IF(BETWEEN(BARSLAST(苛护你)+1,1,4) AND 止跌上升 AND 均线条件,4,0);