买线:EMA(C,5),color000999;
卖线:EMA(SLOPE(C,21)*20+C,42),POINTDOT,colorblue,linethick2;
DRAWTEXT(CLOSE>OPEN AND COUNT(CLOSE-OPEN>0,6)<4 AND (HHV(HIGH,5)-LLV(LOW,5))/HHV(HIGH,5)>0.05 AND REF(HIGH,1)<REF(HIGH,2) AND REF(HIGH,2)<REF(HIGH,3) AND REF(HIGH,3)<REF(HIGH,4) AND CLOSE>REF(HIGH,1)*(1+0.1*1/8),LOW,'大关键点:买'),colorred;
VERLINE(CLOSE>OPEN AND COUNT(CLOSE-OPEN>0,6)<4 AND (HHV(HIGH,5)-LLV(LOW,5))/HHV(HIGH,5)>0.05 AND REF(HIGH,1)<REF(HIGH,2) AND REF(HIGH,2)<REF(HIGH,3) AND REF(HIGH,3)<REF(HIGH,4) AND CLOSE>REF(HIGH,1)*(1+0.1*1/8),1),coloryellow;