{操盘王}
XA_1:=(EMA((OPEN+HIGH+LOW+CLOSE)/4,3)+EMA((OPEN+HIGH+LOW+CLOSE)/4,6)+EMA((OPEN+HIGH+LOW+CLOSE)/4,9))/4;
XA_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(XA_1>XA_2 AND REF(XA_1,1)<REF(XA_2,1),LOW,28),COLORRED;
A2:DRAWTEXT(XA_1<XA_2 AND REF(XA_1,1)>REF(XA_2,1),HIGH,29),COLORGREEN;
STICKLINE(XA_1<XA_2,LOW,HIGH,0.01,0),COLORCYAN;
STICKLINE(XA_1<XA_2,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(XA_1>XA_2,LOW,HIGH,0.01,0),COLORRED;
STICKLINE(XA_1>XA_2,CLOSE,OPEN,3,0),COLORRED;
p2018314114284085.jpg
|