当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:操盘论势,黄金生命线,BS点加强指标

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、操盘论势

简单看盘,比较直观,会不会用要看大盘是否走好了

 周期:=15;

过滤:=8;
选股:=(-1)*26;
抄底:=(-1)*40;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,周期))/REF(VAR5,周期)*100;
VAR7:=(VAR5-REF(VAR5,周期))/REF(VAR5,周期)*100;
VAR8:=EMA(VAR6,过滤);
底部注意:VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,NODRAW,COLORFF0000;
低位转强:VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,NODRAW,COLOR62B3FF;
试探买入:VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,NODRAW,colorred;
坚定持股:VAR8>REF(VAR8,1) AND VAR8>0,NODRAW,COLORFF00FF;
谨慎观望:VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,NODRAW,COLOR00FFFF;
果断持币:VAR6<REF(VAR6,1) AND VAR6<VAR8,NODRAW,colorgreen;
VAR9:=(CLOSE-MA(CLOSE,58))/MA(CLOSE,58)*100;
VARA:=VAR9>1*REF(VAR9,1) AND VAR9<选股 AND VAR9>抄底*1.5;
VARB:=VOL/CAPITAL*100;
VARC:=LLVBARS(LOW,50);
VARD:=SUM(VOL,VARC);
VARE:=HHVBARS(HIGH,50);
VARF:=SUM(VOL,VARE);
VAR10:=(CLOSE-REF(OPEN,VARE))/REF(OPEN,VARE)*100;
VAR11:=VARF/CAPITAL*100;
VAR12:=(CLOSE-REF(OPEN,VARC))/REF(OPEN,VARC)*100;
VAR13:=VARD/CAPITAL*100;
VAR14:=MA(CLOSE,3);
VAR15:=REF(CLOSE,2)*0.865;
VAR16:=REF(CLOSE,13)*0.772;
VAR17:=MIN(VAR15,VAR16);
VAR18:=MA(CLOSE,13);
超跌阶段:IFF((CLOSE-VAR17)/CLOSE<0.03 AND VAR10<-35 AND SUM(VARB,5)/5<1.8,1,0)*10,NODRAW,colorwhite;
VAR19:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
VAR1A:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
VAR1B:=EMA(VAR1A,9);
VAR1C:=2*(VAR1A-VAR1B);
底部现形:VAR1A<-50 AND VAR19>7 AND VAR1A<VAR1B,NODRAW,COLORFFFF00;
STICKLINE(1,0,0,30,0),coloryellow;
快线:VAR6,colorred;
慢线:VAR8,COLORFFFF00;
STICKLINE(1       ,VAR6,VAR8,6,0),colorgreen;
STICKLINE(底部注意,VAR6,VAR8,6,0),COLORFF0000;
STICKLINE(低位转强,VAR6,VAR8,6,0),COLOR62B3FF;
STICKLINE(试探买入,VAR6,VAR8,6,0),colorred;
STICKLINE(坚定持股,VAR6,VAR8,6,0),COLORFF00FF;
STICKLINE(谨慎观望,VAR6,VAR8,6,0),COLOR00FFFF;
STICKLINE(果断持币,VAR6,VAR8,6,0),colorgreen;
STICKLINE(超跌阶段,VAR6,VAR8,6,0),colorwhite;
STICKLINE(底部现形,VAR6,VAR8,6,0),COLORFFFF00;
 



2、黄金生命线

N:=15;

