bs操盘线(主图)发出买点指示,多空能量线多方战胜空方,抄底信号指标发出买入信号,博弈资金指标显示主力资金入场,四共振抓住牛股启动点
源码
BS操盘线(主图)
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=cross(买线,卖线);
SEL:=cross(卖线,买线);
drawtext(bu,LOW*0.989,'B'),colorred,linethick3;
DRAWTEXT(bu,LOW,''),Color208FFF,LINETHICK3;
DRAWTEXT(sel,HIGH,''),ColorFFFF00,LINETHICK3;
drawtext(sel,HIGH*1.0175,'S'),colorffff00,linethick3;
stickline(买线>=卖线,low,high,1,0),colorred;
stickline(买线>=卖线,close,open,4.5,0),color0000aa;
stickline(买线>=卖线,close,open,4,0),color0000cc;
stickline(买线>=卖线,close,open,3,0),color0000cc;
stickline(买线>=卖线,close,open,2,0),color0000ee;
stickline(买线<卖线,close,open,4.5,0),coloraaaa00;
stickline(买线<卖线,close,open,4,0),colorbbbb00;
stickline(买线<卖线,close,open,3,0),colorcccc00;
stickline(买线<卖线,close,open,2,0),coloreeee00;
stickline(买线<卖线,low,high,1,0),colorffff00;
stickline(cross(买线,卖线) or cross(卖线,买线),open,close,3,0),color00ffff;
指导线: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
DRAWTEXT(cross(指导线,界),界,''),Colorffffff;
DRAWTEXT(cross(界,指导线),界,''),Color00ffff;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
G:=95;
DRAWTEXT(cross(J,D),L*0.999,''),Color00ffff,linethick4;
DRAWTEXT(cross(J,D),L,''),Color00ffff;
DRAWTEXT(cross(J,G),H*1.005,''),Colorffff00,linethick4;
DRAWTEXT(cross(J,G),H,''),Colorffff00;
多空能量线
VAR1:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;
机构做空能量线: SMA(VAR1,3,1),LINETHICK2,COLORGREEN;
VAR2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
机构做多能量线: SMA(VAR2,5,1)-8,LINETHICK2,COLORRED;
弱势区:20,POINTDOT,COLORGREEN;
强弱分水岭:50,POINTDOT,COLORWHITE;
强势区:80,POINTDOT,COLORF00FF0;
抄底信号
大主力: 3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), ,LINETHICK2, ;
抄底信号: 10, ,LINETHICK2,COLORRED ;
买入个股: IF(CROSS(大主力,抄底信号),100,10), ,LINETHICK2,COLORYELLOW;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3); VB:=(V9-VA)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
庄家撤: IF(V4<=0,V4,0),COLORGREEN;
庄家进: IF(V4>=0,V4,0),COLORRED;
主力资金进: IF(VB>=0,VB,0),COLORYELLOW;
主力资金撤: IF(VB<=0,VB,0),COLORBLUE;
博弈资金
a:=if((close>126.32),(amount)/(100000),vol);
主力:ma(a,4),linestick,coloryellow;
游资:ma(a,8),linestick,color00ff00;
大户:ma(a,16),linestick,colorred;
散户:ma(a,32),linestick,colorf0f000;
主比:abs(((主力)/(主力 + 游资 + 大户 + 散户))*(100)),linestick,coloryellow;
游比:abs(((游资)/(主力 + 游资 + 大户 + 散户))*(100)),linestick,color00ff00;
大比:abs(((大户)/(主力 + 游资 + 大户 + 散户))*(100)),linestick,colorred;
散比:abs(((散户)/(主力 + 游资 + 大户 + 散户))*(100)),linestick,colorf0f000;
警戒线:ma(a,180),colorff66ff,linethick2;
stickline((主力 > 0),0,主力,7,0),colorred;
stickline((主力 > 0),0,主力,6.3,0),color0022ff;
stickline((主力 > 0),0,主力,5.5,0),color007aff;
stickline((主力 > 0),0,主力,5.3,0),color0080ff;
stickline((主力 > 0),0,主力,5,0),color0089ff;
stickline((主力 > 0),0,主力,4.5,0),color00abff;
stickline((主力 > 0),0,主力,0.7,0),coloryellow;
stickline((游资 > 0),0,游资,6.8,0),color009500;
stickline((游资 > 0),0,游资,6.3,0),color00a300;
stickline((游资 > 0),0,游资,6,0),color00ab00;
stickline((游资 > 0),0,游资,5,0),color00c100;
stickline((游资 > 0),0,游资,3,0),color00db00;
stickline((游资 > 0),0,游资,2.5,0),color00ea00;
stickline((游资 > 0),0,游资,1.1,0),colorgreen;
stickline((大户 > 0),0,大户,6,0),color1020aa;
stickline((大户 > 0),0,大户,4,0),color1020cc;
stickline((大户 > 0),0,大户,3,0),color1020ee;
stickline((大户 > 0),0,大户,2,0),color1020ff;
stickline((散户 > 0),0,散户,6,0),colorff7700;
stickline((散户 > 0),0,散户,5,0),colorffaa00;
stickline((散户 > 0),0,散户,4,0),colorffbb00;
stickline((散户 > 0),0,散户,3,0),colorffcc00;
stickline((散户 > 0),0,散户,2,0),colorffdd00;
stickline((散户 > 0),0,散户,1,0),colorffee00;