猎豹出击量能
{豹子成交量能饱和指标}
虚拟VOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,AMOUNT*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚拟VOL,0,-1,-1){,NODRAW},COLORWHITE;
加速:=IF(100*WINNER(CLOSE*0.95)>50 AND COST(85)<CLOSE AND
(EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*1000>0,
(EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*1000,0),COLORFF00FF,NODRAW;
成交量:AMOUNT,VOLSTICK;
换手:VOL/CAPITAL*100,NODRAW;
{换手率:AMOUNT/CAPITAL*100,,NODRAW;
十日换手:SUM(V/CAPITAL*100,10),COLORLICYAN,NODRAW;}
量能饱和:(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORLIMAGENTA,NODRAW;
VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2));
主动卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2));
主买:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),AMOUNT/2))/10000,COLORRED,POINTDOT;
主卖:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),AMOUNT/2))/10000,COLOR00FF00,POINTDOT;
买卖盘比:-(主动买盘/主动卖盘),COLORWHITE;
STICKLINE(主动买盘>0,0,主动买盘,2.2,0),COLORRED;
STICKLINE(量能饱和=100{ AND C>O},主动买盘,0,4,0),COLORMAGENTA;
STICKLINE(主动卖盘>0,VOL,主动买盘,2.2,0),COLOR007900;
{STICKLINE(换手>0,0,主动买盘,0,0),COLORYELLOW;
STICKLINE(换手>0,VOL,主动买盘,0,0),COLORRED;}
MA(AMOUNT,5),COLORMAGENTA, LINETHICK1;
MA(AMOUNT,40),COLORWHITE, LINETHICK1;
MA(AMOUNT,135),COLORYELLOW, LINETHICK2;
{DRAWTEXT((AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100=100,AMOUNT*0.9,'8'),COLORMAGENTA;
DRAWTEXT((AMOUNT-主动买盘)/AMOUNT<0.10,AMOUNT*1.00,'*'),COLORRED;}
{DRAWTEXT((AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100=100{ AND
(VOL-主动买盘)/VOL<0.55 }{AND C<O,VOL*1.35,'逃'),COLORYELLOW;}
DRAWICON(CROSS(AMOUNT,MA(AMOUNT,5))
AND MA(AMOUNT,5)>MA(AMOUNT,135) AND C>REF(C,1)
AND REF(AMOUNT,1)<MA(AMOUNT,40),MA(AMOUNT,40),1);
|