N:=9;M1:=3;M2:=3;
VarA:=LLV(LOW,35);
VarB:=HHV(HIGH,30);
VarC:=EMA((CLOSE-VarA)/(VarB-VarA)*4,4)*25;
底背:STICKLINE(VarC<10 AND 100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))>97,0,102,5,0),stick,linethick1,Color990099;
股价:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),colorwhite;
底区:10.5,COLORYELLOW;
买警戒:IF(股价<=10,50,0),stick,linethick1,Color000088;
准备:IF(CROSS(股价,底区),100,0),stick,linethick2,Color990099;
买入:IF(CROSS(股价,底区),100,0),stick,linethick2,colorred;
顶区:90,COLOR00FF00;
DRAWTEXTABS(5,5,'爱约股 '),linethick1,COLOR00EEff;
卖警戒:IF(股价>=90,50,0),stick,linethick1,COLOR008364;
卖出:IF(CROSS(股价,顶区),50,0),stick,linethick2,color00ff00;
散户线:100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK1,colorCCCC00;
RSV30:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K30:=SMA(RSV30,5,1);
D30:=SMA(K30,3,1);
J30:=3*K30-2*D30;
主力线:EMA(J30,2),COLORRED,LINETHICK1;
rsv21:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),2,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,32);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,30),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/1999*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
庄家吸筹:VAR9,LINETHICK2,COLORFF00FF;
买入时间: IF(CROSS(股价,2),100,0),COLOR0099ff,LINETHICK2;
s1:=LLV(LOW,10);
s2:=HHV(H,25);
价位线:=EMA((C-s1)/(s2-s1)*4,4);
DRAWTEXT(CROSS(价位线,0.3),20+4,'买'),color00aaff,ALIGN2;
DRAWTEXT(CROSS(3.5,价位线),100-4,'卖'),COLORffcc66,ALIGN2;
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(2*CLOSE+HIGH+LOW)/4;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VAA:=IF(VA9>100,VA9-100,0);
VAB:=HHV(HIGH,34);
AA:= VAA*2;
BB:= EMA((VA6-VA8)/(VAB-VA8)*100,13);
VAC:=EMA(0.667*REF(BB,1)+0.333*BB,2);
CC:= SMA(VA5,20,1);