操盘王源码
X_1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/4;
X_2:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,5)+EMA((OPEN+HIGH+LOW+CLOSE)/4,10)+EMA((OPEN+HIGH+LOW+CLOSE)/4,20))/4;
A1:DRAWTEXT(X_1>X_2 AND REF(X_1,1)<REF(X_2,1),LOW,28),COLORRED;
A2:DRAWTEXT(X_1<X_2 AND REF(X_1,1)>REF(X_2,1),HIGH,29),COLORGREEN;
STICKLINE(X_1<X_2,LOW,HIGH,0.01,0),COLORCYAN;
STICKLINE(X_1<X_2,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(X_1>X_2,LOW,HIGH,0.01,0),COLORRED;
STICKLINE(X_1>X_2,CLOSE,OPEN,3,0),COLORRED;