红黑三兵日内交易模型源码


一、模型算法

红三兵,买入开仓

黑三兵,卖出开仓

二、模型源码

REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,2)>REF(CLOSE,3) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,3)>REF(OPEN,3),BK;

REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,3)<REF(OPEN,3),SK;

TIME=1455,SP;

TIME=1455,BP;

AUTOFILTER;

三、模型效果