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);
gspt10:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
gspt11:=SMA(gspt10,6,1);
gspt12:=SMA(gspt11,3,1);
gspt13:=EMA(CLOSE,17);
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);
趋势:gspt11>gspt12 AND gspt12>REF(gspt12,1) AND gspt6,NODRAW,COLORYELLOW;
动能:gspt28>REF(gspt28,1),NODRAW,COLORRED;
加速:gspt18 OR gspt21,NODRAW,COLORLIMAGENTA;
资金:gspt5>0 AND CLOSE>gspt13 AND gspt13>REF(gspt13,1),NODRAW,COLOR0080FF;
异动:CLOSE>=OPEN AND crOSS(gspt8,gspt9) AND gspt9<=50 AND gspt6,NODRAW,COLORFF0080;
STICKLINE(趋势>0,4.8,5.8,1.5,0),COLORYELLOW;
STICKLINE(趋势=0,4.8,5.8,1.5,1),COLORGRAY;
STICKLINE(动能>0,3.6,4.6,1.5,0),COLORRED;
STICKLINE(动能=0,3.6,4.6,1.5,1),COLORGRAY;
STICKLINE(加速>0,2.4,3.4,1.5,0),COLORLIMAGENTA;
STICKLINE(加速=0,2.4,3.4,1.5,1),COLORGRAY;
STICKLINE(资金>0,1.2,2.2,1.5,0),COLOR0080FF;
STICKLINE(资金=0,1.2,2.2,1.5,1),COLORGRAY;
STICKLINE(异动>0,0,1,1.5,0),COLORFF0080;
STICKLINE(异动=0,0,1,1.5,1),COLORGRAY;
DRAwrECTREL(60,1000,0,0,RGB(10,0,0)),COLORBLACK;{UNDEFINED活动框};
DRAWTEXT_FIX(1,0.00,0.02,0,'趋势'),COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.25,0,'动能'),COLORRED;
DRAWTEXT_FIX(1,0.00,0.45,0,'加速'),COLORLIMAGENTA;
DRAWTEXT_FIX(1,0.00,0.65,0,'资金'),COLOR0080FF;
DRAWTEXT_FIX(1,0.00,0.85,0,'异动'),COLORFF0080;