N:=26;N1:=5;P:=34;
中期牛熊线:=MA(CLOSE,N);
短期牛熊线:=MA(CLOSE,N1);
主力做多力量线:=boll+2*STD(CLOSE,N);
主力做空力量线:=BOLL-2*STD(CLOSE,N);
VAR1:=EMA(EMA(CLOSE,9),9);
控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
控盘;
控盘;
STICKLINE(控盘<0,控盘*4,0,2.3,0),COLORYELLOW;
{- }
黄色危险地带:IF(控盘<0,控盘,0),COLORYELLOW,NODRAW;
STICKLINE(控盘0,控盘*3,0,1,0),COLOR00FF00;
绿色卖出:IF(控盘0,控盘,0 AND CLOSE<短期牛熊线),COLOR00FF00,NODRAW;
主流资金:EMA(100*(C-LLV(LOW,P))/(HHV(H,P)-LLV(LOW,P)),3), COLORBROWN,LINETHICK2;
非主流资金:EMA(100*(INDEXC-LLV(INDEXL,P))/(HHV(INDEXH,P)-LLV(INDEXL,P)),3),COLORGREEN,LINETHICK2;
控盘量A:=WINNER(C*0.9)*100,LINETHICK0;
换手率%A:=vol/CAPITAL*100,LINETHICK0;
走势线:EMA(控盘量A-换手率%A,5)*1.5,LINETHICK1,COLORLIMAGENTA;
换手率%:VOL/CAPITAL*100,LINETHICK0;
最低成本:=COST(0.1);
最高成本:=COST(99.9);
平均成本:=COST(50);
套牢盘:(1-WINNER(C ))*100,LINETHICK0 ;
获利盘:(C-最低成本)/(最高成本-最低成本) *100,LINETHICK0 ;
控盘量:WINNER(C*0.9)*100,LINETHICK0;