波动突破交易系统源码如下:
A2:=BARSLAST(A1)+1;
A3:=REF(IF(A2=1,1,A2),A2);
A4:=CONST(REF(HHV(H,A3),A2));
A5:=CONST(REF(LLV(L,A3),A2));
昨高:IF(A<=CONST(A3+A2),A4,DRAWNULL);
昨低:IF(A<=CONST(A3+A2),A5,DRAWNULL);
VL:昨高-昨低;
买入:O+0.7*VL;
止损:买入-0.5*VL;
开空:O-0.7*VL;
止空:开空+0.5*VL; |