通达信筹码涨停主力成本幅图指标公式源码:
N:=30;
N1:=20;
庄家:=SUMBARS(V,CAPITAL*1);
亿:=1;
龙年大运:=REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)=REF(HHV(H,N),1) AND BARSCOUNT(C)>N;
五十成本集中:=(COST(75)-COST(25))/(COST(75)+COST(25))*100;
成本价1:=COST(五十成本集中),COLORGREEN;
五十成本集中1:=100-五十成本集中;
成本价2:=COST(五十成本集中1),COLORBLUE;
主力成本:成本价2/成本价1-1 ,STICK;
红:=REF(主力成本,1)REF(成本价2,1) ;
绿:=REF(主力成本,1)>主力成本;
主力筹码:=主力成本
超跌区域:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
超跌区域成本价:=COST(超跌区域),COLORYELLOW;
顶部:=100-超跌区域;
顶部成本价:=COST(顶部),COLORGREEN;
均值:=(超跌区域+顶部)/2;
均值成本:=COST(均值),COLORLICYAN,DOTLINE;
定庄量1:=SUM(COST(10),庄家)/庄家;
定庄量2:=SUM(COST(20),庄家)/庄家;
定庄量3:=SUM(COST(30),庄家)/庄家;
定庄量4:=SUM(COST(40),庄家)/庄家;
定庄量5:=SUM(COST(50),庄家)/庄家;
STICKLINE(红,主力成本,0,2.8,0),COLOR000055;
STICKLINE(红,主力成本,0,2,0),COLOR000088;
STICKLINE(红,主力成本,0,1.5,0),COLOR0000AA;
STICKLINE(红,主力成本,0,1,0),COLOR0000CC;
STICKLINE(红,主力成本,0,0.5,0),COLOR0000EE;
STICKLINE(红,主力成本,0,0,0),COLORFFFFFF;
底:=REF(主力成本,2)
STICKLINE(底,主力成本,0,0,0),COLORGREEN;
STICKLINE(底,主力成本,0,2.8,0),COLOR009900;
STICKLINE(底,主力成本,0,2,0),COLOR00BB00;
STICKLINE(底,主力成本,0,1.5,0),COLOR00DD00;
STICKLINE(底,主力成本,0,0.5,0),COLOR00FF00;
顶:=REF(主力成本,2)REF(均值成本,1);
STICKLINE(顶,主力成本,0,2,0),COLORYELLOW;
E:=LLV(L,250)=L;
牛牛起飞:=BARSLAST(E);
OK:=(5*定庄量1+4*定庄量2+3*定庄量3+2*定庄量4+定庄量5)/15;
一线天:=IF(龙年大运,1,0);
主力活跃:=IF(CROSS(C,OK) AND 牛牛起飞>=40,1,0 ) AND AMOUNT>亿;
筹码一线天:一线天 OR 主力活跃 LINETHICK2;
DRAWICON(筹码一线天,1,1);