50,COLORFF00FF,LINETHICK2,CROSSDOT;
LC :=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),18,1)/SMA(ABS(CLOSE-LC),18,1)*100;
MMA:MA(3*RSI1-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
MMS:MA(3*RSI2-2*SMA(MAX(CLOSE-LC,0),16,1)/SMA(ABS(CLOSE-LC),16,1)*100,3);
MMM:EMA(MMS,8);
MML:MA(3*RSI3-2*SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100,5);
-20,LINETHICK1,COLORWHITE;
0,LINETHICK1,COLORRED;
100,LINETHICK1,COLORWHITE;
STICKLINE(MMS>MMM,MMS,MMM,2,0)COLORYELLOW;
DRAWICON(CROSS(MMS,MMM),MMS,1);
DRAWICON(CROSS(MMM,MMS),MMS,2);
DRAWTEXT(CROSS(0,MMA) AND MMA<0,-10,'●')COLORBLUE;
DRAWTEXT(CROSS(MMA,0) AND MMA>0,-10,'低买')COLORGREEN;
DRAWTEXT(CROSS(100,MMA) AND MMA<100,100,'◆')COLORBLUE;
DRAWTEXT(CROSS(MMA,100) AND 100<MMA,110,'高卖')COLORYELLOW;
多:IF(MMA>=MMS,MMA,DRAWNULL),COLORMAGENTA,LINETHICK2;