{庄家妖股}
试用:=1;DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'股票指标网'),COLOR555555;{公用代码}假阴线:=O>REF(C,1) AND O>C AND C>REF(H,1);{KDJ代码}RSV:=(C-LLV(L,19))/(HHV(H,19)-LLV(L,19))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;{主力红绿柱体}进攻:=IF(C>REF(C,1),V,0)/100;撤退:=IF(C<REF(C,1),V,0)/100;主力:=EMA(MA(进攻,3),3);散户:=EMA(MA(撤退,3),8);主散比:主力/散户,NODRAW;主散差:=主力-散户;资金:=AMOUNT/((H-L)*2-ABS(C-O)+0.01);资金流入:=IF(C>=O,资金*(H-L+0.01),IF(C<O,资金*((H-O)+(C-L)+0.01),AMOUNT/2))/100000000;资金流出:=IF(C>=O,0-资金*((H-C)+(O-L)),IF(C<O,0-资金*(H-L+0.01),0-AMOUNT/2))/100000000;净流入亿:资金流入+资金流出,NODRAW,COLORFF6699;净流入柱:=净流入亿*5000;STICKLINE(主散差>=0 AND 主散比>=REF(主散比,1),主散差,0,3,0),COLOR0044FF;STICKLINE(主散差>=0 AND 主散比<REF(主散比,1),主散差,0,3,0),COLORLIRED;STICKLINE(主散差>=0 AND 净流入亿>0,主散差+净流入柱,主散差,3,0),COLORFF6699;STICKLINE(主散差>=0 AND 净流入亿<0,主散差-净流入柱,主散差,3,0),COLOR00CCFF;STICKLINE(主散差<0,0,主散差,3,0),COLORLIGREEN;STICKLINE(主散差<0 AND 净流入亿>0,主散差,主散差-净流入柱,3,0),COLORFF6699;STICKLINE(主散差<0 AND 净流入亿<0,主散差,主散差+净流入柱,3,0),COLOR00CCFF;五日流入:SUM(净流入亿,5),COLORGREEN,LINETHICK2;十日流入:=SUM(净流入亿,10),NODRAW,COLORYELLOW;五日流入增:IF(五日流入>=0 OR 五日流入>=REF(五日流入,1),五日流入,DRAWNULL),COLORRED,LINETHICK2;五日流入减:IF(五日流入>=0 AND 五日流入<REF(五日流入,1),五日流入,DRAWNULL),COLORYELLOW,LINETHICK2;五日流出增:IF(五日流入<0 AND 五日流入<REF(五日流入,1),五日流入,DRAWNULL),COLORGREEN,LINETHICK2;五日流出减:IF(五日流入<0 AND 五日流入>=REF(五日流入,1),五日流入,DRAWNULL),COLORYELLOW,LINETHICK2;{多空趋势}VA:=(3*C+H+L)/5;VB:=LLV(L,3);VC:=HHV(H,8);多头:=EMA((VA-VB)/(VC-VB)*100,3);空头:=EMA(多头,3);多空差:=多头-空头;{红绿柱卖点标记}卖点1:=主散比>=2 AND C>=(REF(O,1)+0.618*(REF(C,1)-REF(O,1))) AND 净流入亿>=0 AND 主散差>=REF(主散差,1) AND ((H-C)/ABS(C-O)>2 OR (C=O AND (H-C)>(O-L)));卖点2:=主散比>=2 AND 假阴线=1 AND 净流入亿<0 AND V>REF(V,1);卖点3:=主散比>=1.2 AND C<=REF(C,1) AND 净流入亿<=0 AND J<REF(J,1) AND (主散差+净流入柱)>=REF((主散差+净流入柱),1);卖点4:=主散比>=1.2 AND 净流入亿<=0 AND C<=(REF(O,1)+0.618*(REF(C,1)-REF(O,1)));卖点5:=主散比>=1 AND C<=REF(C,1) AND REF((主散差+净流入柱),1)>0 AND (主散差+净流入柱)/REF((主散差+净流入柱),1)<0.618 AND 净流入亿<=0;卖点6:=主散比<1 AND C<REF(C,1) AND 净流入亿<=0;卖点提示:=试用*(卖点1 OR 卖点2 OR 卖点3 OR 卖点4 OR 卖点5 OR 卖点6);卖点间隔:=BARSLAST(卖点提示);前卖间隔:=SUMBARS(卖点提示,2);{红绿柱买点标记}买点1:=主散比>=1.2 AND (主散差+净流入柱)>=REF((主散差+净流入柱),1) AND C>=(REF(O,1)+0.618*(REF(C,1)-REF(O,1))) AND MA(净流入亿,3)>=0 AND 卖点提示=0;买点2:=主散比>=1.2 AND C>=(REF(O,1)+0.618*(REF(C,1)-REF(O,1))) AND 多空差>=0 AND 卖点提示=0;买点3:=主散比>=1 AND 净流入亿>=0 AND C>REF(C,1) AND 卖点提示=0;买点4:=主散比<1 AND 主散比>=0.6 AND 净流入亿>=0 AND (REF(净流入亿,1)>0 OR C=HHV(C,4)) AND C>=REF(C,1) AND 卖点提示=0;买点5:=主散比<1 AND EVERY(净流入亿>=0,2) AND EVERY(C>O,2) AND C>=REF(C,1) AND 五日流入>0 AND 卖点提示=0;买点提示:=试用*(买点1 OR 买点2 OR 买点3 OR 买点4 OR 买点5);买点间隔:=BARSLAST(买点提示);前买间隔:=SUMBARS(买点提示,2);DRAWICON(买点提示 AND 主散差<0 AND 前买间隔>卖点间隔,MIN(主散差-净流入柱,1),1);DRAWICON(买点提示 AND 主散差>=0 AND 前买间隔>卖点间隔,0,1);DRAWICON(卖点提示 AND 主散差<0 AND 前卖间隔>买点间隔,0,2);DRAWICON(卖点提示 AND 主散差>=0 AND 前卖间隔>买点间隔,主散差-净流入柱,2);