VAR01:=LLV(L,10); VAR02:=HHV(H,25);
趋势线:=EMA((C-VAR01)/(VAR02-VAR01)*4,4);
价:=EMA(MA((((C-REF(C,1))+(H-REF(H,1))+(L-REF(L,1)))/3)/C,5),1);
价5:=MA(价,5);
量:=EMA(MA((V-REF(V,1))/V,5),1);
量5:=MA(量,5);
角:=1>(ATAN((C/REF(C,1)-1)*100)*180/3.14115926)>-1;
W:=(C/REF(C,1))>1.01;
横盘:=REF(((HHV(价,3)-LLV(价,3))/LLV(价,3)),1)<=(0.00/100) AND REF(((HHV(价5,3)-LLV(价5,3))/LLV(价5,3)),1)<=(0.00/100);
量横盘:=REF(((HHV(量,3)-LLV(量,3))/LLV(量,3)),1)<=(0.00/100) AND REF(((HHV(量5,3)-LLV(量5,3))/LLV(量5,3)),1)<=(0.00/100);
量比:=((量+REF(量,1)+REF(量,2))/(量5+REF(量5,1)+REF(量5,2)))>0.5;
A:=COUNT(0.00<=价<=0.02 AND 0.00<=价5<=0.02,crOSS(价,价5))=1 AND W ,COLORYELLOW;
ABB:=COUNT(0.00<=价<=0.02 AND 0.00<=价5<=0.02,横盘 AND 量比 AND 量横盘 AND 角)=1 AND W ,COLORRED;
逃顶高手:=A AND ABB;
P1:=5;
P2:=4;
VARAB:=LLV(LOW,P1);
VARBB:=HHV(HIGH,P1);
KA1:=MA((CLOSE-VARAB)/(VARBB-VARAB)*100,P2),COLORRED;
DA1:=MA(0.667*REF(KA1,1)+0.333*KA1,2),COLORWHITE;
庄家:=KA1;
散户:=DA1;
低吸:=CROSS(庄家,散户) AND 庄家<30;
VAR2D:=(2*CLOSE+HIGH+LOW)/4;
VAR03:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR04:=LLV(LOW,5);
VAR05:=HHV(HIGH,4);
庄家1:= EMA((VAR2D-VAR04)/(VAR05-VAR04)*100,4)*VAR03;
散户1:= EMA(0.667*REF(庄家1,1)+0.333*庄家1,2)*VAR03;
短进1:=CROSS(庄家1,散户1) AND 庄家1<50 AND 29<庄家1;
低吸1:=CROSS(庄家1,散户1) AND 庄家1<30;
买入:=逃顶高手 AND 低吸 AND (短进1 OR 低吸1) AND 趋势线>REF(趋势线,1);
短线买入:买入;