《股票-改良的大智慧BS决策主图公式.docx》由会员分享,可在线阅读,更多相关《股票-改良的大智慧BS决策主图公式.docx(17页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、改良的大智慧BS决策主图公式改进的大智慧BS决策主图公式!不以涨喜,不以跌悲,冷眼看市,无为而治。性格决定命运,细节决定成败。十分申明:分析的结果只是预测,需要走势确认。理智对待涨跌,趋势决定操作方向。股市的变化经常出入意料,我也不是什么高手,神仙并不存在,这里的公式为个人观点,仅作为个人观点以及选股思路的探究。IF(FINANCE2(37)/10000>=100)THENBEGINDRAWTEXTabs(0,270,【超大盘0.7%】+FINANCE2(37)/10000+亿股),LINETHICK2,ColorFF00FF;end;IF(FINANCE2(37)/10000<1
2、00andFINANCE2(37)/10000>=10)THENBEGINDRAWTEXTabs(0,270,【大盘股9.0%】+FINANCE2(37)/10000+亿股),LINETHICK2,ColorFF00FF;end;IF(FINANCE2(37)/10000<10andFINANCE2(37)/10000>=5)THENBEGINDRAWTEXTabs(0,270,【中盘股12.7%】+FINANCE2(37)/10000+亿股),LINETHICK2,ColorFF00FF;end;IF(FINANCE2(37)/10000<5andFINANCE2(3
3、7)/10000>=1)THENBEGINDRAWTEXTabs(0,270,【小盘股55.3%】+FINANCE2(37)/10000+亿股),LINETHICK2,ColorFF00FF;end;IF(FINANCE2(37)/10000<1)THENBEGINDRAWTEXTabs(0,270,【超小盘22.3%】+FINANCE2(37)/10000+亿股),LINETHICK2,ColorFF00FF;end;a:="LTFunc5FORLT2"s1:="LTFunc5LT_S1"hs:="LTFunc5LT_HS&quo
4、t;ls:="LTFunc5LT_LS"p1:="LTFunc5LT_P1"upp:="LTFunc5LT_UPP"udd:="LTFunc5LT_UDD"hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd;买入:p1=1andref(p1,1)=0,LineThick0,Precis0,ColorRed;d1:=ema(abs("ddx.ddx"),60);d2:=max("ddx.ddx"/d1+7.5,7.5);d3:=min("ddx.
5、ddx"/d1,10);fb:=if(s1=0,hs,ls);tr0:=ifs(p1=1,明日收盘价<+numtostrn(udd,2)+,出现S点n,假设明日收盘价>+numtostrn(upp,2)+,出现B点n);tr1:=ifs(s1=1,明日收盘价<+numtostrn(ls,2)+,短线卖出时机,假设明日收盘价>+numtostrn(hs,2)+短线买入时机);tr2:=ifs(p1=1,ifs(cross(p1,0),B点,持股),ifs(cross(1,p1),S点,持币);tr3:=ifs(s1=0,向下,向上,);tr4:=3.能量级别:+
6、numtostrn(d3,1)+级;bs:=+datestr(date)+买卖点决策系统提示n+1.BS点:+tr2+,+tr0+2.短线:+tr3+tr1+n+tr4;drawflagtext(1,fb,bs);STICKLINE(p1=1andc>=oando<>0,c,o,d2,0),color5454ff;STICKLINE(p1=1andc>=oando<>0,c,o,7.5,0),colorblack;STICKLINE(p1=1andc>=oando<>0,c,c,7.5,0),color5454ff;STICKLINE(p1
7、=1andc>=oando<>0,o,o,7.5,0),color5454ff;STICKLINE(p1=1andc>=oando<>0,o,c,7.5,1),color5454ff;STICKLINE(p1=1andc<=o,o,c,7.5,1),color5454ff;STICKLINE(p1=1andc<=o,l,c,0.5,1),color5454ff;STICKLINE(p1=1andc<=o,h,o,0.5,1),color5454ff;STICKLINE(p1<>1orbarscount(c)<3)andc&
8、gt;=o,c,o,7.5,1),colorffff54;STICKLINE(p1<>1orbarscount(c)<3)andc>=o,c,h,0.5,1),colorffff54;STICKLINE(p1<>1orbarscount(c)<3)andc>=o,l,o,0.5,1),colorffff54;drawbmp(p1=1andref(p1,1)=0,l,buy1.bmp),align1,valign0;drawbmp(p1=0andref(p1,1)=1,h,sell1.bmp),align1,valign2;drawbmp(s1=1
9、andref(s1,1)=0and(p1+ref(p1,1)<>1,l,bs.bmp),align1,valign0;drawbmp(s1=0andref(s1,1)=1and(p1+ref(p1,1)<>1,h,ss.bmp),align1,valign2;45度异动x1:=(C+L+H)/3;bb13:=atan(ema(x1,13)-ref(ema(x1,13),1)*3.1416*10;ema8:=ema(c,8);DRAWTEXT(filter(bb13>1andema(x1,13)>ref(ema(x1,8),1),10),ema8,45上升),
10、coloryellow;STICKLINE(CLOSE<OPENandref(CLOSE,1)>ref(OPEN,1),ref(close,1),ref(close,1),28,0),COLORAAAAFF,LINETHICK1;cc:=(h-c)/(c-o)<0.33;dd:=(c/ref(c,1)-1)>=0.0502andc>ref(c,1)and(o-l)/(c-o)>=1.48andl<ref(l,1)andl<ref(l,2);ee:=(c/ref(c,1)-1)>=0.08;aa:=VOL>REF(VOL,1)*1.9a
11、ndc>ref(c,1)andc/ref(c,1)-1>=0.049andcc;bb:=(c/ref(c,1)-1)>=0.0502andc>ref(c,1)andv>ref(v,1)andVOL>REF(VOL,1)*2.5andcc;DRAWTEXT(FILTER(aaorbborddoree,34),l,异动),COLOrffff00;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);DRAWTEXTREL(1,920,总股本:+NUMTOSTRn(DD,0)+万股+流
12、通A股:+NUMTOSTRn(SS,0)+万股+市盈率:+NUMTOSTRn(TH,2)+倍+每股收益:+NUMTOSTRn(GG,3)+元),ColorFFFF00;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);今日阻力:=REF(明日阻力,1);今日支撑:=REF(明日支撑,1);STICKLINE(DISPSTATUS=2andc>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;STICKLINE(D
13、ISPSTATUS=2andc<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;STICKLINE(DISPSTATUS=2andc>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;STICKLINE(DISPSTATUS=2andc<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;DRAWTEXTREL(850,950,今日支撑:+NUMTOSTRN(今日支撑,2),Colorred;DRAWTEXTREL(700,950,今日阻力:+NUMTOSTRN(今日阻力,2),ColorGREEN;DRAWTEXTREL(1
14、,870,所属板块:+BKNAME),ColorAFFF00;DRAWTEXTREL(1,820,每股收益:+NUMTOSTRN(FINANCE2(3),3)+元+市盈率:+NUMTOSTRN(DYNAINFO(39),2)+元+市净率:+NUMTOSTRN(CLOSE/FINANCE2(4),2)+元+净资产:+NUMTOSTRN(FINANCE2(4),2)+元),Color00C0FF;将来波段GET:ZIG(3,3),COLORYELLOW;PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)<=REF(
15、ZIG(3,5),2)ANDREF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1)ANDREF(ZIG(3,5),1)>=REF(ZIG(3,5),2)ANDREF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)<=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3
16、,10)<REF(ZIG(3,10),1)ANDREF(ZIG(3,10),1)>=REF(ZIG(3,10),2)ANDREF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)<=REF(ZIG(3,20),2)ANDREF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1)ANDREF(ZIG(3,20),1)>=REF(ZI
17、G(3,20),2)ANDREF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1);走弱1:=BARSLAST(PL5>REF(PL5,1);走强2:=BARSLAST(PL10<REF(PL10,1);走弱2:=BARSLAST(PL10>REF(PL10,1);走强3:=BARSLAST(PL20<REF(PL20,1);走弱3:=BARSLAST(PL20>REF(PL20,1);ZTJZ5:=IF(PL10>REF(PL10,1),COU
18、NT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱
19、3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);DRAWTEXT(EN1ANDDTJZ5=1,L*0.98,(A),COLORFFFF00;DRAWTEXT(EX1ANDDTJD5=2,H*1.02,(B),COLORFF00FF;DRAWTEXT(EN2ANDZTJZ5=1,L*0.99,(C),COLOR0000FF;DRAWTEXT(EX1ANDPL10>REF(PL10,1)ANDZTJD5=1,H*1.02,),COLOR0000FF;DRAWTEXT(EN1ANDPL10>REF(PL10,1)ANDZTJZ
20、5=2,L*0.98,),COLOR0000FF;DRAWTEXT(EX1ANDPL10>REF(PL10,1)ANDZTJZ5=2,H*1.02,),COLOR0000FF;DRAWTEXT(EN1ANDPL10>REF(PL10,1)ANDZTJZ5=3,L*0.98,),COLOR0000FF;DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=1,H*1.02,),COLOR0000FF;DRAWTEXT(EN2ANDDTJZ10=1,L*0.93,),COLORFF00FF;DRAWTEXT(EX2ANDDTJD10=2,H*1.05,
21、),COLORFFFF00;DRAWTEXT(EN3ANDZTJZ10=1,L*0.93,),COLOR0000FF;DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=1,H*1.03,),LINETHICK3,COLOR00FFFF;DRAWTEXT(EN2ANDPL20>REF(PL20,1)ANDZTJZ10=2,L*0.96,),LINETHICK3,COLOR00FFFF;DRAWTEXT(EX2ANDPL20>REF(PL20,1)ANDZTJD10=2OR(ZTJD10=0ORZTJD10=2)ANDEX2,H*1.03,),LI
22、NETHICK3,COLOR00FFFF;DRAWTEXT(EN2ANDPL20>REF(PL20,1)ANDZTJZ10=3,L*0.96,),LINETHICK3,COLOR00FFFF;vv:=-30;特买单:="丰赢数据.特买单#MIN1"大买单:="丰赢数据.大买单#MIN1"中买单:="丰赢数据.中买单#MIN1"小买单:="丰赢数据.小买单#MIN1"ub:=特买单+大买单+中买单+小买单;特卖单:="丰赢数据.特卖单#MIN1"大卖单:="丰赢数据.大卖单#MIN
23、1"中卖单:="丰赢数据.中卖单#MIN1"小卖单:="丰赢数据.小卖单#MIN1"流入额:="丰赢数据.流入额#MIN1"流出额:="丰赢数据.流出额#MIN1"总流入:="丰赢数据.总流入#MIN1"总流出:="丰赢数据.总流出#MIN1"买力合计:="丰赢数据.买力合计#MIN1"卖力合计:="丰赢数据.卖力合计#MIN1"流入:(总流入-总流出)/10000,linethick0,color000000;us:=特卖单
24、+大卖单+中卖单+小卖单;u:=ub+us;DRAWRECTABS(150,15,170,20+特买单/u*100,rgb(222,52,0),color000099;DRAWRECTABS(180,15,200,20+特卖单/u*100,rgb(49,182,24),color000000;DRAWRECTABS(210,15,230,20+大买单/u*100,rgb(255,117,0),color000000;DRAWRECTABS(240,15,260,20+大卖单/u*100,rgb(99,231,74),color000000;DRAWRECTABS(270,15,290,20+中
25、买单/u*100,rgb(255,186,0),color000000;DRAWRECTABS(300,15,320,20+中卖单/u*100,rgb(74,243,156),color000000;DRAWRECTABS(330,15,350,20+小买单/u*100,rgb(239,223,0),color000000;DRAWRECTABS(360,15,380,20+小卖单/u*100,rgb(189,243,156),color000000;DRAWRECTABS(140,16,765,82,0),colorcccc00;DRAWRECTABS(140,13,400,14,rgb(0
26、,200,200),color00FFFF;DRAWTEXTABS(150,0,巨买巨卖大买大卖中买中卖小买小卖),colorAAAA00;DRAWRECTABS(395,18,415,80,rgb(0,200,200),colorcc9900;DRAWTEXTABS(600,vv+55,委),color00ffff;DRAWTEXTABS(600,vv+75,买),color00ffff;DRAWTEXTABS(600,vv+95,入),color00ffff;DRAWTEXTABS(600,vv+30,共流入+总流入/10000+万元,+ub+次),color0022ee;DRAWTEXT
27、ABS(600,vv+38,),color00ffff;DRAWTEXTABS(620,vv+50,巨额+STRRIGHT(+NUMTOSTRN(特买单,0),7)+占+STRRIGHT(+NUMTOSTRN(特买单/u*100,2),6)+%),color0036dd;DRAWTEXTABS(620,vv+65,大额+STRRIGHT(+NUMTOSTRN(大买单,0),7)+占+STRRIGHT(+NUMTOSTRN(大买单/u*100,2),6)+%),COLOR0174fa;DRAWTEXTABS(620,vv+80,中额+STRRIGHT(+NUMTOSTRN(中买单,0),7)+占
28、+STRRIGHT(+NUMTOSTRN(中买单/u*100,2),6)+%),COLOR1ab9ff;DRAWTEXTABS(620,vv+95,小额+STRRIGHT(+NUMTOSTRN(小买单,0),7)+占+STRRIGHT(+NUMTOSTRN(小买单/u*100,2),6)+%),COLOR01ddef;DRAWRECTABS(595,18,615,80,rgb(200,90,200),color990099;DRAWTEXTABS(400,vv+55,委),color00ffff;DRAWTEXTABS(400,vv+75,卖),color00ffff;DRAWTEXTABS(
29、400,vv+95,出),color00ffff;DRAWTEXTABS(400,vv+30,共流出+总流出/10000+万元,+us+次),color00ee22;DRAWTEXTABS(400,vv+38,),color00ffff;DRAWTEXTABS(420,vv+50,巨额+STRRIGHT(+NUMTOSTRN(特卖单,0),7)+占+STRRIGHT(+NUMTOSTRN(特卖单/u*100,2),6)+%),color1ab731;DRAWTEXTABS(420,vv+65,大额+STRRIGHT(+NUMTOSTRN(大卖单,0),7)+占+STRRIGHT(+NUMTOS
30、TRN(大卖单/u*100,2),6)+%),COLOR49e560;DRAWTEXTABS(420,vv+80,中额+STRRIGHT(+NUMTOSTRN(中卖单,0),7)+占+STRRIGHT(+NUMTOSTRN(中卖单/u*100,2),6)+%),COLOR9bf149;DRAWTEXTABS(420,vv+95,小额+STRRIGHT(+NUMTOSTRN(小卖单,0),7)+占+STRRIGHT(+NUMTOSTRN(小卖单/u*100,2),6)+%),COLOR9bf1bf;DRAWTEXTABS(0,0,净流入额:+(总流入-总流出)/10000+万元),colorAA
31、AAAA;DRAWTEXTABS(0,30,买力合计:+买力合计),colorAAAAAA;DRAWTEXTABS(0,45,卖力合计:+卖力合计),colorAAAAAA;DRAWTEXTABS(0,60,买卖次差:+NUMTOSTRN(ub-us,0),colorAAAAAA;DRAWTEXTABS(0,15,占流通盘:+NUMTOSTRN(总流入-总流出)/CAPITAL,2)+%),colorAAAAAA;DDX10:=count("ddx.ddx">0,10);BL2:=sum("散户数量.散户数量",5)*-1;DRAWTEXTABS(0,75,L2DDX翻红:+ddx10+/10),colorAAAAAA;DRAWTEXTABS(0,90,L2主力买入:+bl2+(五天),colorAAAAAA;DRAWTEXTABS(150,85,巨额50万以上成交大额20万-50万中额5万-20万小额5万以下,次数合计超过270以上为无效数据。),colorFFAA55; 本帖最后由辉661086918于2020-2-1619:42编辑