{红柱绿柱底必买 顶底分界能量线}
VOLUME:=VOL;
VOL1:=LLV(VOLUME,100);
VOL2:=HHV(VOLUME,250);
T:=SUMBARS(DATE REF(DATE,1),5);
VV:=SUM(V,T)/(5*240);
XX:=REF(VV,BARSLAST(DATE REF(DATE,1))+1);
SS:=IF(CONST(DATE)=DATE,FROMOPEN,240);
量比:=SUM(V,BARSLAST(DATE REF(DATE,1))+1)/(XX*SS);
GU1:=LLV(LOW,100);
GU2:=HHV(HIGH,250);
操盘线: EMA((CLOSE-GU1)/(GU2-GU1)*4,4),LINETHICK2,COLORWHITE;
底部:0.3,LINETHICK2,COLOR0000FF;
顶部:3.5,LINETHICK2,COLORFF00FF;
分界:2,COLOR00FFFF;
DRAWTEXT(CROSS(操盘线,底部),0.00,'必买'), COLORYELLOW, ;
DRAWTEXT(CROSS(操盘线,顶部),3.8,'清仓'), COLORYELLOW, ;
能量线: EMA((REF(VOLUME,1)*量比-VOL1)/(VOL2-VOL1)*4,4),COLORCYAN;
GUA1:=FILTER(LOW=LLV(LOW,13),8);
GUA2:=IF(LLV(LOW,3)=LLV(LOW,13) AND CLOSE REF((HIGH+LOW)/2,1),MAX(REF(LLV(LOW,12),BARSLAST(GUA1)+1)-LOW,0),0);
GUA3:=EMA(GUA2,3)*3;
GUA4:=SUMBARS(GUA3 0,21);
GUA5:=SUM(GUA3,GUA4)/21;
GUA6:=REF(GUA3,1)=HHV(GUA3,3) AND REF(GUA3,1) GUA5*3 AND COUNT(CLOSE/REF(CLOSE,1) 0.9025,8)=0 AND LLV(LOW,3)/HHV(HIGH,18) 0.88;
反转:FILTER(GUA6 ,5),COLORBLACK;
STICKLINE(反转,0,GUA3/2,3,0),COLORRED;
GU01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
GU02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
GU03:=CROSS(GU02,GU01);
GU04:=REF(GU02,2) REF(GU02,1) AND GU02 REF(GU02,1);
GU05:=COUNT(GU03,7) 0 AND GU04;
STICKLINE(GU05 AND COUNT(GU05,5)=1,0,2,1,0),COLORGREEN;