以下是通达信多方炮公式源码附图详说(无源码的请下载附件导入)
A1:=REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN;{三日均线描述}
A2:=REF(C,2)/REF(O,2)>1.03;{前天的涨幅大于3%}
A3:=REF(H,1)/REF(L,1)>1.03;{昨振幅大于3%}
A4:=C/REF(C,1)>1.03;{今天涨幅大于3%}
A5:=REF(C,1)/REF(C,2)<1.01 AND REF(O,1)/REF(C,2)<1.01;{昨天阴线开盘及收盘价均在前日收盘价1.01以内}
A6:=REF(C,1)>REF(O,2);{昨天阴线收盘要大于前日开盘价}
A7:=C>REF(O,1);{今日收盘价大于昨日的开盘价}
多方炮:A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;
7733201.jpg
|