X_1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
X_2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
X_3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
X_4:=ABS(CLOSE-REF(CLOSE,5));
gspt1:=X_1;
gspt2:=X_2;
gspt3:=X_3;
gspt4:=X_4;
gspt5:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
gspt6:=gspt4/gspt5;
gspt7:=gspt6*(0.8-2/8)+2/8;
gspt8:=gspt7*gspt7;
gspt9:=ABS(CLOSE-REF(CLOSE,10));
gspt10:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
gspt11:=gspt9/gspt10;
gspt12:=gspt11*(0.8-2/24)+2/24;
gspt13:=gspt12*gspt12;
STICKLINE(gspt2 < MA(gspt3,6),LOW,HIGH,0,1),COLORLIBLUE;
STICKLINE(gspt2 > MA(gspt3,6),LOW,HIGH,0,1),COLORRED;
STICKLINE(((OPEN>CLOSE)AND(gspt2< MA(gspt3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;
STICKLINE(((OPEN< CLOSE)AND(gspt2< MA(gspt3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;
STICKLINE(((OPEN>CLOSE)AND(gspt2>MA(gspt3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;
STICKLINE(((OPEN< CLOSE)AND(gspt2>MA(gspt3,6))),OPEN,CLOSE,3.05,1),COLORRED;
gspt14:MA(C,250),COLORRED;
gspt15:MA(C,6),COLORLICYAN LINETHICK2;
gspt16:MA(C,18),COLORYELLOW;
gspt17:MA(C,55),COLORFF00FF;
gspt18:MA(C,144),COLORGREEN LINETHICK2;
gspt19:MA(C,288),COLORBLUE;
中线:=COUNT(CLOSE< gspt16,5)=4 AND CLOSE/gspt16>1.004 AND CROSS(CLOSE,gspt16) AND gspt16>=REF(gspt16,1),LINETHICK,COLORRED;
DRAWTEXT(中线,LOW*0.95,' 中线介入'),COLORRED;
gspt21:=REF(LOW,1);
gspt22:=(SMA(ABS(LOW-gspt21),13,1))/(SMA(MAX(LOW-gspt21,0),13,1))*100;
gspt23:=MA(gspt22,13);
gspt24:=LLV(LOW,34);
gspt25:=EMA(IF(LOW<=gspt24,gspt23,0),3);
gspt26:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
gspt27:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-gspt26*10.9;
gspt28:=FILTER(IF(gspt27<=gspt26 AND gspt25>REF(gspt25,1),gspt25*8,0),20);
DRAWTEXT(gspt28,LOW-0.4,'洗盘结束'),COLORFF00FF;
DRAWTEXT(gspt28,LOW-0.2,'|'),COLORFF00FF;
gspt29:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
gspt30:=SMA(gspt29,3,1);
gspt31:=SMA(gspt30,3,1);
gspt32:=SMA(gspt31,3,1);
gspt33:=CROSS(gspt31,gspt32) AND gspt31< 20;
DRAWTEXT(FILTER(gspt33,10)=1,LOW-0.4,'底部'),COLORYELLOW;
DRAWTEXT(FILTER(gspt33,10)=1,LOW-0.2,'|'),COLORYELLOW;
gspt34:=CROSS(gspt32,gspt31........附件里有完整的主图+选股源码