
VARAA:=MA((2*C+H+L)/4,5);
VARB1:=VARAA*1.02;
VARB2:=VARAA*0.98;
VARCC:=ABS((2*C+H+L)/4-MA(C,20))/MA(C,20);
VARDD:=DMA(C,VARCC);
VARB3:=1.07*VARDD;
VARB4:=0.93*VARDD;
VARBB:(VARB3-REF(VARB3,5))/REF(VARB3,5)*1000;
上行:IF(VARBB>=REF(VARBB,1),VARBB,DRAWNULL),LINETHICK2 COLORRED;
下行:IF(VARBB<REF(VARBB,1),VARBB,DRAWNULL),LINETHICK2,COLORGREEN;
0 COLORYELLOW;
BVARB2:=(VARB2-REF(VARB2,5))/REF(VARB2,5)*100;
临界值:REF(VARB2,5)*(REF(BVARB2/100,1)+1),NODRAW;
上穿:=VARB1>VARB3,NODRAW,COLORGREEN;
连升:=COUNT(VARBB>=REF(VARBB,1),2)>=2,NODRAW,COLORGREEN;
量能:=MA(V,10)>=MA(V,55),NODRAW,COLORGREEN;
阳线:=COUNT(C>O,7)>=4,NODRAW,COLORGREEN;
GZ:=上穿 AND 连升 AND 量能 AND 阳线 ;
关注:IF(GZ,150,0),STICK,LINETHICK2,COLORYELLOW;
三天关注:=COUNT(关注=150,3)>=1;
通道二三:=VARB1>VARB3 AND VARB3>=REF(VARB3,1);
最大涨幅:=HHV(C,20)/LLV(C,20)<1.5;
多头排列:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>=REF(MA(C,20),1) AND MA(C,55)>=REF(MA(C,55),1);
JR5:=L<=VARB2*1.006 ;
昨日股价:=REF(MA(CLOSE,5),1)>=REF(MA(CLOSE,5),2) OR REF(CLOSE,1)>=REF(MA(CLOSE,5),1);
JR7:=REF(VARB1,1)>REF(VARB3,1);
JR:=三天关注 AND 通道二三 AND 最大涨幅 AND 多头排列 AND JR5 AND 昨日股价 AND JR7 ;
介入:IF(JR,100,0),STICK,LINETHICK6,COLORMAGENTA;
JR6:=COUNT(C>O AND C>VARB3 AND C=HHV(C,5) AND V=HHV(V,5),4)>=1;
完美介入:IF(JR AND JR6,100,0),STICK,LINETHICK6,COLORRED;