input:N(1,110,15);
生命线:98,linethick1,coloryellow;
生命禁区:95,linethick1,colorred;
股价泥潭:20,linethick1,colorblue;
生死线:50,linethick2,colorwhite;
C0:=(H+L+C)/3;
a1:=HHV(C0,n);
a2:=LLV(C0,n);
a3:=a1-a2;
a4:=EMA((C0-a2)/a3,2)*100;
b1:=HHV(C0,4*n);
b2:=LLV(C0,4*n);
b3:=b1-b2;
b4:=EMA((C0-b2)/b3,2)*100;
C1:=HHV(C0,16*n);C2:=LLV(C0,16*n);C3:=C1-C2;
C4:=EMA((C0-C2)/C3,2)*100;
短期:a4,colorgreen,linethick1;
中期:b4,coloryellow,linethick2;
长期:C4,colorred,linethick3;
DRAWICON(CROSS(生命禁区,短期) AND REF(短期,1)>短期,短期*1.1,11);
DRAWTEXT(CROSS(生命禁区,短期) AND REF(短期,1)>短期,短期*1.1,'←卖'), colorcyan;
DRAWICON(CROSS(生命线,短期) AND REF(短期,1)>短期,短期*1.2,12);
DRAWTEXT(CROSS(生命线,短期) AND REF(短期,1)>短期,短期*1.2,'←卖'), colorcyan;
DRAWTEXT(CROSS(短期,生命禁区),85,'警惕!! '),colorwhite;
DRAWTEXT(CROSS(中期,生命禁区),95,'减磅'),ColorFF6800;
DRAWTEXT(CROSS(长期,生命禁区),100,'出局'),colormagenta;
DRAWICON(CROSS(短期,生命禁区),85,4);
DRAWICON(CROSS(中期,生命禁区),95,8);
DRAWICON(CROSS(长期,生命禁区),100,3);




3、BS点加强指标

同花顺BS点加强,内加概念板块,涨跌板等合成指标( 顶尖财经 股票学院: http://58188.com )

STICKLINE( MA(CLOSE,60)>MA(CLOSE,120),MA(CLOSE,60),MA(CLOSE,120),12,0),COLOR000044;
STICKLINE( MA(CLOSE,60)<MA(CLOSE,120),MA(CLOSE,60),MA(CLOSE,120),12,0),COLOR004400;
DRAWKLINE(H,O,L,C);
DRAWTEXT_FIX(ISLASTBAR  ,0.31,0.26,0 ,'自由流通值:'+TOSTRING(CLOSE*ZYLTGB/100000000,2)+'亿 '),colorcyan;
DRAWTEXT_FIX(ISLASTBAR  ,0.31,0.31,0 ,'流通值:'    +TOSTRING(CLOSE*SHGZG/100000000,2)+'亿 '+'_流通比例:'+TOSTRING(LTBL,2)+'% '),colorcyan;
VBG:=CURRBARSCOUNT;
VBG1:=0;
DRAWNUMBER_FIX(VBG=VBG1,0.07,0.04,0,"板块:"+BLOCK (0,0)+"  概念:"+BLOCK (3,0)),colorwhite;
DRAWTEXT_FIX(1,0.05,0.92,0,'行业:'+BLOCK(0,00)+'__'+BLOCK(1,0)+'__'+BLOCK(2,0)),colormagenta;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,8,0),Color00AAAA;
STICKLINE(涨停,OPEN,CLOSE,6,0),Color00CACA;
STICKLINE(涨停,OPEN,CLOSE,5,0),Color00E3E3;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0),Color33FF33;
STICKLINE(跌停,OPEN,CLOSE,12,0),Color009B00;
STICKLINE(跌停,OPEN,CLOSE,8,0),Color00B700;
STICKLINE(跌停,OPEN,CLOSE,6,0),Color00D200;
STICKLINE(跌停,OPEN,CLOSE,5,0),Color00EA00;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*1.00,1) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
IF (k<=0)
RETURN 0;
MA$1:MA(CLOSE, N1);
IF (k<=1)
RETURN 0;
MA$2:MA(CLOSE, N2);
IF (k<=2)
RETURN 0;
MA$3:MA(CLOSE, N3);
IF (k<=3)
RETURN 0;
MA$4:MA(CLOSE, N4);
IF (k<=4)
RETURN 0;
MA$5:MA(CLOSE, N5);
IF (k<=5)
RETURN 0;

上一篇:同花顺源码:骁龙5号,庄家绝对成本线,安南超强MACD

下一篇:同花顺源码:千载难逢出手大抄底,买卖提醒,▼底1PRO 底部买入