以下是通达信回马枪+买入公式源码附图(无源码的请下载附件导入)
X_1:=BARSLAST((CLOSE/REF(CLOSE,1)-1)*100>9.5);
X_2:=IF(REF(LOW,X_1)>REF(HIGH,X_1+1),REF(CLOSE,X_1+1),REF(OPEN,X_1));
X_3:=BETWEEN(X_1,2,13);
X_4:=MA(CLOSE,5)>=X_2 AND CLOSE>X_2 AND CLOSE>=MA(CLOSE,5) AND REF(CLOSE,1)<=REF(MA(CLOSE,5),1) AND LLV(LOW,X_1)<X_2*1.045;
买入:REF(X_3,1)>0 AND X_4;
814266203.jpg
|