买:EMA(C,5),COLORCYAN;
A:=(REF(买,1));
IF(A>买,买,DRAWNULL),LINETHICK2;
IF(A<=买,A,DRAWNULL);
{STICKLINE((买>A),A,买,4,0),COLORRED;
STICKLINE((买<=A),A,买,4,0),COLORBLUE;}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE( C/REF(C,1)>1.049 AND BETWEEN((H-C)/(C-O),0,1), C ,(O+C)/2,1.5,0),COLORLIGRAY;
STICKLINE(REF(macd.MacD,1)<0 AND C/REF(C,1)>1.049 AND BETWEEN((H-C)/(C-O),0,1), C ,(O+C)/2,2,0),COLORYELLOW;
阻力: REF( HHV((HIGH+LOW+OPEN+2*CLOSE)/5+H-L,7),1),COLORLIBLUE,DOTLINE;