VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
XX:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);
YY:=EMA(0.667*REF(XX,1)+0.333*XX,2);
买:CROSS(XX,YY),COLORRED;
DRAWTEXT(买,CROSS(XX,YY),'买'),COLORRED;
卖:CROSS(YY,XX),COLORGREEN;
MM:=EMA(C,3);
M1:=EMA(C,8);
阴买:CROSS(M1,MM),ColorFFFF00 ;
DRAWTEXT(阴买,CROSS(M1,MM) ,'★阴买'),ColorFFFF00;
DRAWTEXTABS(300 , 40 ,'★阴买属于尾盘买进 ,次日K线收阳持有 ,收阴空仓★' ),ColorYellow ;