B:=SUM(AMOUNT*CLOSE,1)/SUM(AMOUNT,1);
B1:=EMA(B,5);
GSPT5:=(B-B1)*100/B,NODRAW,COLORRED;
GSPT6:=GSPT5!=DRAWNULL;
GSPT7:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
GSPT8:=SMA(GSPT7,4,1);
GSPT9:=SMA(GSPT8,3,1);
异动:CLOSE>=OPEN AND CROSS(GSPT8,GSPT9) AND GSPT9<=50 AND GSPT6,NODRAW,COLORBLUE;
GSPT10:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
GSPT11:=SMA(GSPT10,6,1);
GSPT12:=SMA(GSPT11,3,1);
趋势:GSPT11>GSPT12 AND GSPT12>REF(GSPT12,1) AND GSPT6,NODRAW,COLORRED;
GSPT13:=EMA(CLOSE,17);
资金:GSPT5>0 AND CLOSE>GSPT13 AND GSPT13>REF(GSPT13,1),NODRAW,COLORMAGENTA;
GSPT14:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
GSPT15:=SMA(GSPT14,3,1);
GSPT16:=SMA(GSPT15,3,1);
GSPT17:=3*GSPT15-2*GSPT16;
GSPT18:=GSPT17>=95;
GSPT19:=REF(CLOSE,1);
GSPT20:=SMA(MAX(CLOSE-GSPT19,0),9,1)/SMA(ABS(CLOSE-GSPT19),9,1)*100;
GSPT21:=GSPT20>=75;
GSPT22:=FORCAST(EMA(CLOSE,5),6);
GSPT23:=FORCAST(EMA(CLOSE,8),6);
GSPT24:=FORCAST(EMA(CLOSE,11),6);
GSPT25:=FORCAST(EMA(CLOSE,14),6);
GSPT26:=FORCAST(EMA(CLOSE,17),6);
GSPT27:=GSPT22+GSPT23+GSPT24+GSPT25-4*GSPT26;
GSPT28:=EMA(GSPT27,2);
动能:GSPT28>REF(GSPT28,1),NODRAW,COLORLIRED;
加速:GSPT18 OR GSPT21,NODRAW,COLORLIMAGENTA;
STICKLINE(异动>0,4.8,5.8,1.5,0),COLORBLUE;
STICKLINE(异动=0,4.8,5.8,1.5,1),COLORGRAY;
STICKLINE(资金>0,3.6,4.6,1.5,0),COLORMAGENTA;
STICKLINE(资金=0,3.6,4.6,1.5,1),COLORGRAY;
STICKLINE(动能>0,2.4,3.4,1.5,0),COLORLIRED;
STICKLINE(动能=0,2.4,3.4,1.5,1),COLORGRAY;
STICKLINE(加速>0,1.2,2.2,1.5,0),COLORLIMAGENTA;
STICKLINE(加速=0,1.2,2.2,1.5,1),COLORGRAY;
STICKLINE(趋势>0,0,1,1.5,0),COLORRED;
STICKLINE(趋势=0,0,1,1.5,1),COLORGRAY;
DRAWTEXT(BARSTATUS=2,5.3,' 异动'),COLORBLUE;
DRAWTEXT(BARSTATUS=2,4.1,' 资金'),COLORMAGENTA;
DRAWTEXT(BARSTATUS=2,2.9,' 动能'),COLORLIRED;
DRAWTEXT(BARSTATUS=2,1.7,' 加速'),COLORLIMAGENTA;
DRAWTEXT(BARSTATUS=2,0.5,' 趋势'),COLORRED;