引用:
原帖由
@雨中散步65
于 2018-1-14 07:37 发表
孤山鹤舞 老师,能把这个指标和谐下吗?
XA_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
XA_2:=ABS(CLOSE/OPEN-1)*100>6;
XA_3:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01,1,0);
STICKLINE(XA_3,0,0.6,2,0),COLORYELLOW;
DRAWTEXT(XA_3,0.5,3),COLORRED;
XA_4:=MA(CLOSE,5);
XA_5:=MA(CLOSE,10);
XA_6:=MA(CLOSE,13);
XA_7:=MA(CLOSE,21);
XA_8:=MA(CLOSE,34);
XA_9:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_10:=EMA(XA_9,9);
XA_11:=2*(XA_9-XA_10);
XA_12:=BARSLAST(REF(CLOSE,1)*1.1-CLOSE<0.01 AND XA_2);
XA_13:=BARSLAST(HIGH=HHV(HIGH,XA_12))<23 AND XA_12<34;
XA_14:=(LOW-XA_7)/XA_7*100;
XA_15:=(LOW-XA_8)/XA_8*100;
XA_16:=VOL=LLV(VOL,XA_12);
XA_17:=LOW=LLV(LOW,XA_12);
XA_18:=VOL<REF(VOL,1) AND VOL<MA(VOL,5);
XA_19:=BARSLAST(CROSS(XA_5,XA_4))<XA_12;
XA_20:=XA_5<REF(XA_5,1) AND REF(XA_5,1)<REF(XA_5,2);
XA_21:=REF(HIGH,2)>REF(HIGH,1) AND REF(LOW,2)>REF(LOW,1) AND HIGH>REF(HIGH,1) AND LOW>REF(LOW,1);
XA_22:=REF(HIGH,2)>REF(HIGH,1) AND REF(LOW,2)<REF(LOW,1) AND REF(HIGH,3)>REF(HIGH,2) AND REF(LOW,3)>REF(LOW,2) AND HIGH>REF(HIGH,2) AND LOW>REF(LOW,2);
回马:XA_13 AND (XA_21 OR XA_22) AND XA_19 AND XA_20 AND XA_4>XA_8 AND XA_1>0,COLORRED;