A=ZIG(3,5);
A1=ZIG(2,5);
A2=ZIG(3,5);
//A=IF(A1>=A2,A1,A2);
fxdd=A>REF(A,1) AND REF(A,2)>REF(A,1);
gddz=IF(fxdd,REF(LOW,1),0);
支撑位:IF(gddz=0,REF(LOW,BARSLAST(fxdd)+1),REF(LOW,1));
zcw:IF(支撑位=REF(支撑位,1),支撑位,DRAWNULL);
B=ZIG(3,5);
fxgd=BREF(D,1) AND REF(D,2)>REF(D,1);
gddz1=IF(fxdd1,REF(CLOSE,1),0);
止损位:IF(gddz1=0,REF(CLOSE,BARSLAST(fxdd1)+1),REF(CLOSE,1));
zsw:IF(止损位=REF(止损位,1),止损位,DRAWNULL);
TIPTEXT((A>REF(A,1) AND REF(A,2)>REF(A,1)),LOW,'系统提示,买入价为:'+TOSTRING((HIGH+LOW)/2,2)),colorred;
TIPTEXT(B<REF(B,1) AND REF(B,2)<REF(B,1),HIGH,'系统提示,卖出价为:'+TOSTRING((HIGH+LOW)/2,2)),colorgreen;
收到请及时结贴。合作愉快!