【股票指标公式下载】-【大智慧】BS决策(收盘价、能量级别、决策、买卖点决策)
大智慧BS6.0买卖点决策系统-贡献给分析家(主副图 源码 贴图)
大智慧BS6.0买卖点决策系统-贡献给分析家(主副图源码贴图)[大智慧公式]大智慧BS6.0买卖点决策系统-贡献给分析家(主副图源码贴图)input: N(30, 1, 240, 1);a:="LTFunc6@FORLT2"(N); {计算BS点}s1:="LTFunc6@LT_S1"(N); {s1=0,向下; s1=1,向上}hs:="LTFunc6@LT_HS"(N); {短线买入机会}ls:="LTFunc6@LT_LS"(N); {短线卖出机会}p1:="LTFunc6@LT_P1"(N); {p1=1,显示BS,p1上穿0线,B点; p1下穿1线,S点}upp:="LTFunc6@LT_UPP"(N);{明日B点预测}udd:="LTFunc6@LT_UDD"(N);{明日S点预测}{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};d1:=ema(abs("ddx.ddx"),60); {ddx绝对值60日指数平滑移动平均}d2:=max("ddx.ddx"/d1+7.5,7.5);d3:=min("ddx.ddx"/d1,10); {能量级别:当日ddx与60日平均值的比值,最高10.0}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.能量级别:'+numtostrn(d3,1)+'级';bs:='<*t=0092F7*><*c=FFFFFF*><*p=95*>'+datestr(date)+'买卖点决策系统提示\n'+'<*t=E7FFFF*><*c=000000*><*p=95*>'+'1.BS点:'+tr2+','+tr0+'<*t=E7FFFF*><*c=000000*><*p=95*>'+'2.短线:'+tr3+tr1+'\n'+'<*t=E7FFFF*><*c=000000*><*p=95*>'+tr4;drawflagtext(1,fb,bs);{原文链接:/ }STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;(文档来源:好股票网)。
大智慧公式指南(附全部函数说明)
大智慧公式指南(附全部函数说明)轻轻松松学编公式目录第一课我们要做的是什么?........................................................ - 3 第二课在哪里编写公式?............................................................ - 4 第三课编写公式都要用到什么东西? ........................................ - 6 第四课编写一条最简单的指标线................................................ - 9 第五课编写最常用的均量和均价线.......................................... - 10 第六课今天有几只发生 MA 金叉?............................................ - 11 第七课如何编写BIAS 指标?..................................................... - 12 第八课我能不能直接用写好的指标公式? ................................ - 14 第九课放量/缩量/上涨/下跌/收阳/ 收阴.................................. - 16 第十课涨停板攻击?................................................................ - 18 第十一课多头排列—良好的上升趋势...................................... - 20 第十二课逃顶 K 形态之—黄昏之星......................................... - 22 第十三课突破底部横盘整理创新高!...................................... - 26 附录:大智慧简略函数集............................................................ - 29 附录 1:从 dzh2.exe 中扣出的函数说明.. (39)2010 年 7 月大智慧全面升级股票池功能之际,大智慧官方论坛上为专业版以上的股票池用户开辟了“股票池功能讨论区”,欢迎新老用户参与,相互交流学习,与中国证券市场一同成长!/doc/0d9991378.html,/index.asp?boardid= 138-1-轻轻松松学编公式2010 年大智慧公司版权所有-2-轻轻松松学编公式第一课我们要做的是什么?大智慧软件自2000 年始与广大的投资者见面以来很快就以优秀的界面设计与便捷的操作引起了投资者的共鸣,无论是在入门级的专业版还是在高端的机构版中,都可见大智慧金融终端在为国内的广大投资者精挑细作,量体裁衣的印记。
大智慧组合主图指标公式
大智慧组合主图指标公式K线美化,无未来,可单独删除STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;{红买绿卖点显示,无未来,可单独删除}DRAWGBK(c>=0),Color2B5516;平衡:EMA(C,20),CIRCLEDOT,COLORwhite;STICKLINE((CLOSE >平衡),平衡,平衡,1,0),LINETHICK6,color0000ff;STICKLINE((平衡 > CLOSE),平衡,平衡,1,0),LINETHICK6,colorff6600;{画线显示,带未来,正常,可单独删除}Var1:=DATE>900101 AND DATE<2098108;Var2:=DATE>2098106;Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),18)/4*Var1; Var4:=IF(DATE<2098231,IF(Var3>23.16,Var3,0),0);Var5:=Var3<10;Var6:=Var3<2;Var7:=Var5 OR Var6;长期趋势: ZIG(3,19)*Var1,COLORBLUE;短期趋势: ZIG(3,6.5)*Var1,COLORYELLOW;{压力支撑显示,带未来,正常,可单独删除}TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); vB1:=FILTER(A1,10); C1:=BACKSET(vB1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); vB2:=FILTER(A2,10); C2:=BACKSET(vB2,10+1); LD:=FILTER(C2,10); A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));t1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);压力线:IF(t1,A,A),ColorFF00FF,POINTDOT;STICKLINE(t1,A,A,9,0),ColorFF00FF;支撑线:IF(t2,B,B),Color80FF00,POINTDOT;STICKLINE(t2,B,B,9,0),Color80FF00;{BS买卖点显示,无未来,可单独删除}a:="LTFunc5@FORLT2"; {计算BS点}s1:="LTFunc5@LT_S1"; {s1=0,向下; s1=1,向上}hs:="LTFunc5@LT_HS"; {短线买入机会}ls:="LTFunc5@LT_LS"; {短线卖出机会}p1:="LTFunc5@LT_P1"; {p1=1,显示BS,p1上穿0线,B点 ; p1下穿1线,S点}upp:="LTFunc5@LT_UPP";{明日B点预测}udd:="LTFunc5@LT_UDD";{明日S点预测}drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;{筹码成本显示,带未来,正常,可单独删除}Zyz:=cost(99.9);Zyx:=cost(0.1);Zy:=(Zyz-Zyx)/50;Zy1:=Zyz-Zy;Zy2:=Zyz-2*Zy;Zy3:=Zyz-3*Zy;Zy4:=Zyz-4*Zy;Zy5:=Zyz-5*Zy;Zy6:=Zyz-6*Zy;Zy7:=Zyz-7*Zy;Zy8:=Zyz-8*Zy;Zy9:=Zyz-9*Zy;Zy10:=Zyz-10*Zy;Zy11:=Zyz-11*Zy;Zy12:=Zyz-12*Zy;Zy13:=Zyz-13*Zy; Zy14:=Zyz-14*Zy; Zy15:=Zyz-15*Zy; Zy16:=Zyz-16*Zy; Zy17:=Zyz-17*Zy; Zy18:=Zyz-18*Zy; Zy19:=Zyz-19*Zy; Zy20:=Zyz-20*Zy; Zy21:=Zyz-21*Zy; Zy22:=Zyz-22*Zy; Zy23:=Zyz-23*Zy; Zy24:=Zyz-24*Zy; Zy25:=Zyz-25*Zy; Zy26:=Zyz-26*Zy; Zy27:=Zyz-27*Zy; Zy28:=Zyz-28*Zy; Zy29:=Zyz-29*Zy; Zy30:=Zyz-30*Zy; Zy31:=Zyz-31*Zy; Zy32:=Zyz-32*Zy; Zy33:=Zyz-33*Zy; Zy34:=Zyz-34*Zy; Zy35:=Zyz-35*Zy; Zy36:=Zyz-36*Zy; Zy37:=Zyz-37*Zy; Zy38:=Zyz-38*Zy; Zy39:=Zyz-39*Zy; Zy40:=Zyz-40*Zy; Zy41:=Zyz-41*Zy; Zy42:=Zyz-42*Zy; Zy43:=Zyz-43*Zy; Zy44:=Zyz-44*Zy; Zy45:=Zyz-45*Zy; Zy46:=Zyz-46*Zy; Zy47:=Zyz-47*Zy; Zy48:=Zyz-48*Zy; Zy49:=Zyz-49*Zy;Z1:=winner(Zyz)*100-winner(Zy4)*100;Z2:=winner(Zy4)*100-winner(Zy7)*100;Z3:=winner(Zy7)*100-winner(Zy10)*100;Z4:=winner(Zy10)*100-winner(Zy13)*100;Z5:=winner(Zy13)*100-winner(Zy16)*100;Z6:=winner(Zy16)*100-winner(Zy19)*100;Z7:=winner(Zy19)*100-winner(Zy22)*100;Z8:=winner(Zy22)*100-winner(Zy25)*100;Z9:=winner(Zy25)*100-winner(Zy28)*100;Z10:=winner(Zy28)*100-winner(Zy31)*100;Z11:=winner(Zy31)*100-winner(Zy34)*100;Z12:=winner(Zy34)*100-winner(Zy37)*100;Z13:=winner(Zy37)*100-winner(Zy40)*100;Z14:=winner(Zy40)*100-winner(Zy43)*100;Z15:=winner(Zy43)*100-winner(Zy46)*100;Z16:=winner(Zy46)*100-winner(Zy49)*100;STICKLINE( DISPSTATUS=2,Zy1 ,Zy4 ,Z1*50 ,1 ),LAYER7,coloryellow; STICKLINE( DISPSTATUS=2,Zy5 ,Zy7 ,Z2*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy8 ,Zy10 ,Z3*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy11 ,Zy13 ,Z4*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy14 ,Zy16 ,Z5*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy17 ,Zy19 ,Z6*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy20 ,Zy23 ,Z7*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy24 ,Zy26 ,Z8*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy27 ,Zy29 ,Z9*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy30 ,Zy31 ,Z10*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy32 ,Zy34 ,Z11*50 ,1),LAYER7,DOTLINE; STICKLINE( DISPSTATUS=2,Zy35 ,Zy37 ,Z12*50 ,1),LAYER7,DOTLINE;; STICKLINE( DISPSTATUS=2,Zy47 ,Zy49 ,Z16*50 ,1),LAYER7,coloryellow; DRAWTEXTABS(5,5,'股旁网 '),linethick1,COLOR00EEff; {文字显示,带未来,正常,可单独删除}DRAWTEXTABS(10,10,'所属板块:'+BKNAME),COLOR00FF00,linethick1;市值:=C*CAPITAL*VOLUNIT/100000000;股本:=FINANCE2(35)/10000;流通:=FINANCE2(37)/10000;人均持股:=CEILING(CAPITAL*100/selfdata('shx'));市盈率:=DYNAINFO(39);市净率:=c/FINANCE2(4);F:=COST(5 );J:=COST(95 );M:=COST(15 );N:=COST(85 );F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;成本集中度:=F1;莸利比例:=WINNER(c )*100;日换手率:=vol/CAPITAL*100;净资产:=FINANCE2(4);净资收益率:=FINANCE2(5);最新收益:=FINANCE2(3);每股未分配:=FINANCE2(8);毛利润率:=FINANCE2(12);净利润率:=FINANCE2(33)/FINANCE2(27)*100;股东权益比:=FINANCE2(9);每股公积金:=FINANCE2(7);DRAWTEXTABS(10,30,'市值:'+市值+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,30,'股本:'+股本+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,30,'流通:'+流通+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,50,'市盈率:'+市盈率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,50,'市净率:'+市净率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,50,'成本集中度:'+成本集中度+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,70,'莸利比例:'+莸利比例+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,70,'日换手率:'+日换手率+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,70,'净资产:'+净资产+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,90,'净资收益率:'+净资收益率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,90,'最新收益:'+最新收益+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,90,'每股未分配:'+每股未分配+'元 '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,110,'毛利润率:'+毛利润率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(110,110,'净利润率:'+净利润率+'% '),LINETHICK1,Color00FF00;DRAWTEXTABS(210,110,'股东权益比:'+股东权益比+' '),LINETHICK1,Color00FF00;DRAWTEXTABS(10,130,'每股公积金:'+每股公积金+'元 '),LINETHICK1,Color00FF00;{文字显示,无未来,可单独删除}mc:=REF(c,1);阻力位:=IF((CLOSE > 200),(CLOSE * 1.01),(CLOSE * 1.07));阻力位1:=IF((CLOSE < 10),(CLOSE * 1.05),阻力位);止损位:=IF((CLOSE > 200),(CLOSE * 0.99),(CLOSE * 0.93));止损位2:=IF((mc < 10),(mc * 0.95),止损位b);DRAWTEXTABS(10,150,'[昨/今日止损位 :'+NUMTOSTRn(止损位b,2)+'/'+NUMTOSTRn(止损位1,2)+']'),LINETHICK1,COLORYELLOW;DRAWTEXTABS(10,170,'[昨/今日阻力位 :'+NUMTOSTRn(阻力位2,2)+'/'+NUMTOSTRn(阻力位1,2)+']'),LINETHICK1,COLORYELLOW;。
【股票指标公式下载】-【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)
【股票指标公式下载】-【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)第一篇:【股票指标公式下载】-【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)-指标公式源码{【SUPERVIEW大资金流向】} DRAWTEXTABS(0,2,'《若水》'),COLOR0000FF;DRAWTEXTABS(85,2,'《若水》'),COLORYELLOW;DRAWTEXTREL(350,10,'【SUPERVIEW大资金流向】'),LINETHICK4,Color00b5ff;DRAWTEXTABS(0,38,'大盘指数:'+INDEXC+''),LINETHICK0,COLORFF00FF;DRAWTEXTABS(0,52,'大盘涨跌:'+INDEXC-REF(INDEXC,1)),LINETHICK0,PRECIS2,COLORFFFF00;DRAWTEXTA BS(100,52,''+((INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100)+'%'),LINETHICK0,PRECIS2,C OLORFFFF00;DRAWTEXTABS(0,140,'股票代码:'+STKLABEL+''),LINETHICK1,COLORFFFF00;DRAWTEXTABS(0,155 ,'股票名称:'+STKNAME+''),LINETHICK1,COLORFFFF00;DRAWTEXTABS(0,17 0,'最新价格:'+DYNAINFO(7)+'元'),LINETHICK0,COLORFF00FF;DRAWTEXTABS(0,185,'今日涨幅:'+DYNAINFO(14)*100+'%'),LINETHICK0,COLOR00FFFF,PRECIS2; DRAWTEXTABS(0,200,'今日涨跌:'+C-REF(C,1)),LINETHICK0,COLORFFFF00,PRECIS2;DRAWTEXTABS(0,2 14,'历史最高价:'+HHV(HIGH,0)),Colorred,LINETHICK0;DRAWTEXTABS(0,229,'历史最低价:'+LLV(LOW,0)),COLOR00FF00,LINETHICK0;TODAY:=DYNAINFO(7 )=CLOSE and DYNAINFO(10)=AMOUNT;{判断是否当天} {叠加大盘线} TC:=STRCMP(STRLEFT(MARKETLABEL,2),'SZ');DPSH:=“SH00000 1$CLOSE”/HHV(STKINDI('SH000001','分超引用.昨收#DAY'),0);DPSZ:=“399001$CLOSE”/HHV(STKINDI('399001','分超引用.昨收#DAY'),0);DPC:=IF(INBLOCK('A股板块'),DYNAINFO(3)*IF(TC=0,DPSZ,DPSH),C);POLYLINE(C>0,DPC),CO LORFF00FF,LINETHICK2,LAYER0;{DRAWTEXTABS(90,5,TC);} DRAWTEXTABS(0,66,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0000FF;DRAWTEXTABS(0,80,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR00FF00;DRAWTEXTABS(0,94,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLORFFFFFF;{分时超赢} HS:=vol/capital;主单买:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(1,2),BIGORDER(1,2[/email]));主单卖:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(2,2),BIGORDER(2,2[/email]));特单买:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(1,3),bigorder(1,3[/email]));特单卖:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(2,3),bigorder(2,3[/email]));大单买:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(1,2)-“DDEDATA@BIGORDER”(1,3),bigorder(1,2)-bigorder(1,3[/email]));大单卖:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(2,2)-“DDEDATA@BIGORDER”(2,3),bigorder(2,2)-bigorder(2,3[/email]));中单买:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(1,1)-“DDEDATA@BIGORDER”(1,2),bigord er(1,1)-bigorder(1,2[/email]));中单卖:=IF(TODAY,“[email=DDEDATA@BIGORDER]DDEDATA@BIGO RDER”(2,1)-“DDEDATA@BIGORDER”(2,2),bigorder(2,1)-bigorder(2,2[/email]));小单买:=IF(TODAY,1-“[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER”(1,1),1 -bigorder(1,1[/email]));小单卖:=IF(TODAY,1-“[email=DDEDATA@BIGORDER]DDEDATA@BIGORDER”(2,1),1 -bigorder(2,1[/email]));外盘:=sum(if(DYNAINFO(23)*close,DYNAINFO(23),0),0)*0.003906;内盘:=sum(if(DYNAINFO(22)*close,DYNAINFO(22),0),0)*0.003906;主动率:=(外盘-内盘)/(内盘+外盘)*100;单数比:=IF(DYNAINFO(92)/DYNAINFO(91),DYNAINFO(92)/DYNAINF O(91),0);TCL1:=IF(TODAY ,(大单买+特单买),(DYNAINFO(95)+DYNAINFO(94)));TCL2:=IF(TODAY,(特单卖+大单卖),(DYNAINFO(98)+DYNAINFO(97)));{通吃率:=(TCL1-TCL2)*VOL/VOL*100;} DRAWTEXTABS(0,108,'主动率:'+ NUMTOSTRN(主动率,2)),COLOR00FFFF;DRAWTEXTABS(0,122,'单数比:'+ NUMTOSTRN(单数比,2)),COLOR00FFFF;{DRAWTEXTABS(0,136,'通吃率:'+ NUMTOSTRN(通吃率,2)),COLOR00FFFF;} TDLR:=特单买*AMOUNT/10000;TDLC:=特单卖*AMOUNT/10000;超净:TDLR-TDLC,COLORFF00FF,LINETHICK0,PRECIS2;超增:SUM(特单买,1)-SUM(特单卖,1)%,COLORFF00FF,LINETHICK0,PRECIS2;CD:=特单买-特单卖;超大:=HS*CD*100;超大持仓:= 25+Sum(超大,0);DDLR:=大单买*AMOUNT/10000;DDLC:=大单卖*AMOUNT/10000;大净:(DDLR-DDLC),COLOR00FF00,LINETHICK0,PRECIS2;大增:SUM(大单买,1)-SUM(大单卖,1)%,COLOR00FF00,LINETHICK0,PRECIS2;DD:=大单买-大单卖;大户:=HS*DD*100;大户持仓:=25+Sum(大户,0);ZDLR:=中单买*AMOUNT/10000;ZDLC:=中单卖*AMOUNT/10000;中净:(ZDLR-ZDLC),COLORB5B5B5,LINETHICK0,PRECIS2;中增:SUM(中单买,1)-SUM(中单卖,1)%,COLORB5B5B5,LINETHICK0,PRECIS2;ZD:=中单买-中单卖;中户:=HS*ZD*100;中户持仓:= 25+Sum(中户,0);XDLR:=小单买*AMOUNT/10000;XDLC:=小单卖*AMOUNT/10000;散净:(XDLR-XDLC),COLORFF9911,LINETHICK0,PRECIS2;散增:SUM(小单买,1)-SUM(小单卖,1)%,COLORFF9911,LINETHICK0,PRECIS2;XD:=小单买-小单卖;散户:=HS*XD*100;散户持仓:= 25+Sum(散户,0);ZLLR:=主单买*AMOUNT/10000;ZLLC:=主单卖*AMOUNT/10000;主净:ZLLR-ZLLC,COLOR00FFFF,LINETHICK0,PRECIS2;主增:SUM(主单买,1)-SUM(主单卖,1)%,COLOR00FFFF,LINETHICK0,PRECIS2;主力:=(超大+大户);主力持仓:=(超大持仓+大户持仓);{五分钟资金趋势} 主5:=主净-REF(主净,5);超5:=超净-REF(超净,5);大5:=大净-REF(大净,5);中5:=中净-REF(中净,5);散5:=散净-REF(散净,5);DRAWTEXTABS(105,25,'五分钟各单净买(万):'),COLORFFFF00;DRAWTEXTABS(225,25,'主力:'+ NUMTOSTRN(主5,2)),COLOR00FFFF;DRAWTEXTABS(325,25,'机构:'+ NUMTOSTRN(超5,2)),COLORFF00FF;DRAWTEXTABS(425,25,'大户:'+ NUMTOSTRN(大5,2)),COLOR00FF00;DRAWTEXTABS(525,25,'中户:'+ NUMTOSTRN(中5,2)),COLORB5B5B5;DRAWTEXTABS(625,25,'散户:'+ NUMTOSTRN(散5,2)),COLORFF9911;{画柱图};最大值:=400/(MAX(ZLLR,ZLLC,TDLR,TDLC,DDLR,DDLC,ZDLR,ZDLC,XD LR,XDLC,散净,中净,大净,超净,主净));主力买:=600-(ZLLR*最大值);主力卖:=600-(ZLLC*最大值);主力净买:=500-(ABS(主净)*最大值);超大买:=600-(TDLR*最大值);超大卖:=600-(TDLC*最大值);超大净买:=500-(ABS(超净)*最大值);大户买:=600-(DDLR*最大值);大户卖:=600-(DDLC*最大值);大户净买:=500-(ABS(大净)*最大值);中户买:=600-(ZDLR*最大值);中户卖:=600-(ZDLC*最大值);中户净买:=500-(ABS(中净)*最大值);散户买:=600-(XDLR*最大值);散户卖:=600-(XDLC*最大值);散户净买:=500-(ABS(散净)*最大值);DRAWRECTREL(280,主力买,300,610,RGB(200,0,0)),COLOR000000,LAYER5;DRAWRECTREL( 300,主力卖,320,610,RGB(0,200,0)),COLOR000000,LAYER5;DRAWRECTREL( 320,主力净买,340,610,(IF((主净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRA WRECTREL(410,超大买,430,610,RGB(200,0,0)),COLOR000000,LAYER5;DRAWRECTREL( 430,超大卖,450,610,RGB(0,200,0)),COLOR000000,LAYER5;DRAWRECTREL( 450,超大净买,470,610,(IF((超净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRA WRECTREL(540,大户买,560,610,RGB(200,0,0)),COLOR000000,LAYER5;DRAWRECTREL( 560,大户卖,580,610,RGB(0,200,0)),COLOR000000,LAYER5;DRAWRECTREL( 580,大户净买,600,610,(IF((大净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRA WRECTREL(670,中户买,690,610,RGB(200,0,0)),COLOR000000,LAYER5;DRAWRECTREL( 690,中户卖,710,610,RGB(0,200,0)),COLOR000000,LAYER5;DRAWRECTREL( 710,中户净买,730,610,(IF((中净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;DRA WRECTREL(800,散户买,820,610,RGB(200,0,0)),COLOR000000,LAYER5;DRAWRECTREL( 820,散户卖,840,610,RGB(0,200,0)),COLOR000000,LAYER5;DRAWRECTREL(840,散户净买,860,610,(IF((散净>= 0),RGB(200,0,255),RGB(255,255,0)))),COLOR000000,LAYER5;{横彩条} DRAWRECTREL(280,620,340,650,RGB(255,255,0));DRAWRECTREL (410,620,470,650,RGB(255,0,255));DRAWRECTREL(540,620,600,6 50,RGB(0,200,0));DRAWRECTREL(670,620,730,650,RGB(200,200,2 00));DRAWRECTREL(800,620,860,650,RGB(0,0,200));{显示文字} DRAWTEXTREL(260,450,'主'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(260,580,'力'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(390,450,'机'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(390,580,'构'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(520,450,'大'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(520,580,'户'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(650,450,'中'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(650,580,'户'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(780,450,'散'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(780,580,'户'),LINETHICK2,ColorDDFFFF;DRAWTEXTREL(230,680,'买入:'),colorred;DRAWTEXTREL(230,750,'卖出:'),Color00FF00;DRAWTEXTREL(230,820,'净买:'),COLOR1199FF;DRAWTEXTREL(230,890,'持仓:'),COLOR00FFFF;DRAWTEXTREL(230,960,'增减:'),COLORFFFF00;{显示数据} DRAWTEXTREL(280,680,NUMTOSTRN(ZLLR,2)),colorred;DRAWT EXTREL(280,750,NUMTOSTRN(ZLLC,2)),COLOR00FF00;DRAWTEX TREL(280,820,NUMTOSTRN(主净,2)),COLOR1199FF;DRAWTEXTREL(280,890,NUMTOSTRN(主力持仓,2)+'%'),COLOR00FFFF;DRAWTEXTREL(280,960,NUMTOSTRN(主增,2)+'%'),COLORFFFF00;DRAWTEXTREL(410,680,NUMTOSTRN(T DLR,2)),colorred;DRAWTEXTREL(410,750,NUMTOSTRN(TDLC,2)), COLOR00FF00;DRAWTEXTREL(410,820,NUMTOSTRN(超净,2)),COLOR1199FF;DRAWTEXTREL(410,890,NUMTOSTRN(超大持仓,2)+'%'),COLOR00FFFF;DRAWTEXTREL(410,960,NUMTOSTRN(超增,2)+'%'),COLORFFFF00;DRAWTEXTREL(540,680,NUMTOSTRN( DDLR,2)),colorred;DRAWTEXTREL(540,750,NUMTOSTRN(DDLC,2 )),COLOR00FF00;DRAWTEXTREL(540,820,NUMTOSTRN(大净,2)),COLOR1199FF;DRAWTEXTREL(540,890,NUMTOSTRN(大户持仓,2)+'%'),COLOR00FFFF;DRAWTEXTREL(540,960,NUMTOSTRN(大增,2)+'%'),COLORFFFF00;DRAWTEXTREL(670,680,NUMTOSTRN( ZDLR,2)),colorred;DRAWTEXTREL(670,750,NUMTOSTRN(ZDLC,2) ),COLOR00FF00;DRAWTEXTREL(670,820,NUMTOSTRN(中净,2)),COLOR1199FF;DRAWTEXTREL(670,890,NUMTOSTRN(中户持仓,2)+'%'),COLOR00FFFF;DRAWTEXTREL(670,960,NUMTOSTRN(中增,2)+'%'),COLORFFFF00;DRAWTEXTREL(800,680,NUMTOSTRN( XDLR,2)),colorred;DRAWTEXTREL(800,750,NUMTOSTRN(XDLC,2) ),COLOR00FF00;DRAWTEXTREL(800,820,NUMTOSTRN(散净,2)),COLOR1199FF;DRAWTEXTREL(800,890,NUMTOSTRN(散户持仓,2)+'%'),COLOR00FFFF;DRAWTEXTREL(800,960,NUMTOSTRN(散增,2)+'%'),COLORFFFF00;【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)-指标公式效果图(文档来源:若水财经社区)第二篇:【股票指标公式下载】-【大智慧】后复权(后复权折合价) 【大智慧】后复权(后复权折合价)-指标公式源码VARIABLE:总除权比例=1;{请在不复权状态下使用} 每股派息:=IF(DIVIDBARS(0)=0,DIVIDEND(0),0);派息总量:=SUM(IF(BARPOS=1,0,每股派息),0);当天除权:=IF(SPLITBARS(0)=0,1,0);除权次数:=SUM(IF(BARPOS=1,0,当天除权),0);除权比例:=SPLIT(0);IF 除权次数<>REF(除权次数,1)THEN 总除权比例:=总除权比例*除权比例;后复权折合价:=(C+派息总量)/总除权比例;后复权折合价;DRAWTEXT(DIVIDBARS(0)=0,后复权折合价,'息'),COLORYELLOW;DRAWTEXT(SPLITBARS(0)=0,后复权折合价,'权'),COLORRED,VALIGN2;【大智慧】后复权(后复权折合价)-指标公式效果图(文档来源:若水财经社区)第三篇:大盘10日线操作股票法2010年5月20日重点谈大盘10日均线法大盘指数翻上10日均线,站稳之后再持股,翻下10日线就持币。
大智慧分时决策资金指标公式
大智慧分时决策资金指标公式2010-09-01 股旁网分类:大智慧公式标签: 资金分时决策A1:=(VOL/CLOSE)/3;A2:=SUM((IF(((A1>29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A3:=SUM((IF(((A1>29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A4:=SUM((IF(((A1<29) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0);A5:=SUM((IF(((A1<29) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0);A6:=((A2+A3)+A4)+A5;A7:=IF((DISPSTATUS=1),((100*A2)/A6),0);A8:=((IF((DISPSTATUS=1),((100*A3)/A6),0)));A9:=((IF((DISPSTATUS=1),((100*A4)/A6),0)));A10:=((IF((DISPSTATUS=1),((100*A5)/A6),0)));{股旁网-股票公式网站 }机构买盘:(A2),LINETHICK2,COLORFF55FF;机构卖盘:(A3),LINETHICK2,COLORFFFF55;散户买盘:(A4),COLOR5555FF;散户卖盘:(A5),COLOR55FF55;DRAWTEXT(DISPSTATUS=1,机构买盘,'机构买盘'),LINETHICK2,COLORFF55FF;DRAWTEXT(DISPSTATUS=1,机构卖盘,'机构卖盘'),LINETHICK2,COLORFFFF55;DRAWTEXT(DISPSTATUS=1,散户买盘,'散户买盘'),LINETHICK2,COLOR5555FF;DRAWTEXT(DISPSTATUS=1,散户卖盘,'散户卖盘'),LINETHICK2,COLOR55FF55;大智慧无量横盘分时指标公式2011-08-23 股旁网分类:大智慧公式标签: 横盘分时tt:=BARSCOUNT(C);均线:MEMA(C,55);上均:=C>均线 OR CROSS(C,均线);时长:=TIME>103000 AND TIME<144500;yy:=MEMA(vol/CAPITAL*100,60);横盘:=(HHV(均线,TT)/DYNAINFO(4))<=1.04;横涨:=横盘 and 时长 AND 上均 AND 均线>REF(HHV(均线,tt),3) AND yy>REF(HHV(yy,tt),3);大智慧横盘启动买点指标公式2011-09-06 股旁网分类:大智慧公式标签: 买点横盘LOWV:=LLV(LOW,15);HIGHV:=HHV(HIGH,15);HIGHVV:=HHV(HIGH,40);V0:=V;V1:=REF(V,1);V2:=REF(V,2);V3:=REF(V,3);HV22:=HHV(V,35);D0U:=C>O;D1U:=REF(C,1)>=REF(C,2);横盘:=((HIGHV-LOWV)/HIGHV)<0.15;放量1:=V0>=(1.8*((V1+V2+V3)/3));放量2:=V0<=(3.8*V1);今天阳线:=D0U;昨天阳线:=D1U;今天中阳:=(C-REF(C,1))/REF(C,1)>=0.018;开盘非最高价:=C<=HIGHVV;收盘非最高价:=O<=HIGHVV;非最大成交量:=V0<HV22;DRAWTEXTABS(5,5,'股旁网 '),linethick1,COLOR00EEff;横盘启动买点:横盘 AND 放量1 AND 放量2 AND 今天阳线 AND 昨天阳线 AND今天中阳 AND 开盘非最高价 AND 收盘非最高价 AND 非最大成交量;大智慧没见过这么准的主图指标公式2010-10-10 股旁网分类:大智慧公式标签: 主图买卖点N:=5;C增比:=C/REF(C,1);C均增比:=(C增比+REF(C增比,1)+REF(C增比,2)+REF(C增比,3)+REF(C增比,4))/5; YC:=C*C均增比;强弱:=COUNT(YC>REF(YC,1),10)/COUNT(YC<REF(YC,1),10);A:=EMA(EMA(EMA(EMA(强弱,2),2),2),2);B:=EMA(EMA(EMA(EMA(强弱,5),5),5),5);快线红:EMA(EMA(EMA(EMA(YC,2),2),2),2),COLORRED,LINETHICK2;慢线绿:EMA(EMA(EMA(EMA(YC,5),5),5),5),COLORGREEN,LINETHICK2;STICKLINE(快线红>慢线绿,快线红,慢线绿,1,0),COLORRED;STICKLINE(快线红<慢线绿,快线红,慢线绿,1,0),COLOR00CC00;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;STICKLINE(VAR19,L-0.03,L-0.03,15,0),LINETHICK3,COLORMAGENTA;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.001,H,15,0),COLOR00FF00{98FD};{股旁网-股票公式网站 }MTM:=C-REF(C,1);DX1:=100*EMA(EMA(MTM,N),N)/EMA(EMA(ABS(MTM),N),N);买1:=IF(LLV(DX1,2)=LLV(DX1,7) AND COUNT(DX1<0,2) AND CROSS(DX1,MA(DX1,2)),1,0);卖1:=IF(HHV(DX1,2)=HHV(DX1,7) AND COUNT(DX1>50,2) AND CROSS(MA(DX1,2),DX1),1,0);DRAWTEXT(filter(卖1=1,5),high*1.02, ' '),color00ff00,ALIGN1;DRAWTEXT(filter(买1=1,5),low*0.99, ' '),colorRED,ALIGN1;DRAWICON(filter(买1=1,5),low*0.99,7),ALIGN1;DRAWICON(filter(卖1=1,5),high*1.04, 8),ALIGN1;大智慧T+0分时指标公式2011-06-28 股旁网分类:大智慧公式标签: 分时t+0MA30:=EMA(CLOSE,30);强弱:EMA(CLOSE,900);STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;DRAWTEXTABS(5,5,'股旁网 '),linethick1,COLOR00EEff;H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLOR00DD00;支撑:L1+P1*0.5/8,COLOR00DD00;现价:CLOSE,COLORWHITE,LINETHICK1;STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};大智慧大小黑马全拿下公式2010-05-27 股旁网分类:大智慧公式标签: 黑马input: n(5,0,999,1),n1(10,0,999,1),n2(20,0,999,1),n3(30,0,999,1); A74:=MA(CLOSE,20);A75:=(CLOSE > MA(CLOSE,5));A76:=(MA(CLOSE,5) > MA(CLOSE,10));A77:=(CLOSE > MA(CLOSE,10));A78:=(MA(CLOSE,5) > MA(CLOSE,20));A79:=(CLOSE > MA(CLOSE,20));A710:=REF(A74,1);A711:=(A74 > A710);AVX:=(((((IF(A75,10,(0 - 10)) + IF(A76,10,(0 - 10))) + IF(A77,10,(0 - 10))) + IF(A78,10,(0 - 10))) + IF(A79,10,(0 - 10))) + IF(A711,10,(0 - 10)));DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;T := BARSLAST(DISPSTATUS=1)+1;HHg := HHV(H, T);ddg := LLV(L, T);{Hk := LL-HH; G12 := LL-HK*1.55; }IF BARSTATUS=2 and c<200 and ((CROSS(AVX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THEN DRAWTEXTABS(12,70,'该股的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
大智慧量化公式
大智慧量化公式
以下是大智慧股票指标公式:
1. 做空95:HHV((HIGH+LOW+OPEN+2CLOSE)/5+H-L,5),颜色为蓝色。
2. 做空68:HHV((HIGH+LOW+OPEN+2CLOSE)/52-L,5),颜色为红色。
3. 平衡点:LLV((HIGH+LOW+OPEN+2CLOSE)/5,3),颜色为灰色,DOTLINE。
4. 做多68:LLV((HIGH+LOW+OPEN+2CLOSE)/52-H,8),颜色为绿色。
5. 做多95:LLV((HIGH+LOW+OPEN+2CLOSE)/5-H+L,8),颜色为浅绿色。
6. F:=100(C-REF(C,1))/REF(C,1),表示当前收盘价与前一日收盘价的差值
占前一日收盘价的百分比。
7. 今小昨:IF(C<REF(O,1) AND f<0,1,0),表示当前收盘价小于前一日开
盘价且当前差值小于0时为1,否则为0。
8. 今小前:IF(C<REF(O,2) AND f<0,1,0),表示当前收盘价小于前两日开
盘价且当前差值小于0时为1,否则为0。
9. 真实波动范围(TR)的计算公式为TR=Max(H-L,H-PDC,PDC-L),其中
H表示当日的最高价,L表示当日的最低价,PDC表示前一日的收盘价。
以上是大智慧股票指标公式的部分示例,如需更多信息,建议查阅大智慧股票软件官网或咨询专业金融分析师。
大智慧决策系统主图指标公式源码编程思路破译
大智慧决策系统主图指标公式源码编程思路破译编程思路破译MA20赋值:收盘价的20日简单移动平均MA120赋值:收盘价的120日简单移动平均MA30赋值:收盘价的37日简单移动平均MAP赋值:收盘价的8日简单移动平均AA5赋值:收盘价的21日简单移动平均输出AA10:收盘价的8日简单移动平均,COLOR0000FF输出AA12:收盘价的12日简单移动平均,COLOR0000FFBB10赋值:(((AA10-1日前的AA10)的反正切 * 3.1416) * 10)BB12赋值:(((AA12-1日前的AA12)的反正切 * 3.1416) * 10)MA13赋值:收盘价的13日简单移动平均VAR1Q赋值:((((开盘价 + 最低价) + 最高价) + 收盘价) / 4)输出中期大底:30日内最低价的最低值,COLORCDFFBB短底赋值:VAR1Q的5日指数移动平均支撑赋值:60日内短底的最高值输出压力一:20日内最低价的最高值,COLORFAABEC压力赋值:最低价的5日[1日权重]移动平均中线赋值:收盘价的3日简单移动平均当满足条件((((最高价>支撑)AND(收盘价<支撑))AND((收盘价/开盘价)>(0-1.06)))AND(收阴线))的5日过滤时,在(最高价+0.02)位置书写文字,COLOR00FFFF中轨道赋值:(最高价的15日简单移动平均 * 1.05)天赋值:(最低价的15日简单移动平均 * 0.985)人赋值:(最低价的15日简单移动平均 * 0.96)地赋值:(((最高价 + 最低价) + 收盘价) / 3)B1赋值:(4*15)日内陆的最高值B6赋值:(4*15)日内陆的最低值B7赋值:(B1 - B6)B8赋值:(((地-B6)/B7)的2日简单移动平均 * 80)VAR1赋值:(((收盘价 - 100日内最低价的最低值) / (100日内最高价的最高值 - 100日内最低价的最低值)) * 200)飞龙顶底线赋值:VAR1的3日[1日权重]移动平均VAR2赋值:飞龙顶底线的3日[1日权重]移动平均VAR3赋值:((3 * 飞龙顶底线) - (2 * VAR2))VAR4赋值:5日内最低价的最低值VAR5赋值:5日内最高价的最高值VAR6赋值:((((收盘价-VAR4)/(VAR5-VAR4))*100)的4日指数移动平均 * 2)VAR7赋值:((0.667*1日前的VAR6)+(0.333*VAR6))的2日指数移动平均VAR8赋值:((3 * VAR6) - (2 * VAR7))VAR9赋值:(收盘价的5日简单移动平均的2乘幂 + 收盘价的5日简单移动平均)VARA赋值:(最低价的5日简单移动平均的2乘幂 + 最低价的5日简单移动平均)VARB赋值:(最高价的5日简单移动平均的2乘幂 + 最高价的5日简单移动平均)VARC赋值:(((((VAR9 - 64日内VARA的最低值) / (64日内VARB 的最高值 - 64日内VARA的最低值)) * 150) + 65) - 10) VARD赋值:((VARC的3日[1日权重]移动平均 * 1.5) - 100)VARE赋值:VARD的3日[1日权重]移动平均VARF赋值:((3 * VARD) - (2 * VARE))VAR10赋值:(((最高价 + 最低价) + (收盘价 * 2)) / 4)VAR11赋值:VAR10的13日指数移动平均VAR12赋值:VAR10的13日估算标准差VAR13赋值:(((VAR10 - VAR11) * 100) / VAR12)VAR14赋值:VAR13的5日指数移动平均VAR15赋值:VAR14的13日指数移动平均VAR16赋值:((VAR14的13日指数移动平均 + 200) - 100)VAR17赋值:VAR16的10日指数移动平均VAR18赋值:((3 * VAR16) - (2 * VAR17))VAR19赋值:(((飞龙顶底线 + VAR6) + VARD) + VAR16)VAR1A赋值:(((VAR2 + VAR7) + VARE) + VAR17)VAR1B赋值:(((VAR3 + VAR8) + VARF) + VAR18)VAR1C赋值:(((最高价 + 最低价) + 收盘价) / 3)VAR1D赋值:((成交额(元) / 成交量(手)) / 100)VAR1E赋值:((成交额(元)的5日累和/ 成交量(手)的5日累和) / 100)VAR1F赋值:((VAR1C - VAR1C的34日简单移动平均) / (0.015 * VAR1C的34日平均绝对偏差))VAR20赋值:以(成交量(手)/当前流通股本(手))为权重((成交额(元)/成交量(手))/100)的动态移动平均VAR21赋值:((((最高价 + 最低价) + 收盘价) + VAR1C) / 4)VAR22赋值:VAR21的24日指数移动平均VAR23赋值:VAR21的24日估算标准差VAR24赋值:(((VAR21 - VAR22) / VAR23) * 100)VAR25赋值:((VAR1C - VAR1C的24日简单移动平均) / (0.015 * VAR1C的24日平均绝对偏差))VAR26赋值:VAR24的5日指数移动平均VAR27赋值:((VAR1D - VAR1D的21日简单移动平均) / (0.015 * VAR1D的21日平均绝对偏差))VAR28赋值:((VAR1E - VAR1E的90日简单移动平均) / (0.015 * VAR1E的90日平均绝对偏差))VAR29赋值:(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4)VAR2A赋值:(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15)VAR2B赋值:(((VAR29 + VAR2A) / 2) / 1.1)VAR2C赋值:VAR2B短线赋值:VAR2C的26日简单移动平均MID赋值:(短线 + (2 * VAR2C的26日估算标准差))UPPER赋值:(短线 - (2 * VAR2C的26日估算标准差))LOWER赋值:如果(VAR2C>短线),返回短线,否则返回VAR2CXY赋值:收盘价的5日简单移动平均MA5赋值:收盘价的80日简单移动平均输出短期底部:(30日内最高价的最低值 * 0.93),COLOR0000FF MA80赋值:30日内最高价的最低值短期底部二赋值:收盘价的2日[1日权重]移动平均趋势赋值:(最低价的10日简单移动平均 * 0.96)趋赋值:(开盘价的107日指数移动平均 * 0.897)超跌位二赋值:收盘价的15日简单移动平均GF赋值:收盘价的10日简单移动平均MAN赋值:(最高价的21日[2日权重]移动平均 * 1.05)上一赋值:(60日内短底的最高值 * 0.92)压力二赋值:(最高价的21日[2日权重]移动平均 * 1.035)阻挡线赋值:(最低价的21日[2日权重]移动平均 * 0.96)下档线赋值:(((收盘价 - 13日内最低价的最低值) / (13日内最高价的最高值 - 13日内最低价的最低值)) * 100)RSV赋值:下档线的3日[1日权重]移动平均K赋值:RSV的3日[1日权重]移动平均D赋值:((3 * RSV) - (2 * K))J赋值:(((收盘价 - 收盘价的6日简单移动平均) / 收盘价的6日简单移动平均) * 100)VAR2P赋值:(((收盘价 - 收盘价的12日简单移动平均) / 收盘价的12日简单移动平均) * 100)VAR3P赋值:(((收盘价 - 收盘价的24日简单移动平均) / 收盘价的24日简单移动平均) * 100)VAR4P赋值:(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6)VAR5P赋值:VAR4P的3日简单移动平均VAR6P赋值:(((收盘价- 34日内最低价的最低值) / (34日内最高价的最高值 - 34日内最低价的最低值)) * 100)RSV12赋值:VAR6P的3日[1日权重]移动平均K12赋值:RSV12的3日[1日权重]移动平均D12赋值:((3 * RSV12) - (2 * K12))J12赋值:(((收盘价 - 55日内最低价的最低值) / (55日内最高价的最高值 - 55日内最低价的最低值)) * 100)RSV24赋值:J12的3日[1日权重]移动平均K24赋值:RSV24的3日[1日权重]移动平均D24赋值:((3 * RSV24) - (2 * K24))输出压力位:如果D24上穿D,返回最高价,否则返回最低价,POINTDOT,COLORFFFFFF支撑位赋值:如果(收盘价>=收盘价的20日简单移动平均),返回80,否则返回50U2L赋值:如果(收盘价>=收盘价的20日简单移动平均),返回50,否则返回20输出长期底部:30日内最高价的最低值,COLOR00FF00RL5赋值:(最高价的5日[2日权重]移动平均 * 1.05)上赋值:(最低价的5日[2日权重]移动平均 * 0.96)下赋值:最低价的2日[1日权重]移动平均中赋值:(((((3 * 收盘价) + 最高价) + 最低价) + 开盘价) / 6)X1赋值:中的10日指数移动平均X2赋值:1日前的X1X3赋值:((1日前的最高价 + 1日前的最低价) / 2)X4赋值:(收盘价的21日简单移动平均 + (2 * 收盘价的21日估算标准差))X5赋值:1日前的收盘价X6赋值:(((收盘价-X5)和0的较大值的7日[1日权重]移动平均/ (收盘价-X5)的绝对值的7日[1日权重]移动平均) * 100)X7赋值:79上穿X6X8赋值:X7的4日过滤X9赋值:收盘价的115日简单移动平均VAR1M赋值:收盘价的8日指数移动平均飞龙顶底线一赋值:VAR1M的20日指数移动平均VAR2M赋值:VAR1M上穿飞龙顶底线一VAR3M赋值:(VAR1M < 收盘价的20日简单移动平均)VAR4M赋值:(((36日内最高价的最高值 - 收盘价) / (36日内最高价的最高值 - 36日内最低价的最低值)) * 100)VAR5M赋值:VAR4M的5日[1日权重]移动平均VAR6M赋值:VAR5M的8日[1日权重]移动平均VAR7M赋值:(VAR5M上穿VAR6M AND (VAR6M < 5))VAR8M赋值:((收盘价 > (60日内收盘价的最低值 + (0.3 * 60日内收盘价的最低值))) AND VAR7M)VAR9M赋值:如果(收盘价>1000),返回VAR7M,否则返回VAR8M VARFM赋值:X1上穿X2MA115赋值:VARFM低买赋值:(VAR2M AND VAR3M)黑马起步赋值:VAR9M当满足条件X8时,在(最高价*1.03)位置书写文字,COLOR9000F5 当满足条件(黑马起步>0)时,在(最高价*1.04)位置书写文字,COLOR0000FF逃遁赋值:(最高价的21日[2日权重]移动平均 * 1.05)当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLORFF5B00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLORFF6C00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为7,0不为0则画空心柱.,COLORFF7B00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORFF9C00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLORFFBE00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为3.5,0不为0则画空心柱.,COLORFFCC00当满足条件(开盘价>=收盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLORFFFF00当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLOR070084当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR0000A3当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为7,0不为0则画空心柱.,COLOR0000B7当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR0000CD当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR0000E9当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0754E9当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR076EF3当满足条件(收盘价>=开盘价)时,在收盘价和开盘价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR077BF3当满足条件(收阳线)时,在开盘价和最低价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0726CA当满足条件(收阳线)时,在收盘价和最高价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLOR0726CA当满足条件(收阴线)时,在收盘价和最低价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORDE9100当满足条件(收阴线)时,在开盘价和最高价位置之间画柱状线,宽度为1,0不为0则画空心柱.,COLORDE9100当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLOR0090FF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为8,0不为0则画空心柱.,COLOR009FFF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR00B5FF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLOR00E4FF当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在开盘价和最低价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLOR00FFFF 当满足条件((((收盘价/开盘价)>1.04)AND(收盘价<逃遁))AND((收盘价-1日前的收盘价)>0))时,在收盘价和最高价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLOR00FFFF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在开盘价和最低价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLORFF76FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和最高价位置之间画柱状线,宽度为0.7,0不为0则画空心柱.,COLORFF76FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为9,0不为0则画空心柱.,COLORFF00FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLORFF62FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF76FF 当满足条件((((收盘价<1日前的收盘价)AND(收盘价<1日前的收盘价))AND(最高价>逃遁))AND(收盘价<逃遁))时,在收盘价和开盘价位置之间画柱状线,宽度为2,0不为0则画空心柱.,COLORFFA8FF 当满足条件((((0日内最低价的最低值AND((MA30-1日前的MA30)>0))AND(最低价<=短期底部))AND(以收盘价计算的获利盘比例<0.05))AND((收盘价/开盘价)>0.13))的7日过滤时,在(最低价-0.09)位置书写文字,COLOR00B2FF阻挡赋值:(最低价的21日[2日权重]移动平均 * 0.94)当满足条件((((((((收盘价/开盘价)>1.03)AND((超跌位二-1日前的超跌位二)>0))AND((收盘价-1日前的收盘价)>0))AND(最高价<压力一))AND(收盘价<压力一))AND((压力二-1日前的压力二)>0))的?日过滤时,在ND(收盘价<MAN)),3)位置书写文字,COLORD4DEE9 当满足条件(((((低买>0)AND((X1-1日前的X1)>0))AND(最高价<压力位))AND(最高价<X9))AND((X2-1日前的X2)>0))时,在最低价位置书写文字,COLOR00FF00当满足条件(((((VAR2C上穿短线AND((收盘价-1日前的最高价)>0))AND((中线-1日前的中线)>0))AND(最高价<=压力一))AND(收盘价<MA20))AND(最低价<=中线))时,在(最低价-0.06)位置书写文字,COLOR00FF00当满足条件(((VAR2C上穿UPPERAND(最高价<压力一))AND((XY-1日前的XY)>0))AND(最高价<支撑))时,在最低价位置书写文字,COLORFFFFFF当满足条件((((((最低价<=天)AND(收盘价>=MA20))AND(最高价<压力一))AND((天-1日前的天)>0))AND(收盘价<压力一))AND((MA20-1日前的MA20)>0))的6日过滤时,在(最低价-0.12)位置书写文字,COLORFFFFFF当满足条件(((((MA115AND(收盘价<压力位))AND((人-1日前的人)>0))AND((X1-1日前的X1)>0))AND(最高价<上一))AND((收盘价/开盘价)>1.03))的5日过滤时,在最低价位置书写文字,COLOR93EE7D 当满足条件((((最低价<=上)AND(最高价>=短期底部))AND(收盘价>=长期底部))AND((收盘价/开盘价)>1.03))时,在(最低价-0.08)位置书写文字,COLOR0000FF当满足条件(((((最低价<=阻挡线)AND((MA20-1日前的MA20)>0))AND(开盘价<=上一))AND(最高价>上一))AND(收盘价>阻挡线))的5日过滤时,在最低价位置书写文字,COLORFFFFFF 当满足条件((压力上穿阻挡AND(以收盘价计算的获利盘比例<=0.17))AND((X1-1日前的X1)>0))时,在(最低价-0.08)位置书写文字,COLOR00FFFF当满足条件(((((B8<=1)AND(最低价<=阻挡))AND(收阳线))AND(最低价<=中期大底))AND(收盘价>=长期底部))的3日过滤时,在(最低价-0.08)位置书写文字,COLORA100FF当满足条件(((D上穿0AND(最高价<压力位))AND(VAR5P<=(0-7)))AND(收盘价<XY))时,在(最低价-0.11)位置书写文字,COLOR00FFFF当满足条件(((趋势上穿趋AND(最高价<MA5))AND(最高价<压力一))ANDLLV(最低价,0))的10日过滤时,在最低价位置书写文字,COLOR00FFFF当满足条件((中线上穿人AND(最低价<=人))AND(收盘价>=人))的4日过滤时,在(最低价-0.06)位置书写文字,COLOR00FF00 当满足条件((阻挡上穿长期底部AND(BB10>1))AND(最高价<支撑))时,在最低价位置书写文字,COLOR00FF00当满足条件(((((((MA20-1日前的MA20)>0)AND(最高价<支撑))AND((AA10-1日前的AA10)>0))AND(最高价<压力一))AND(成交量(手)>=1日前的成交量(手)))ANDCROSS(收盘价,MA20))的57日过滤时,在最低价位置书写文字,COLOR0000FF当满足条件((((最低价<=MA80)AND(收盘价>MA80))AND(收阳线))AND(短期底部二<=MA80))的8日过滤时,在最低价位置书写文字,COLOR00FFFF当满足条件((MA20上穿压力位AND(最低价<=MA20))AND((MA20-1日前的MA20)>0.02))时,在(最低价-0.03)位置书写文字,COLORFFF0FF当满足条件(((((((收盘价上穿MA20AND(最高价<压力位))AND(开盘价<MA20))AND(最高价<支撑))AND((MAN-1日前的MAN)>0))AND((X1-1日前的X1)>0))AND(D<63))AND((MA20-1日前的MA20)>0))时,在(最低价-0.05)位置书写文字,COLORD3E7FF 当满足条件中期大底上穿短期底部时,在(最低价-0.02)位置书写文字程序源码MA20:=MA(CLOSE,20);MA120:=MA(CLOSE,120);MA30:=MA(CLOSE,37);MAP:=MA(CLOSE,8);AA5:=MA(CLOSE,21);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);VAR1Q:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);中期大底:LLV(LOW,30),COLORCDFFBB;短底:=EMA(VAR1Q,5);支撑:=HHV(短底,60);压力一:HHV(LOW,20),COLORFAABEC;压力:=SMA(LOW,5,1);中线:=MA(CLOSE,3);DRAWTEXT(FILTER(((((HIGH > 支撑) AND (CLOSE < 支撑))AND ((CLOSE / OPEN) > (0 - 1.06))) AND (CLOSE < OPEN)),5),(HIGH + 0.02),'←逃'),COLOR00FFFF;中轨道:=(MA(HIGH,15) * 1.05);天:=(MA(LOW,15) * 0.985);人:=(MA(LOW,15) * 0.96);地:=(((HIGH + LOW) + CLOSE) / 3);B1:=HHV(地,(4 * 15));B6:=LLV(地,(4 * 15));B7:=(B1 - B6);B8:=(MA(((地 - B6) / B7),2) * 80);VAR1:=(((CLOSE - LLV(LOW,100)) / (HHV(HIGH,100) - LLV(LOW,100))) * 200);飞龙顶底线:=SMA(VAR1,3,1);VAR2:=SMA(飞龙顶底线,3,1);VAR3:=((3 * 飞龙顶底线) - (2 * VAR2));VAR4:=LLV(LOW,5);VAR5:=HHV(HIGH,5);VAR6:=(EMA((((CLOSE - VAR4) / (VAR5 - VAR4)) * 100),4) * 2);VAR7:=EMA(((0.667 * REF(VAR6,1)) + (0.333 * VAR6)),2);VAR8:=((3 * VAR6) - (2 * VAR7));VAR9:=(POW(MA(CLOSE,5),2) + MA(CLOSE,5));VARA:=(POW(MA(LOW,5),2) + MA(LOW,5));VARB:=(POW(MA(HIGH,5),2) + MA(HIGH,5));VARC:=(((((VAR9 - LLV(VARA,64)) / (HHV(VARB,64) - LLV(VARA,64))) * 150) + 65) - 10);VARD:=((SMA(VARC,3,1) * 1.5) - 100);VARE:=SMA(VARD,3,1);VARF:=((3 * VARD) - (2 * VARE));VAR10:=(((HIGH + LOW) + (CLOSE * 2)) / 4);VAR11:=EMA(VAR10,13);VAR12:=STD(VAR10,13);VAR13:=(((VAR10 - VAR11) * 100) / VAR12);VAR14:=EMA(VAR13,5);VAR15:=EMA(VAR14,13);VAR16:=((EMA(VAR14,13) + 200) - 100);VAR17:=EMA(VAR16,10);VAR18:=((3 * VAR16) - (2 * VAR17));VAR19:=(((飞龙顶底线 + VAR6) + VARD) + VAR16);VAR1A:=(((VAR2 + VAR7) + VARE) + VAR17);VAR1B:=(((VAR3 + VAR8) + VARF) + VAR18);VAR1C:=(((HIGH + LOW) + CLOSE) / 3);VAR1D:=((AMOUNT / VOL) / 100);VAR1E:=((SUM(AMOUNT,5) / SUM(VOL,5)) / 100);VAR1F:=((VAR1C - MA(VAR1C,34)) / (0.015 * AVEDEV(VAR1C,34)));VAR20:=DMA(((AMOUNT / VOL) / 100),(VOL / CAPITAL));VAR21:=((((HIGH + LOW) + CLOSE) + VAR1C) / 4);VAR22:=EMA(VAR21,24);VAR23:=STD(VAR21,24);VAR24:=(((VAR21 - VAR22) / VAR23) * 100);VAR25:=((VAR1C - MA(VAR1C,24)) / (0.015 * AVEDEV(VAR1C,24)));VAR26:=EMA(VAR24,5);VAR27:=((VAR1D - MA(VAR1D,21)) / (0.015 * AVEDEV(VAR1D,21)));VAR28:=((VAR1E - MA(VAR1E,90)) / (0.015 * AVEDEV(VAR1E,90)));VAR29:=(((((((VAR28 + VAR27) + VAR26) + VAR25) + VAR1F) / 5) + 165) / 4);VAR2A:=(((((VAR19 + VAR1A) + (VAR1B * 30)) / 32) / 5) - 15);VAR2B:=(((VAR29 + VAR2A) / 2) / 1.1);VAR2C:=VAR2B;短线:=MA(VAR2C,26);MID:=(短线 + (2 * STD(VAR2C,26)));UPPER:=(短线 - (2 * STD(VAR2C,26)));LOWER:=IF((VAR2C > 短线),短线,VAR2C);XY:=MA(CLOSE,5);MA5:=MA(CLOSE,80);短期底部:(LLV(HIGH,30) * 0.93),COLOR0000FF;MA80:=LLV(HIGH,30);短期底部二:=SMA(CLOSE,2,1);趋势:=(MA(LOW,10) * 0.96);趋:=(EMA(OPEN,107) * 0.897);超跌位二:=MA(CLOSE,15);GF:=MA(CLOSE,10);MAN:=(SMA(HIGH,21,2) * 1.05);上一:=(HHV(短底,60) * 0.92);压力二:=(SMA(HIGH,21,2) * 1.035);阻挡线:=(SMA(LOW,21,2) * 0.96);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR2P:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR3P:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR4P:=(((J + (2 * VAR2P)) + (3 * VAR3P)) / 6);VAR5P:=MA(VAR4P,3);VAR6P:=(((CLOSE - LLV(LOW,34)) / (HHV(HIGH,34) -LLV(LOW,34))) * 100);RSV12:=SMA(VAR6P,3,1);K12:=SMA(RSV12,3,1);D12:=((3 * RSV12) - (2 * K12));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力位:IF(CROSS(D24,D),HIGH,L),POINTDOT,COLORFFFFFF;支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);长期底部:LLV(HIGH,30),COLOR00FF00;RL5:=(SMA(HIGH,5,2) * 1.05);上:=(SMA(LOW,5,2) * 0.96);下:=SMA(LOW,2,1);中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1:=EMA(中,10);X2:=REF(X1,1);X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));X5:=REF(CLOSE,1);X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);X7:=CROSS(79,X6);X8:=FILTER(X7,4);X9:=MA(CLOSE,115);VAR1M:=EMA(CLOSE,8);飞龙顶底线一:=EMA(VAR1M,20);VAR2M:=CROSS(VAR1M,飞龙顶底线一);VAR3M:=(VAR1M < MA(CLOSE,20));VAR4M:=(((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36))) * 100);VAR5M:=SMA(VAR4M,5,1);VAR6M:=SMA(VAR5M,8,1);VAR7M:=(CROSS(VAR5M,VAR6M) AND (VAR6M < 5));VAR8M:=((CLOSE > (LLV(CLOSE,60) + (0.3 * LLV(CLOSE,60)))) AND VAR7M);VAR9M:=IF((CLOSE > 1000),VAR7M,VAR8M);VARFM:=CROSS(X1,X2);MA115:=VARFM;低买:=(VAR2M AND VAR3M);黑马起步:=VAR9M;DRAWTEXT(X8,(HIGH * 1.03),'←出货'),COLOR9000F5;DRAWTEXT((黑马起步> 0),(HIGH * 1.04),'←逃命'),COLOR0000FF;逃遁:=(SMA(HIGH,21,2) * 1.05);STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,9,0),COLORFF5B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8,0),COLORFF6C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLORFF7B00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLORFF9C00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFFBE00;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3.5,0),COLORFFCC00;STICKLINE((OPEN >=CLOSE),CLOSE,OPEN,1.5,0),COLORFFFF00;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,9,0),COLOR070084;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,8,0),COLOR0000A3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,7,0),COLOR0000B7;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,6,0),COLOR0000CD;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,5,0),COLOR0000E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,3,0),COLOR0754E9;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1.5,0),COLOR076EF3;STICKLINE((CLOSE >= OPEN),CLOSE,OPEN,1,0),COLOR077BF3;STICKLINE((CLOSE > OPEN),OPEN,LOW,1,0),COLOR0726CA;STICKLINE((CLOSE > OPEN),CLOSE,HIGH,1,0),COLOR0726CA;STICKLINE((OPEN > CLOSE),CLOSE,LOW,1,0),COLORDE9100;STICKLINE((OPEN > CLOSE),OPEN,HIGH,1,0),COLORDE9100;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,9,0),COLOR0090FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,8,0),COLOR009FFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,4,0),COLOR00B5FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),COLOR00E4FF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),OPEN,LOW,0.7,0),COLOR00FFFF;STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,HIGH,0.7,0),COLOR00FFFF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),OPEN,LOW,0.7,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,HIGH,0.7,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,9,0),COLORFF00FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,6,0),COLORFF62FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,4,0),COLORFF76FF;STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,2,0),COLORFFA8FF;DRAWTEXT(FILTER(((((LLV(LOW,0) AND ((MA30 - REF(MA30,1)) > 0)) AND (LOW <= 短期底部)) AND (WINNER(CLOSE) < 0.05)) AND ((CLOSE / OPEN) > 0.13)),7),(LOW- 0.09),'●见底'),COLOR00B2FF;阻挡:=(SMA(LOW,21,2) * 0.94);DRAWTEXT(FILTER(((((((((CLOSE / OPEN) > 1.03) AND ((超跌位二 - REF(超跌位二,1)) > 0)) AND ((CLOSE - REF(CLOSE,1)) > 0)) AND (HIGH < 压力一)) AND (CLOSE < 压力一)) AND ((压力二- REF(压力二,1)) > 0)) AND (CLOSE < MAN)),3),LOW,'←出击'),COLORD4DEE9;DRAWTEXT((((((低买> 0) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 压力位)) AND (HIGH < X9)) AND ((X2 - REF(X2,1)) > 0)),LOW,'←黑马'),COLOR00FF00;DRAWTEXT((((((CROSS(VAR2C,短线) AND ((CLOSE - REF(HIGH,1)) > 0)) AND ((中线 - REF(中线,1)) > 0)) AND (HIGH <= 压力一)) AND (CLOSE < MA20)) AND (LOW <= 中线)),(LOW - 0.06),'←关注'),COLOR00FF00;DRAWTEXT((((CROSS(VAR2C,UPPER) AND (HIGH < 压力一)) AND ((XY - REF(XY,1)) > 0)) AND (HIGH < 支撑)),LOW,'←买'),COLORFFFFFF;DRAWTEXT(FILTER(((((((LOW <= 天) AND (CLOSE >= MA20)) AND (HIGH < 压力一)) AND ((天 - REF(天,1)) > 0)) AND (CLOSE < 压力一)) AND ((MA20 - REF(MA20,1)) > 0)),6),(LOW - 0.12),'←全仓'),COLORFFFFFF;DRAWTEXT(FILTER((((((MA115 AND (CLOSE < 压力位)) AND ((人 - REF(人,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (HIGH < 上一)) AND ((CLOSE / OPEN) > 1.03)),5),LOW,'●买'),COLOR93EE7D;DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底部)) AND (CLOSE >= 长期底部)) AND ((CLOSE / OPEN) > 1.03)),(LOW - 0.08),'★抄底'),COLOR0000FF;DRAWTEXT(FILTER((((((LOW <= 阻挡线) AND ((MA20 - REF(MA20,1)) > 0)) AND (OPEN <= 上一)) AND (HIGH > 上一)) AND (CLOSE > 阻挡线)),5),LOW,'←涨10%'),COLORFFFFFF;DRAWTEXT(((CROSS(压力,阻挡) AND (WINNER(CLOSE) <= 0.17)) AND ((X1 - REF(X1,1)) > 0)),(LOW - 0.08),'←大胆买'),COLOR00FFFF;DRAWTEXT(FILTER((((((B8 <= 1) AND (LOW <= 阻挡)) AND (CLOSE > OPEN)) AND (LOW <= 中期大底)) AND (CLOSE >= 长期底部)),3),(LOW - 0.08),'←短抄E'),COLORA100FF;DRAWTEXT((((CROSS(D,0) AND (HIGH < 压力位)) AND (VAR5P <= (0 - 7))) AND (CLOSE < XY)),(LOW - 0.11),'←半仓'),COLOR00FFFF;DRAWTEXT(FILTER((((CROSS(趋势,趋) AND (HIGH < MA5)) AND (HIGH < 压力一)) AND LLV(LOW,0)),10),LOW,'←果断买'),COLOR00FFFF;DRAWTEXT(FILTER(((CROSS(中线,人) AND (LOW <= 人)) AND (CLOSE >= 人)),4),(LOW - 0.06),'←买'),COLOR00FF00;DRAWTEXT(((CROSS(阻挡,长期底部) AND (BB10 > 1)) AND (HIGH < 支撑)),LOW,'←出击'),COLOR00FF00;DRAWTEXT(FILTER((((((((MA20 - REF(MA20,1)) > 0) AND (HIGH < 支撑)) AND ((AA10 - REF(AA10,1)) > 0)) AND (HIGH < 压力一)) AND (VOL >= REF(VOL,1))) AND CROSS(CLOSE,MA20)),57),LOW,'突破生命线'),COLOR0000FF;DRAWTEXT(FILTER(((((LOW <= MA80) AND (CLOSE > MA80)) AND (CLOSE > OPEN)) AND (短期底部二<= MA80)),8),LOW,'←底'),COLOR00FFFF;DRAWTEXT(((CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 - REF(MA20,1)) > 0.02)),(LOW - 0.03),'●绝佳买点'),COLORFFF0FF;DRAWTEXT((((((((CROSS(CLOSE,MA20) AND (HIGH < 压力位)) AND (OPEN < MA20)) AND (HIGH < 支撑)) AND ((MAN - REF(MAN,1)) > 0)) AND ((X1 - REF(X1,1)) > 0)) AND (D < 63)) AND ((MA20 - REF(MA20,1)) > 0)),(LOW - 0.05),'●大牛浮水'),COLORD3E7FF;DRAWTEXT(CROSS(中期大底,短期底部),(LOW - 0.02),'←短线买');该公式包含未来函数:WINNER未发现:LWINNER...未发现:PWINNER...未发现:COST...该公式包含未来函数:CAPITAL。
【股票指标公式下载】-【大智慧】BS操盘(买线、卖线、指导线)
【大智慧】BS操盘(买线、卖线、指导线)-指标公式源码DRAWGBK(DATE>900101,STRIP(RGB(0,150,130),RGB(0,0,0),0));买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=cross(买线,卖线);SEL:=cross(卖线,买线);drawtext(bu,LOW,'B'),ALIGN1,VALIGN0,colorred,linethick3; DRAWTEXT(bu,LOW,' ̄'),ALIGN1,VALIGN0,Color208FFF,LINETHICK3; DRAWTEXT(sel,HIGH,' ̄'),ALIGN1,VALIGN0,ColorFFFF00,LINETHICK3; drawtext(sel,HIGH,'S'),ALIGN1,VALIGN2,colorgreen,linethick3; stickline(买线>=卖线,low,high,0.1,1),colorred;stickline(买线>=卖线,close,open,8,1),colorred;stickline(买线<卖线,close,open,8,0),color00ff00;stickline(买线<卖线,low,high,0.1,1),color00ff00;stickline(cross(买线,卖线) or cross(卖线,买线),open,close,6,0),colorffff00;指导线:EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),line thick1,ColorFFffFF;界: MA(CLOSE,27),linethick1,Color00FFFF;DRAWTEXT(cross(指导线,界),界,'上破'),ALIGN1,VALIGN2,Colorffffff; DRAWTEXT(cross(指导线,界),界,' ̄ ̄'),ALIGN1,VALIGN0,Colorffffff; DRAWTEXT(cross(界,指导线),界,'下破'),ALIGN1,Color00ffff; DRAWTEXT(cross(界,指导线),界,' ̄ ̄'),ALIGN1,Color00ffff;上限: 界+3*STD(CLOSE,27),linethick1,Color00FFFF;卖: 界+2*STD(CLOSE,27),linethick1,ColorFF00FF;买: 界-2*STD(CLOSE,27),linethick1,ColorF0FF00;下限: 界-2.9*STD(close,27),linethick1,Color00FF00;DRAWTEXT(cross(H,上限),H,'获利'),ALIGN1,VALIGN2,Color00ffff; DRAWTEXT(cross(H,上限),H,' ̄ ̄'),ALIGN1,VALIGN0,Color00ffff; DRAWTEXT(cross(上限,H),H,'&利'),ALIGN1,VALIGN2,Color00ffff; DRAWTEXT(cross(上限,H),H,' ̄ ̄'),ALIGN1,VALIGN0,Color00ffff; DRAWTEXT(cross(H,卖),H,'获利'),ALIGN1,VALIGN2,Colorff00ff;DRAWTEXT(cross(H,卖),H,' ̄ ̄'),ALIGN1,VALIGN0,Colorff00ff; DRAWTEXT(cross(C,卖),H,'获利'),ALIGN1,VALIGN2,Colorff0000; DRAWTEXT(cross(C,卖),H,' ̄ ̄'),ALIGN1,VALIGN0,Colorff0000; DRAWTEXT(cross(下限,L),l,'观'),ALIGN1,VALIGN0,Color00ff00; DRAWTEXT(cross(下限,L),l,' ̄ ̄'),ALIGN1,VALIGN0,Color00ff00; DRAWTEXT(cross(买,L),l,'◎'),ALIGN1,VALIGN0,Colorff0000; DRAWTEXT(cross(买,L),l,' ̄ ̄'),ALIGN1,VALIGN0,Colorff0000; DRAWTEXT(cross(买,C),L,'◎'),ALIGN1,VALIGN0,Colorff0000; DRAWTEXT(cross(买,C),L,' ̄ ̄'),ALIGN1,VALIGN0,Colorff0000;【大智慧】BS操盘(买线、卖线、指导线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】BS顶底(买点、卖点)
【大智慧】BS顶底(买点、卖点)-指标公式源码DRAWGBK(c,'7' );Var3:=LLV(H,240);Var4:=100*(C-Var3)/Var3;Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;Var7:=0;Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VarA:=BARSCOUNT(C);VarB:=Var8<20 AND Var9<23 AND VarA>35;VarC:=VarB AND COUNT(VarB,1)=1;VarD:=EMA(C,21)-EMA(C,8);VarE:=EMA(VarD,5);VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);Var10:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);Var12:=ZIG(3,6)<REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);Var13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);Var14:=ZIG(3,22)<REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Var15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);Var16:=ZIG(3,51)<REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);Var17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);Var18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);Var19:=EMA(C,2)-EMA(C,150);Var1A:=EMA(Var19,100);Var1B:=2*(Var19-Var1A);Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);Var1D:=SQRT(SQRT(L*H*O*C));Var1E:=EMA(Var1D*0.97,3);Var1F:=(H+L+C)/3;Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));Var21:=CROSS(Var1E,L);买点1:=Var10;买点2:=(Var11+Var13+Var15+Var17);卖点1:=(Var12+Var14+Var16+Var18);Var22:=买点1 AND VarF AND VarC AND Var21 AND Var4<0AND Var5=0 AND Var6=0 AND Var20<(-110);DRAWTEXT(买点1>0,L-0.15,'B买'),LINETHICK4,ALIGN1,colorred; DRAWTEXT(买点2>0,L-0.15,'B买'),LINETHICK4,ALIGN1,COLORFF00FF; DRAWTEXT(卖点1>0,H+0.35,'S卖'),LINETHICK4,ALIGN1,COLOR33FF33;【大智慧】BS顶底(买点、卖点)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】全屏看盘(涨跌、行情、涨幅、量比)
【大智慧】全屏看盘(涨跌、行情、涨幅、量比)-指标公式源码{画矩形}DRAWRECTABS(0,420,415,0,1),COLOR00FF00,layer1;{大智慧L2排序}DRAWTEXTABS(15,5,'<<行情>>'),ColorFFff00;昨收:=DYNAINFO(3);今开:=DYNAINFO(4);最低:=DYNAINFO(6);最高:=DYNAINFO(5);最新:=DYNAINFO(7);总手:=DYNAINFO(8);现手:=DYNAINFO(9);总额:=DYNAINFO(10);均价:=DYNAINFO(11);涨跌:=DYNAINFO(12);振幅:=DYNAINFO(13);涨幅:=DYNAINFO(14)*100;委比:=DYNAINFO(15);委差:=DYNAINFO(16);量比:=DYNAINFO(17);内盘:=DYNAINFO(22);外盘:=DYNAINFO(23);涨速:=DYNAINFO(24);买一:=DYNAINFO(28);卖一:=DYNAINFO(34);委买量:=DYNAINFO(89);委卖量:=DYNAINFO(90);外内比:=DYNAINFO(23)/DYNAINFO(22)*100;盘差:=(外盘-内盘);换手率:=(100*v/capital);DRAWTEXTABS(0,20,'■昨收:'+str(昨收)+''),Color00FF00; DRAWTEXTABS(0,40,'■今开:'+str(今开)+''),ColorffFF00; DRAWTEXTABS(0,60,'■最低:'+str(最低)+''),Color00FF00;DRAWTEXTABS(0,80,'■最高:'+str(最高)+''),ColorFFff00; DRAWTEXTABS(0,100,'■最新:'+str(最新)+''),Color0000FF; DRAWTEXTABS(0,120,'■涨跌:'+str(涨跌)+''),Color00FF00; DRAWTEXTABS(0,140,'■涨幅:'+str(涨幅)+''),Color0000FF; DRAWTEXTABS(0,160,'■现手:'+str(现手)+''),Color00ffFF; DRAWTEXTABS(0,180,'■量比:'+(量比)+''),ColorFFFF00; DRAWTEXTABS(0,200,'■换手率:'+(换手率)+''),Color000FFF; DRAWTEXTABS(0,220,'■外盘:'+str(外盘)+''),Colorffff00; DRAWTEXTABS(0,240,'■内盘:'+str(内盘)+''),Color0000ff; DRAWTEXTABS(0,260,'■盘差:'+str(盘差)+''),ColorFFFF00; DRAWTEXTABS(0,280,'■外内比:'+str(外内比)+''),Color00FFFF; DRAWTEXTABS(0,300,'■委比:'+(委比)+''),Colorff0000; DRAWTEXTABS(0,320,'■买一:'+(买一)+''),Color00ffFF; DRAWTEXTABS(0,340,'■卖一:'+(卖一)+''),Colorff0000; DRAWTEXTABS(0,360,'■委卖量:'+str(委卖量)+''),Color00FF00; DRAWTEXTABS(0,380,'■委买量:'+str(委买量)+''),Color0000FF; DRAWTEXTABS(0,400,'■买卖差:'+str(委卖量-委买量)+''),ColorFFff00; DRAWTEXTABS(130,5,'<<精灵>>'),ColorFFff00;买入单数:=DYNAINFO(91);卖出单数:=DYNAINFO(92);买卖单数差:=(买入单数-卖出单数);大笔买入:=DYNAINFO(94);大笔卖出:=DYNAINFO(97);大笔差:=(大笔买入-大笔卖出);特大买入:=DYNAINFO(95);特大卖出:=DYNAINFO(98);特大差:=(特大买入-特大卖出);机构买单吃货数:=DYNAINFO(99);机构卖单吐货数:=DYNAINFO(100);机构吃吐货数差:=(机构买单吃货数-机构卖单吐货数);机构单数差:=DYNAINFO(101);机构吃货数:=DYNAINFO(102);机构吐货数:=DYNAINFO(103);机构货数差:=(机构吃货数-机构吐货数);机构吃货量:=DYNAINFO(104);机构吐货量:=DYNAINFO(105);机构货量差:=(机构吃货量-机构吐货量);机构吃货均额:=DYNAINFO(106);机构吐货均额:=DYNAINFO(107);机构均额差:=(机构吃货均额-机构吐货均额);DRAWTEXTABS(100,20,'■买入单数:'+str(买入单数)+'' ),Color0000FF; DRAWTEXTABS(100,40,'■卖出单数:'+str(卖出单数)+'' ),Color00FF00; DRAWTEXTABS(100,60,'■大笔买入:'+str(大笔买入)+'' ),ColorffFF00; DRAWTEXTABS(100,80,'■大笔卖出:'+str(大笔卖出)+'' ),Color00FF00; DRAWTEXTABS(100,100,'■特大买入:'+str(特大买入)+'' ),ColorffFF00; DRAWTEXTABS(100,120,'■特大卖出:'+str(特大卖出)+'' ),Color00FF00; DRAWTEXTABS(100,140,'■机构买单吃货数:'+str(机构买单吃货数)+'' ),ColorffFF00;DRAWTEXTABS(100,160,'■机构卖单吐货数:'+str(机构卖单吐货数)+'' ),Color00FF00;DRAWTEXTABS(100,180,'■机构单数差:'+str(机构单数差)+'' ),ColorFFff00; DRAWTEXTABS(100,200,'■机构吃货数:'+str(机构吃货数)+'' ),ColorffFF00; DRAWTEXTABS(100,220,'■机构吐货数:'+str(机构吐货数)+'' ),Colorff0000; DRAWTEXTABS(100,260,'■机构吃货量:'+str(机构吃货量)+'' ),Color00ffFF; DRAWTEXTABS(100,280,'■机构吐货量:'+str(机构吐货量)+'' ),Colorff0000; DRAWTEXTABS(100,320,'■机构吃货均额:'+str(机构吃货均额)+'' ),Color00FFff;DRAWTEXTABS(100,340,'■机构吐货均额:'+str(机构吐货均额)+'' ),Colorff0000;DRAWTEXTABS(100,240,'■机构货数差:'+str(机构货数差)+'' ),Color00ffFF; DRAWTEXTABS(100,300,'■机构货量差:'+str(机构货量差)+'' ),Color00ffFF; DRAWTEXTABS(100,360,'■机构均额差:'+str(机构均额差)+'' ),ColorffFF00; DRAWTEXTABS(100,390,STKLABEL+' '+STKNAME+' '),ColorFF00ff,LINETHICK3; DRAWTEXTREL(300,5,'<<资金>>'),COLORffff00;zlV:=(BIGORDER(1,2)-BIGORDER(2,2))*vol;jgV:=(BIGORDER(1,3)-BIGORDER(2,3))*vol;dhV:=(BIGORDER(1,2)-BIGORDER(2,2)-BIGORDER(1,3)+BIGORDER(2,3))*vol; zhV:=(BIGORDER(1,1)-BIGORDER(2,1)-BIGORDER(1,2)+BIGORDER(2,2))*vol; shV:=(BIGORDER(2,1)-BIGORDER(1,1))*vol;tD:=COUNT(BIGORDER(1,0),0);myD:=min(tD,30);主力资金:=ema(zlV,myD)*myD/capital;超级资金:=ema(jgV,myD)*myD/capital;大户资金:=ema(dhV,myD)*myD/capital;中户资金:=ema(zhV,myD)*myD/capital;散户资金:=ema(shV,myD)*myD/capital;大单买:=BIGORDER(1,2)*V/CAPITAL;大单卖:=BIGORDER(2,2)*V/CAPITAL;大单动向:=(大单买-大单卖)*100;涨跌动因:=(ORDER(2)-ORDER(1))/CAPITAL*1000;大单分差:=(ORDER(2)-ORDER(1))/(ORDER(2)+ORDER(1))*200; DRAWTEXTREL(250,40,' ■主力资金:'+主力资金),COLOR00FFff; DRAWTEXTREL(250,80,' ■超级资金:'+超级资金),COLORffFF00; DRAWTEXTREL(250,120,' ■大户资金:'+大户资金),COLOR0000FF; DRAWTEXTREL(250,160,' ■中户资金:'+中户资金),COLORFFff00; DRAWTEXTREL(250,200,' ■散户资金:'+散户资金),COLOR00FF00; DRAWTEXTREL(250,240,' ■大单动向:'+大单动向),COLOR00FFff; DRAWTEXTREL(250,280,' ■涨跌动因:'+涨跌动因),COLORFFff00; DRAWTEXTREL(250,320,' ■大单分差:'+大单分差),COLORFFff00;DRAWTEXTABS(280,205 ,'<<财务>>'),colorFFFF00;DRAWTEXTABS(100,390,STKLABEL+' '+STKNAME+' '),ColorFF00ff,LINETHICK3; BEGIN DRAWTEXTREL(0,800,'■所属板块:'+BKNAME),LINETHICK1,COLORFF00Ff;end;总股本:=FINANCE2(35)/10000;DRAWTEXTABS(250,220,'■总股本:'+总股本+'亿 '),LINETHICK2,Color0080FF; DRAWTEXTABS(250,240,'■流通盘:'+capital/1000000+'亿'),Color0080FF,LINETHICK2;每股收益:=FINANCE2(3);每股市盈率:=DYNAINFO(39);每股净资产:=FINANCE2(4);销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);每股公积金:=FINANCE2(7);每股未分配:=FINANCE2(8);DRAWTEXTABS(250 ,260,'■每股收益:'+NUMTOSTRN(每股收益,2)+'元'),COLORYELLOW;DRAWTEXTABS(250 ,280,'■每股市盈率:'+NUMTOSTRN(每股市盈率,1)+'倍'),Color62FFFF;DRAWTEXTABS(250 ,300,'■每股净资产:'+NUMTOSTRN(每股净资产,2)+'元'),COLORYELLOW;DRAWTEXTABS(250 ,320,'■销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),Color62FFFF;DRAWTEXTABS(250 ,340,'■主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),ColorACFFFF;DRAWTEXTABS(250 ,360,'■净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),ColorACFFFF;DRAWTEXTABS(250 ,380,'■每股公积金:'+NUMTOSTRN(每股公积金,2)+'元'),ColorFFFFFF;DRAWTEXTABS(250 ,400,'■每股未分配:'+NUMTOSTRN(每股未分配,2)+'元'),ColorFFFFFF;{}A3:MA(AMOUNT/(100*VOL),3);A5:MA(AMOUNT/(100*VOL),5);A10:MA(AMOUNT/(100*VOL),10);A20:MA(AMOUNT/(100*VOL),20);A30:MA(AMOUNT/(100*VOL),30);A60:MA(AMOUNT/(100*VOL),60);DRAWTEXT(CROSS(A3,A10),L-0.01,'?'),COLORYELLOW,LINETHICK4; DRAWTEXT(CROSS(A5,A3),h+0.05,'?'),COLORffffff,LINETHICK4;【大智慧】全屏看盘(涨跌、行情、涨幅、量比)-指标公式效果图(文档来源:若水财经社区)。
大智慧BS指标
大智慧BS指标(益盟)买线:=EMA(C,2);卖线:=EMA(SLOPE(C,21)*20+C,42);BU:=cross(买线,卖线);SEL:=cross(卖线,买线);drawtext(bu,LOW,'B'),colorred,linethick3;DRAWTEXT(bu,LOW,' ̄'),Color208FFF,LINETHICK3;DRAWTEXT(sel,HIGH,' ̄'),ColorFFFF00,LINETHICK3;drawtext(sel,HIGH,'S'),colorgreen,linethick3;stickline(买线>=卖线,low,high,0.1,1),colorred;stickline(买线>=卖线,close,open,8,1),colorred;stickline(买线<卖线,close,open,8,0),color00ff00;stickline(买线<卖线,low,high,0.1,1),color00ff00;stickline(cross(买线,卖线) or cross(卖线,买线),open,close,6,0),colorffff00;指导线: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;大智慧BS指标(益盟)2a:="STSFunc@CALSTSL";R1:="STSFunc@STS_RISK1";R2:="STSFunc@STS_RISK2";S1:="STSFunc@STS_STS1";S2:="STSFunc@STS_STS2";TBS:="STSFunc@STS_STSBS";DN:="STSFunc@STS_STSDN";UP:="STSFunc@STS_STSUP";压力位:UP,linethick0,color0000ff,PRECIS2;支撑位:DN,linethick0,color00ff00,PRECIS2;警示位:IF(R1<>0,ABS(R1),IF(R2<>0,ABS(R2),0)),linethick0,colorff00ff,PRECI S2;MA5:MA(CLOSE,5),colorFFFFff,PRECIS2;MA10:MA(CLOSE,10),color00FFff,PRECIS2;DRAWLINE(UP>0,UP,UP<>REF(UP,1) ORC=DYNAINFO(7),REF(ABS(UP),1),0),dotline,color0000ff,LINETHICK1; DRAWLINE(DN>0,DN,DN<>REF(DN,1) ORC=DYNAINFO(7),REF(ABS(DN),1),0),dotline,color00ff00,LINETHICK1; DRAWLINE(UP<0,-UP,UP<>REF(UP,1) ORC=DYNAINFO(7),REF(ABS(UP),1),0),color0000ff;DRAWLINE(DN<0,-DN,DN<>REF(DN,1) ORC=DYNAINFO(7),REF(ABS(DN),1),0),color00ff00;DRAWLINE(R1>0,R1,R1<>REF(R1,1) ORC=DYNAINFO(7),REF(ABS(R1),1),0),dotline,colorEE88ff;DRAWLINE(R2>0,R2,R2<>REF(R2,1) ORC=DYNAINFO(7),REF(ABS(R2),1),0),dotline,colorEE88ff;DRAWLINE(R1<0,-R1,R1<>REF(R1,1) ORC=DYNAINFO(7),REF(ABS(R1),1),0),colorEE88ff;DRAWLINE(R2<0,-R2,R2<>REF(R2,1) ORC=DYNAINFO(7),REF(ABS(R2),1),0),colorEE88ff;drawbmp(TBS=1,l*0.96,'STSbuy1.bmp'),align1,valign0;drawbmp(TBS=-1,h*1.07,'STSsell1.bmp'),align1,valign0;drawbmp(S2=14,l*0.94,'STSbuy.bmp'),align1,valign0;drawbmp(S2=-14,h*1.09,'STSsell.bmp'),align1,valign0;drawtext(S1>0,L,STR(S1)),color00FF00,LINETHICK1,align1,valign0; drawtext(S1<0,H*1.03,STR(-S1)),color00FF00,LINETHICK1,align1,valign0; drawtext(S2>0 andS2<13,l*0.97,STR(S2)),color0000FF,LINETHICK1,align1,valign0;drawtext(S2<0 andS2>-13,H*1.06,STR(-S2)),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=13,l*0.97,'+'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=14,l*0.97,'13'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=-13,h*1.06,'+'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=-14,h*1.06,'13'),color0000FF,LINETHICK1,align1,valign0;b:="LTFunc6@FORLT2";s11:="LTFunc6@LT_S1";hs:="LTFunc6@LT_HS";ls:="LTFunc6@LT_LS";p1:="LTFunc6@LT_P1";upp:="LTFunc6@LT_UPP";udd:="LTFunc6@LT_UDD";d1:=ema(abs("ddx.ddx"),60);d2:=max("ddx.ddx"/d1+7.5,7.5);d3:=min("ddx.ddx"/d1,10);fb:=if(s11=0,hs,ls);tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现S点\n','若明日收盘价> '+numtostrn(upp,2)+',出现B点\n');tr1:=ifs(s11=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价> '+numtostrn(hs,2)+'短线买入机会');tr2:=ifs(p1=1,ifs(cross(p1,0),'B点','持股'),ifs(cross(1,p1),'S点','持币'));tr3:=ifs(s11=0,'向下,','向上,');tr4:='3.能量级别:'+numtostrn(d3,1)+'级';bs:='<*t=0092F7*><*c=FFFFFF*><*p=95*>'+datestr(date)+' 买卖点决策系统提示\n'+'<*t=E7FFFF*><*c=000000*><*p=95*>'+'1.BS点:'+tr2+','+tr0+'<*t=E7FFFF*><*c=000000*><*p=95*>'+'2. 短线:'+tr3+tr1+'\n'+'<*t=E7FFFF*><*c=000000*><*p=95*> '+tr4; drawflagtext(1,fb,bs);STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;drawbmp(s11=1 and ref(s11,1)=0 and(p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s11=0 and ref(s11,1)=1 and(p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;zg8:=FINANCE2(35);{总股}lta8:=FINANCE2(36);{流通A}sy8:=FINANCE2(3);{收益}sl8:=DYNAINFO(39);{市盈率}wf8:=FINANCE2(8);{未分}gj8:=FINANCE2(7);{公积};jz8:=FINANCE2(4);{净资}cw8:='总股:'+zg8+' 流通A:'+lta8+' 收益:'+sy8+' 市盈率:'+sl8+' 未分:'+wf8+' 公积:'+gj8+' 净资:'+jz8;DRAWTEXTREL(20,10,BKNAME),Coloryellow;DRAWTEXTREL(20,60,cw8),COLORAAEEEE;I1:=0;flag1:=0;while I1<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)DOIF REF(H,I1)<REF(L,I1+1) AND REF(L,I1+1)>HHV(H,I1+1)THEN BEGIN FLAG1:=1;S1:=I1;I1:=BARSLAST(D ISPSTATUS=1);ENDELSE I1:=I1+1;STICKLINE(FLAG1,REF(L,S1+1),HHV(H,S1+1),(s1+1)*20,0),ColorC0C0C0 ,ALIGN1,LAYER7;DRAWTEXT(flag1,REF(L,s1+1),NUMTOSTRN(ref(h,s1+1),2)+'-'+NUMTOSTRN( hhV(h,S1+1),2)),ALIGN2,COLORgreen;I:=0;flag:=0;while I<BARSLAST(DISPSTATUS=1)-BARSLAST(DISPSTATUS=2)DOIF REF(L,I)>REF(H,I+1) AND REF(H,I+1)<LLV(LOW,I+1)THEN BEGIN FLAG:=1;S:=I;I:=BARSLAST(DI SPSTATUS=1);ENDELSE I:=I+1;STICKLINE(FLAG,REF(h,S+1),LLV(LOW,S+1),20*(s+1),500),ColorC0C0C0 ,ALIGN1,LAYER7;DRAWTEXT(FLAG,REF(H,s+1),NUMTOSTRN(ref(h,s+1),2)+'-'+NUMTOSTRN(LLV(LO W,S+1),2)),ALIGN2,COLORgreen;。
【股票指标公式下载】-【大智慧】买卖SAR(主图)
【大智慧】买卖SAR(主图)-指标公式源码MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF;MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF;MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00;DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LO W* 0.99),'买'),LINETHICK3,COLORF00FF0;DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HI GH* 1.01),'卖'),LINETHICK3,COLORFFFFFF;STICKLINE((EMA(CLOSE,2) >=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF; STICKLINE((EMA(CLOSE,2) >=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE((EMA(CLOSE,2) >=EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE((EMA(CLOSE,2) <EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00; STICKLINE((EMA(CLOSE,2)< EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00; STICKLINE((EMA(CLOSE,2) <EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) ORCROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0. 1,0),COLOR00FFFF;STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) ORCROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE, 3,0),COLOR00AAAA;STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42))OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN, CLOSE,2,0),COLOR00CCCC;aa:ma(c,10);if(aa>=ref(aa,1),aa,0),LINETHICK2,COLORyellow,circledot;if(aa<ref(aa,1),aa,0),LINETHICK2,COLORff9900,circledot; STICKLINE(C>aa,L,H,0.1,1),COLORRED;STICKLINE(C>aa,C,O,4,1),COLORRED;STICKLINE(C>aa,C,O,4,1),COLORRED;STICKLINE(C<aa,C,O,4,1),COLORFFFF00;STICKLINE(C<aa,C,O,4,1),COLOR00FF00;STICKLINE(C<aa,L,H,0.1,1),COLOR00FF00;【大智慧】买卖SAR(主图)-指标公式效果图(文档来源:若水财经社区)。
【指标公式源码下载】大智慧缠论均线指标公式(操盘反弹减仓寻底)
【指标公式源码下载】大智慧缠论均线指标公式(操盘反弹减仓寻底)————————————————————————————————作者:————————————————————————————————日期:大智慧缠论均线指标公式(操盘、反弹、减仓、寻底)MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);均线差:MA5-MA10,COLORSTICK,COLORBLUE;操盘:STICKLINE(2*(均线差)>=0 AND 2*(均线差)>=REF(2*(均线差),1),0,2*(均线差),2,0),COLORRED;反弹:STICKLINE(2*(均线差)<0 AND 2*(均线差)>=REF(2*(均线差),1),0,2*(均线差),2,0),COLORYELLOW,LINETHICK1;减仓:STICKLINE(2*(均线差)>=0 AND 2*(均线差)< REF(2*(均线差),1),0,2*(均线差),2,0),COLORFF9900,LINETHICK1;寻底:STICKLINE(2*(均线差)<0 AND 2*(均线差)< REF(2*(均线差),1),0,2*(均线差),2,0),COLORGREEN,LINETHICK1;JC:=MA10-MA5;绿柱面积:IF (均线差<0,SUM(均线差*0.1,BARSLAST(JC<0)),0),LINETHICK0,COLORBLUE;红柱面积:IF (均线差>0,SUM(均线差*0.1,BARSLAST(JC>0)),0),LINETHICK0,COLORFF00FF;A1:=IF(均线差>0,1,-1);A2:=REF(A1,1);A3:=A1*A2;A4:=BARSLAST(A3<0);A5:=A4+1;趋势平均力度:(SUM(均线差,0)-REF(SUM(均线差,0),A5))/A5,LINETHICK0;时间:(A4+1)/100,LINETHICK0;。
大智慧指标公式集
大智慧指标公式集一、预测明天{预测明天-大智慧公式}E:=(H+L+O+2*C)/5;次日突破价:E+(H-L);次日阻力价:2*E-L;次日支撑价:2*E-H;次日下跌反转价:E-(H-L);次日心理价:(E+次日突破价+次日阻力价+次日支撑价+次日下跌反转价)/5;DIFF1:=EMA(C,3)-EMA(C,13);DEA1:=EMA(DIFF1,9);MACD1:=2*(DIFF1-DEA1)*10;DIFF2:=EMA(C,5)-EMA(C,21);DEA2:=MA(DIFF2,9);MACD2:=2*(DIFF2-DEA2)*10;DIFF3:=EMA(C,5)-EMA(C,89);DEA3:=EMA(DIFF3,21);MACD3:=2*(DIFF3-DEA3)*10;STICKLINE(C>0,0,22,6,0),Color8BA400;STICKLINE(C>0,0,10,6,0),Color8BA411;STICKLINE(C>0,0,9.5,6,0),Color8BA422;STICKLINE(C>0,0,9,6,0),Color8BA433;STICKLINE(C>0,0,8.5,6,0),Color8BA444;STICKLINE(C>0,0,8,6,0),Color8BA455;STICKLINE(C>0,0,7.5,6,0),Color8BA466;STICKLINE(C>0,0,7,10,0),Color8BA477;STICKLINE(C>0,0,6.5,6,0),Color8BA488;STICKLINE(C>0,0,6,6,0),Color8BA499;STICKLINE(C>0,0,5.5,6,0),Color8BA4aa;STICKLINE(C>0,0,5,6,0),Color8BA4cc;STICKLINE(C>0,0,4,6,0),Color8BA4ee;STICKLINE(C>0,0,3,6,0),Color8BA4ff;STICKLINE(C>0,0,-15,6,0),Color8BA433;STICKLINE(C>0,0,-10,6,0),Color8BA444;STICKLINE(C>0,0,-5,6,0),Color8BA455;STICKLINE(C>0,0,-1,6,0),Color8BA466;STICKLINE(macd3>=0,0,macd3,8,0),color009e3a;STICKLINE(macd3<0,0,-macd3,8,0),color646464;STICKLINE(macd2>=0,0,macd2,8,0),color007d19;STICKLINE(macd2<0,0,-macd2,8,0),color555555;STICKLINE(macd1>=0,0,macd1,8,0),color006400;STICKLINE(macd1<0,0,-macd1,8,0),color414141;STICKLINE(macd3,0,-abs(macd3)*0.6,8,0),color232323;STICKLINE(macd1,0,-abs(macd1)*0.6,8,0),color0f0f0f;x1:=MA(LLV(C,8)*1.1,13);x2:=MA(HHV(C,21)*0.9,13);x3:=MA(LLV(INDEXC,8)*1.1,13);x4:=MA(HHV(INDEXC,21)*0.9,13);资金进出:=3*(MA(C,1)-(x1+x2)/2-(x1+x2)/2*((x3+x4)/2-EMA(INDEXC,3))/((x3+x4) /2));STICKLINE(资金进出<0,资金进出,0,0.5,0),COLORFFFF00;STICKLINE(资金进出>=0,资金进出,0,0.5,0),ColorFF8BFF;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);DRAWTEXT(K<23,-10,'ャ'),ColorDBDBDB;DRAWTEXT(K<23,-10,'︼'),Color688EC1;DRAWTEXT(K<23 AND CROSS(K,D),8,'$'),COLORRED,LINETHICK7; DRAWTEXT(CROSS(MACD3,MACD2) andMACD3>ref(MACD3,1),MACD3+2,'$'),COLORRED,LINETHICK7;MA20:=MA(C,20);MA40:=MA(C,40);MA60:=MA(C,60);aa:=BARSLAST(ma60>ma40 and (ma40=ma20 or ma40>ma20));bb:=ref(count(c<ma60,aa)=aa,1);cc:=cross(c,ma60) and vol>ma(vol,5) and (c-ref(c,1))/ref(c,1)*100>3; 芙蓉出水:=bb and cc,color00ff00;drawtext(芙蓉出水,8,'$'),COLORRED;k2:=EMA(c,5),colorffff00;k3:=EMA(c,10),colorffff00;k5:=EMA(c,30),colorffff00;kk5:=EMA(indexc,30),colorffff00;k6:=2*(k2-k5);k7:=2*(k2-k3);k8:=2*(k7+k6),COLORRED;STICKLINE(CROSS(k8,0),0,50,8,0) ,COLORRED;k1:=IF(k8>ref(k8,5) and k3<ref(k3,5) ,1,0 ),COLORYELLOW;k21:=IF(k8>ref(k8,7) and k3<ref(k3,7) ,1,0 ),COLORYELLOW;k31:=IF(k8>ref(k8,9) and k3<ref(k3,9) ,1,0 ),COLORYELLOW;k4:=IF(k8>ref(k8,11) and k3<ref(k3,11) ,1,0 ),COLORYELLOW;nday := 3;down := close/llv(low,60)<=1.2;pma1 := ma(close,2);pma2 := ma(close,5);diff :=ema(close,12) - ema(close,26),colorwhite;dea :=ema(diff,9),colorgreen;vma1:=ma (vol,2)/100000,colorred;vma2:=ma(vol,5)/100000,coloryellow;ppday := barslast(cross(pma1,pma2));vvday := barslast(cross(vma1,vma2));macdday := barslast(cross(diff,dea));A1:=BARSLAST(ref(cross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),1)); 背离、W底、金叉:=ref(c,A1+1)>c andref("macd.diff"(5,12,9),A1+1)<"macd.diff"(5,12,9) andcross("macd.diff"(5,12,9),"macd.dea"(5,12,9)),,colorred;sjcjd:= if((ppday<=nday and vvday<=nday and macdday<=nday ) and (diff<0),1,0);STICKLINE(sjcjd,50,60,6,0),colorwhite,linethick2;MACD:= 2*(diff-dea), COLORSTICK;短趋势:=((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) -50)*1.032+50),COLORRED;Vara2:=(2*CLOSE+HIGH+LOW+OPEN)/5;Vara3:=LLV(LOW,34);Vara4:=HHV(HIGH,34);长趋势:=EMA((Vara2-Vara3)/(Vara4-Vara3)*100,13),color00ff00;判断底:=SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*5; Vara5:=CROSS(短趋势,长趋势)AND 长趋势<25;Vara6:=CROSS(短趋势,长趋势)AND 长趋势<50;STICKLINE(Vara5,60,70,8,0) ,colorgreen;XX:=((((CLOSE - MA(CLOSE,34)) / MA(CLOSE,34)) * 100)* 5);B001:=(((((CLOSE - MA(CLOSE,42)) / MA(CLOSE,42)) ) * 100) * 5);B002:=(((((CLOSE - MA(CLOSE,67)) / MA(CLOSE,67)) ) * 100) * 5);B003:=(((XX + B001) / 2) - (B002 ));B004:=(((0 - 100) * (HHV(HIGH,34) - CLOSE)) / (HHV(HIGH,34) -LLV(LOW,34)));B005:=(((0 - 100) * (HHV(HIGH,42) - CLOSE)) / (HHV(HIGH,42) -LLV(LOW,42)));B006:=(((0 - 100) * (HHV(HIGH,72) - CLOSE)) / (HHV(HIGH,72) -LLV(LOW,72)));B007:=EMA((((B004 + B005) / 2) - B006),6);B008:=REF(CLOSE,1);B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);B012:=EMA(((((B009 + B010) / 2) - B011) * 5),6);B013:=((((0 - 1) * ((B007 + B003) + B012)) / 3) * 1.5);B014:=B012;B015:=B013;B016:=EMA(B012,4);B017:=B012;KKM1:=B013;DPM1:=EMA(B013,4);多头:=B017,color0000FF;空头:=KKM1,color00FF00;多均:=B016;空均:=DPM1;B018:=IF(CROSS(B017,KKM1),28,0);xd:=5 ;VARX:=B017;C023:=KKM1;C024:=B016;C025:=DPM1;C026:=WINNER(CLOSE);W:=(DMA(C026,((VOL / CAPITAL) * 1)) * 100);HWXWINNER:=W;XD1:=EMA(W,6);XWXMH:=XD1;XD2:=MA(W,14);庄家控盘:=((HWXWINNER - XWXMH) * 10),COLORff00ff,LINETHICK2; STICKLINE(cross(多头,空均),80,70,8,0) ,COLORYELLOW;Varb1:=(2*CLOSE+HIGH+LOW)/4;Varb2:=LLV(LOW,34);Varb3:=HHV(HIGH,34);Varb4:=ma(HIGH,8);xx1:=EMA((Varb1-Varb2)/(Varb3-Varb2)*100,13);yy:=EMA(0.667*REF(xx1,1)+0.333*xx1,2) , ;STICKLINE(CROSS(xx1,20) AND yy<xx1 andVarb4>ref(Varb4,1),80,90,6,0),COLORFF0000;逃顶:=IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),60,90),COLOR53ff53; {Re:预测明天-用法简介用法简介:一:小船出现是在股价相对的底部,$是参考买点,青山出现表示股价逐渐走强.当黑色大山出现时表示股价逐渐走弱.二:1 红柱线是中线指示2 其余四色柱线是短线指示3连续发出三个以上短线指示,可以短线买入.4连续发出三个以上短线指示后,发出中线指示,可以重仓买入.一年中线重仓买入,一般不会超过4次.三:1、次日上升突破价位:如明日此价位最高价超过此价位,则有上升行情产生,可当日买入,或观察近几日可逢低吸纳。
大智慧BS决策指标通达信模拟版(通达信)
STICKLINE(VAR2 > MA(VAR3,6),LOW,HIGH,t;CLOSE)AND(VAR2<MA(VAR3,6))),(CLOSE-0.03),OPEN,3.05,0),COLORLIBLUE;
请注意甄别内容中的联系方式诱导购买等信息谨防诈骗
大智慧BS决策指标通达信模拟版(通达信)
VAR1:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR2:=(100 - ((90 * (HHV(HIGH,14) - CLOSE)) / (HHV(HIGH,14) - LLV(LOW,14))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DIR1:=ABS(CLOSE-REF(CLOSE,5));
VIR1:=SUM(ABS(CLOSE-REF(CLOSE,1)),5);
ER1:=DIR1/VIR1;
STICKLINE(((OPEN<CLOSE)AND(VAR2<MA(VAR3,6))),CLOSE,OPEN,3.05,1),COLORLIBLUE;
STICKLINE(((OPEN>CLOSE)AND(VAR2>MA(VAR3,6))),OPEN,(CLOSE-0.03),3.05,0),COLORRED;
PT:=REF(H,1)-REF(L,1);
CDP:=(REF(H,1)+REF(L,1)+REF(C,1)*2)/4;
大智慧BS指标范文
大智慧BS指标范文大智慧BS指标是指企业财务报表中的资产负债表(Balance Sheet)指标。
资产负债表是会计报表的一部分,用于反映企业在特定日期的财务状况,即企业的资产、负债和所有者权益的情况。
通过分析这些指标,可以了解企业的偿债能力、盈利能力和运营状况。
下面将介绍几个重要的大智慧BS指标。
1. 流动比率(Current Ratio):流动比率是指企业流动资产与流动负债之间的相对关系,反映了企业偿付短期债务的能力。
流动比率=流动资产/流动负债。
流动比率较高,说明企业有足够的流动资金来偿还短期债务,具备一定的偿债能力。
2. 速动比率(Quick Ratio):速动比率是指企业除去存货后的流动资产与流动负债之间的相对关系,更加关注企业的快速偿债能力。
速动比率=(流动资产-存货)/流动负债。
速动比率较高,说明企业在偿还债务时更加灵活。
3. 资产负债率(Debt to Equity Ratio):资产负债率是指企业负债总额与股东权益总额之间的比例关系,反映了企业通过借款融资的程度。
资产负债率=负债总额/股东权益总额。
资产负债率较低,说明企业的资产相对于负债更稳定。
4. 跨度比率(Gearing Ratio):跨度比率是指企业负债总额与总资产之间的比例关系,反映了企业通过借款融资的比例。
跨度比率=负债总额/总资产。
跨度比率较高,说明企业通过借款来融资的比例较大。
5. 资本周转率(Capital Turnover Ratio):资本周转率是指企业销售收入与企业资产之间的关系,反映了企业每一单位资产所创造的销售收入。
资本周转率=销售收入/资产总额。
资本周转率较高,说明企业利用资产的效率较高。
6. 销售净利率(Net Profit Margin):销售净利率是指企业的净利润与销售收入之间的关系,反映了企业销售活动的盈利能力。
销售净利率=净利润/销售收入。
销售净利率较高,说明企业在销售过程中取得较高的利润。
【股票指标公式下载】-【大智慧】买卖成交(主动买盘、主动卖盘、买卖比)
【大智慧】买卖成交(主动买盘、主动卖盘、买卖比)-指标公式源码量5:MA(VOL,5),colorred;量10:MA(VOL,10);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));成交:VOL,ColorCD52FF,linethick0;主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLO SE-LOW)),VOL/2)),Color0000FF,STICK;主动卖盘:IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(H IGH-LOW),VOL/2)),Color00E521,STICK;买卖比:主动买盘/主动卖盘;WJ:=(HIGH+LOW+CLOSE)/3;VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));VD5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);VD6:=(VD1*VD5);VD7:=(VD2*VD5);VD8:=(VD3*VD5);VD9:=(VD4*VD5);买入量:=(VD9+VD8);卖出量:=(VD6+VD7);买入资金:=买入量*close/100;卖出资金:=卖出量*close/100;资金进出:=买入资金-卖出资金;买卖资金比:=买入资金/卖出资金;挂单买盘:=MA(主动买盘,3);挂单卖盘:=(MA(主动卖盘,3));STICKLINE((主动买盘 > 0),0,主动买盘,8,0),color0000FF;STICKLINE((主动买盘 > 0),0,主动买盘,7.8,0),color0018FF;STICKLINE((主动买盘 > 0),0,主动买盘,7.5,0),color001BFF;STICKLINE((主动买盘 > 0),0,主动买盘,7.3,0),color0022FF; STICKLINE((主动买盘 > 0),0,主动买盘,7,0),color0035FF; STICKLINE((主动买盘 > 0),0,主动买盘,6.8,0),color0041FF; STICKLINE((主动买盘 > 0),0,主动买盘,6.5,0),color0050FF; STICKLINE((主动买盘> 0),0,主动买盘,6.3,0),color0059FF; STICKLINE((主动买盘 > 0),0,主动买盘,6,0),color0062FF; STICKLINE((主动买盘 > 0),0,主动买盘,5.7,0),color006CFF; 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),color0095FF; STICKLINE((主动买盘 > 0),0,主动买盘,3.5,0),color009CFF; STICKLINE((主动买盘 > 0),0,主动买盘,3,0),color00ABFF; STICKLINE((主动买盘> 0),0,主动买盘,2.5,0),color00C0FF; STICKLINE((主动买盘 > 0),0,主动买盘,1.5,0),color00D1FF; STICKLINE((主动买盘> 0),0,主动买盘,1,0),color00EAFF; STICKLINE((主动买盘 > 0),0,主动买盘,0.7,0),color00FFFF; STICKLINE((主动卖盘 > 0),0,主动卖盘,8,0),color006800; STICKLINE((主动卖盘 > 0),0,主动卖盘,7.8,0),color007F00; STICKLINE((主动卖盘 > 0),0,主动卖盘,7,5),color008B00; STICKLINE((主动卖盘 > 0),0,主动卖盘,7,3),color008B00; STICKLINE((主动卖盘> 0),0,主动卖盘,7,0),color009000; STICKLINE((主动卖盘 > 0),0,主动卖盘,6.8,0),color009500; STICKLINE((主动卖盘> 0),0,主动卖盘,6.5,0),color009C00; STICKLINE((主动卖盘> 0),0,主动卖盘,6.3,0),color00A300; STICKLINE((主动卖盘 > 0),0,主动卖盘,6,0),color00AB00; STICKLINE((主动卖盘 > 0),0,主动卖盘,5.7,0),color00AF00; STICKLINE((主动卖盘 > 0),0,主动卖盘,5.5,0),color00B900; STICKLINE((主动卖盘 > 0),0,主动卖盘,5.3,0),color00C000; STICKLINE((主动卖盘 > 0),0,主动卖盘,5,0),color00C100; STICKLINE((主动卖盘 > 0),0,主动卖盘,4.5,0),color00CA00; STICKLINE((主动卖盘> 0),0,主动卖盘,3.5,0),color00D300; STICKLINE((主动卖盘> 0),0,主动卖盘,3,0),color00DB00; STICKLINE((主动卖盘> 0),0,主动卖盘,2.5,0),color00EA00; STICKLINE((主动卖盘> 0),0,主动卖盘,1.5,0),color00FF00;DRAWTEXTABS(1,1,'【买卖盘解量(手)】');DRAWTEXTABS(1,30,'┃当日买卖量='+NUMTOSTR(VOL)),ColorFF00FF; DRAWTEXTABS(1,60,'┃当日主动买量='+NUMTOSTR(主动买盘)),Color00ff00; DRAWTEXTABS(1,90,'┃当日主动卖量='+NUMTOSTR(主动卖盘)),Coloryellow; DRAWTEXTABS(1,120,'┃当日买卖比='+NUMTOSTR(买卖比)),ColorFF00FF; DRAWTEXTABS(250,30,'┃买入资金累计万元: '+NUMTOSTR(买入资金)),Colorred,LINETHICK1;DRAWTEXTABS(250,60,'┃卖出资金累计万元: '+NUMTOSTR(卖出资金)),Color00ff00,LINETHICK1;DRAWTEXTABS(250,90,'┃资金进出万元: '+NUMTOSTR(资金进出)),Coloryellow,LINETHICK1;DRAWTEXTABS(250,120,'┃买卖资金比: '+NUMTOSTR(买卖资金比)),Coloryellow,LINETHICK1;DRAWTEXTABS(1,150,'┃当日挂单买盘: '+NUMTOSTR(挂单买盘)),Colorred,LINETHICK1;DRAWTEXTABS(250,500,'┃当日挂单卖盘: '+NUMTOSTR(挂单卖盘)),Color00ff00,LINETHICK1;【大智慧】买卖成交(主动买盘、主动卖盘、买卖比)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】分时扫盘(主力扫盘、大盘参考线、板块指数)
【大智慧】分时扫盘(主力扫盘、大盘参考线、板块指数)-指标公式源码M:=2;价:=C;大盘:=EMA(INDEXC,500)/EMA(C,500);大盘参考线:INDEXC/大盘,ColorFFFF00;VAR20:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR21:=(20*VAR20+19*REF(VAR20,1)+18*REF(VAR20,2)+17*REF(VAR20,3)+16*R EF(VAR20,4)+15*REF(VAR20,5)+14*REF(VAR20,6)+13*REF(VAR20,7)+12*REF(VA R20,8)+11*REF(VAR20,9)+10*REF(VAR20,10)+9*REF(VAR20,11)+8*REF(VAR20,12)+7*REF(VAR20,13)+6*REF(VAR20,14)+5*REF(VAR20,15)+4*REF(V AR20,16)+3*REF(VAR20,17)+2*REF(VAR20,18)+REF(VAR20,21))/210;VAR22:=EMA(VAR21,15);VAR23:=HHV(CLOSE,90);VAR24:=LLV(CLOSE,90);VAR25:=VAR23-VAR24;VAR26:=EMA((CLOSE-VAR24)/VAR25-0.5,14);ZLSP:=VAR26*20;VAR27:=REF(HHV(CLOSE,66),2);VAR28:=CROSS(CLOSE,VAR27) and (HHV(CLOSE,110)/LLV(CLOSE,110)-1)*100<45 and ZLSP<5.666;VAR29:=LLV(ZLSP,35)<-8.9 and CROSS(ZLSP,-7.815) and ZLSP<-1.2;VAR30:=10*FILTER(VAR29,41);VAR31:=15*FILTER(VAR28,41)>10;主力扫盘:VAR31,linethick0;DRAWTEXT(VAR31,价*1.001,'主力扫盘'),COLORYELLOW;板块指数:IF(INBLOCK('工程建筑'),"991002$CLOSE",IF(INBLOCK('电力'),"991003$CLOSE",IF(INBLOCK('计算机'),"991004$CLOSE",IF(INBLOCK('电子信息'),"991006$CLOSE",IF(INBLOCK('房地产'),"991007$CLOSE",IF(INBLOCK('纺织服装'),"991008$CLOSE",IF(INBLOCK('钢铁'),"991009$CLOSE",IF(INBLOCK('供水供气'),"991010$CLOSE",IF(INBLOCK('化工化纤'),"991011$CLOSE",IF(INBLOCK('电器'),"991014$CLOSE",IF(INBLOCK('交通设施'),"991016$CLOSE",IF(INBLOCK('银行类'),"991017$CLOSE",IF(INBLOCK('旅游酒店'),"991018$CLOSE",IF(INBLOCK('煤炭石油'),"991019$CLOSE",IF(INBLOCK('酿酒食品'),"991020$CLOSE",IF(INBLOCK('农林牧渔'),"991021$CLOSE",IF(INBLOCK('商业连锁'),"991023$CLOSE",IF(INBLOCK('建材'),"991024$CLOSE",IF(INBLOCK('其他行业'),"991025$CLOSE",IF(INBLOCK('交通工具'),"991026$CLOSE",IF(INBLOCK('机械'),"991027$CLOSE",IF(INBLOCK('医药'),"991028$CLOSE",IF(INBLOCK('外贸'),"991031$CLOSE",IF(INBLOCK('教育传媒'),"991032$CLOSE",IF(INBLOCK('仪电仪表'),"991033$CLOSE",IF(INBLOCK('有色金属'),"991034$CLOSE",IF(INBLOCK('造纸印刷'),"991035$CLOSE",IF(INBLOCK('券商'),"991036$CLOSE",IF(INBLOCK('电力设备'),"991037$CLOSE",IF(INBLOCK('通信'),"991135$CLOSE",IF(INBLOCK('运输物流'),"991136$CLOSE",IF(INBLOCK('海峡西岸'),"993596$CLOSE",IF(INBLOCK('保险'),"991255$CLOSE",0) )))))))))))))))))))))))))))))))),PRECIS0,COLOR00FF00,LINETHICK0; BBC:=EMA(板块指数,1000)/EMA(C,2500);BKC:=板块指数/BBC;POLYLINE(M=0 OR M=1,BKC),COLOR00FF00,LAYER0;DDC:=EMA(INDEXC,1000)/EMA(C,2500);DPC:=INDEXC/DDC;POLYLINE(M=0 OR M=2,DPC),COLORMAGENTA,LAYER0;POLYLINE(C,C),LINETHICK2,COLORBLACK;板块:=IFS(INBLOCK('工程建筑'),'工程建筑', IFS(INBLOCK('电力'),'电力',IFS(INBLOCK('计算机'),'计算机',IFS(INBLOCK('电子信息'),'电子信息',IFS(INBLOCK('房地产'),'房地产',IFS(INBLOCK('纺织服装'),'纺织服装',IFS(INBLOCK('钢铁'),'钢铁',IFS(INBLOCK('供水供气'),'供水供气',IFS(INBLOCK('化工化纤'),'化工化纤',IFS(INBLOCK('电器'),'电器',IFS(INBLOCK('交通设施'),'交通设施',IFS(INBLOCK('银行类'),'银行类',IFS(INBLOCK('旅游酒店'),'旅游酒店',IFS(INBLOCK('煤炭石油'),'煤炭石油',IFS(INBLOCK('酿酒食品'),'酿酒食品',IFS(INBLOCK('农林牧渔'),'农林牧渔',IFS(INBLOCK('商业连锁'),'商业连锁',IFS(INBLOCK('建材'),'建材',IFS(INBLOCK('其他行业'),'其他行业',IFS(INBLOCK('交通工具'),'交通工具',IFS(INBLOCK('机械'),'机械',IFS(INBLOCK('医药'),'医药',IFS(INBLOCK('外贸'),'外贸',IFS(INBLOCK('教育传媒'),'教育传媒',IFS(INBLOCK('仪电仪表'),'仪电仪表',IFS(INBLOCK('有色金属'),'有色金属',IFS(INBLOCK('造纸印刷'),'造纸印刷',IFS(INBLOCK('券商'),'券商',IFS(INBLOCK('电力设备'),'电力设备',IFS(INBLOCK('通信'),'通信',IFS(INBLOCK('运输物流'),'运输物流',IFS(INBLOCK('海峡西岸'),'海峡西岸',IFS(INBLOCK('保险'),'保险','') ))))))))))))))))))))))))))))))));DRAWTEXTABS(3,5,'所属: '+板块);VAR1:=EMA(EMA(C,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;无庄控盘:=控盘<0;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(C*0.95);主力出货:=控盘<REF(控盘,1) AND 控盘>0;高度控盘:= VAR2>50 AND COST(85)<C AND 控盘>0;A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;能量:=(EMA(C,S)-EMA(C,P))*10;空头:=EMA(能量,M1);BTJ1:=(C-JJ)/JJ<-0.005;BTJ11:=(C-JJ)/JJ<-0.03;BTJ12:=ref(LAST(JJ>=REF(JJ,1)),1)>=4 AND (C-JJ)/JJ<0.005; STJ1:=(C-JJ)/JJ>0.005;STJ01:=控盘<REF(控盘,1) AND 控盘>0.5;STJ02:=控盘>0;BTJ2:=控盘>REF(控盘,1) AND 控盘<-0.2;BTJ22:=控盘>REF(控盘,1) AND 控盘<0 ;{波段买卖条件}BTJ3:=CROSS(能量,空头) AND 能量<-0.3;BTJ32:=CROSS(能量,空头) AND 能量<-0.1;STJ31:=CROSS(空头,能量);STJ32:=CROSS(空头,能量) AND 能量>1.618;BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);有庄:=BTJ811;DRAWTEXT(BTJ811,价,'有庄'),COLORRED,LINETHICK2;MA1:MA(CLOSE,5);MA2:MA(CLOSE,10);MA3:MA(CLOSE,30);STICKLINE(C>=O,C,O,9,1),COLORRED;STICKLINE(C>=O,L,O,0.1,0),COLORRED;STICKLINE(C>=O,C,H,0.1,0),COLORRED;STICKLINE(C<O,C,O,9,0),COLORFFFF00;STICKLINE(C<O,H,L,0.1,0),COLORFFFF00;【大智慧】分时扫盘(主力扫盘、大盘参考线、板块指数)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】TBS决策(压力位、支撑位、警示位、买卖点决策)
【大智慧】TBS决策(压力位、支撑位、警示位、买卖点决策)-指标公式源码a:="[email=STSFunc@CALSTSL]STSFunc@CALSTSL[/email]";R1:="[email=STSFunc@STS_RISK1]STSFunc@STS_RISK1[/email]";R2:="[email=STSFunc@STS_RISK2]STSFunc@STS_RISK2[/email]";S1:="[email=STSFunc@STS_STS1]STSFunc@STS_STS1[/email]";S2:="[email=STSFunc@STS_STS2]STSFunc@STS_STS2[/email]";TBS:="[email=STSFunc@STS_STSBS]STSFunc@STS_STSBS[/email]";DN:="[email=STSFunc@STS_STSDN]STSFunc@STS_STSDN[/email]";UP:="[email=STSFunc@STS_STSUP]STSFunc@STS_STSUP[/email]";压力位:UP,linethick0,color0000ff,PRECIS2;支撑位:DN,linethick0,color00ff00,PRECIS2;警示位:IF(R1<>0,ABS(R1),IF(R2<>0,ABS(R2),0)),linethick0,colorff00ff,PRECI S2;DRAWLINE(UP>0,UP,UP<>REF(UP,1) ORC=DYNAINFO(7),REF(ABS(UP),1),0),dotline,color0000ff,LINETHICK1; DRAWLINE(DN>0,DN,DN<>REF(DN,1) ORC=DYNAINFO(7),REF(ABS(DN),1),0),dotline,color00ff00,LINETHICK1; DRAWLINE(UP<0,-UP,UP<>REF(UP,1) ORC=DYNAINFO(7),REF(ABS(UP),1),0),color0000ff;DRAWLINE(DN<0,-DN,DN<>REF(DN,1) ORC=DYNAINFO(7),REF(ABS(DN),1),0),color00ff00;DRAWLINE(R1>0,R1,R1<>REF(R1,1) ORC=DYNAINFO(7),REF(ABS(R1),1),0),dotline,colorEE88ff;DRAWLINE(R2>0,R2,R2<>REF(R2,1) ORC=DYNAINFO(7),REF(ABS(R2),1),0),dotline,colorEE88ff;DRAWLINE(R1<0,-R1,R1<>REF(R1,1) ORC=DYNAINFO(7),REF(ABS(R1),1),0),colorEE88ff;DRAWLINE(R2<0,-R2,R2<>REF(R2,1) ORC=DYNAINFO(7),REF(ABS(R2),1),0),colorEE88ff;drawbmp(TBS=1,l*0.96,'STSbuy1.bmp'),align1,valign0;drawbmp(TBS=-1,h*1.07,'STSsell1.bmp'),align1,valign0;drawbmp(S2=14,l*0.94,'STSbuy.bmp'),align1,valign0;drawbmp(S2=-14,h*1.09,'STSsell.bmp'),align1,valign0;drawtext(S1>0,L,STR(S1)),color00FF00,LINETHICK1,align1,valign0; drawtext(S1<0,H*1.03,STR(-S1)),color00FF00,LINETHICK1,align1,valign0; drawtext(S2>0 andS2<13,l*0.97,STR(S2)),color0000FF,LINETHICK1,align1,valign0;drawtext(S2<0 andS2>-13,H*1.06,STR(-S2)),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=13,l*0.97,'+'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=14,l*0.97,'13'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=-13,h*1.06,'+'),color0000FF,LINETHICK1,align1,valign0; drawtext(S2=-14,h*1.06,'13'),color0000FF,LINETHICK1,align1,valign0;DRAWGBK(v>=0,STRIP(RGB(18,19,51),RGB(1,155,155),0));N:=2;B1:=MA(CLOSE,1);B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1) ;SMA2:=MA(B2,3) ;FILLRGN(b2,sma2,b2>sma2),colorred;FILLRGN(b2,sma2,b2<sma2),colorgreen;a:="[email=LTFunc4@FORLT2]LTFunc4@FORLT2[/email]";s1:="[email=LTFunc4@LT_S1]LTFunc4@LT_S1[/email]";hs:="[email=LTFunc4@LT_HS]LTFunc4@LT_HS[/email]";ls:="[email=LTFunc4@LT_LS]LTFunc4@LT_LS[/email]";p1:="[email=LTFunc4@LT_P1]LTFunc4@LT_P1[/email]";upp:="[email=LTFunc4@LT_UPP]LTFunc4@LT_UPP[/email]";udd:="[email=LTFunc4@LT_UDD]LTFunc4@LT_UDD[/email]";{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};d1:=ema(abs("ddx.ddx"),60);d2:=max("ddx.ddx"/d1+7.5,7.5);d3:=min("ddx.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.能量级别:'+numtostrn(d3,1)+'级';bs:=''+datestr(date)+'买卖点决策系统提示\n'+'1.BS点:'+tr2+','+tr0+'2.短线:'+tr3+tr1+'\n'+tr4;drawflagtext(1,fb,bs);STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;STICKLINE(CLOSE>OPEN or CLOSE=OPEN andCLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;STICKLINE(CLOSE<OPEN or CLOSE=OPEN andCLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54; drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2; drawbmp(s1=1 and ref(s1,1)=0 and(p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;drawbmp(s1=0 and ref(s1,1)=1 and(p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;【大智慧】TBS决策(压力位、支撑位、警示位、买卖点决策)-指标公式效果图(文档来源:若水财经社区)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【大智慧】BS决策(收盘价、能量级别、决策、买卖点决策)-指标公式源码
INPUT:Q1(5,0,1000),Q2(10,0,1000),Q3(20,0,1000),Q4(30,0,1000),Q5(60,0, 1000),Q6(120,0,1000);
MA1:MA(C,Q1);
MA2:MA(C,Q2);
MA3:MA(C,Q3);
MA4:MA(C,Q4);
MA5:MA(C,Q5);
MA6:MA(C,Q6);
a:="[email=LTFunc4@FORLT2]LTFunc4@FORLT2[/email]";
s1:="[email=LTFunc4@LT_S1]LTFunc4@LT_S1[/email]";
hs:="[email=LTFunc4@LT_HS]LTFunc4@LT_HS[/email]";
ls:="[email=LTFunc4@LT_LS]LTFunc4@LT_LS[/email]";
p1:="[email=LTFunc4@LT_P1]LTFunc4@LT_P1[/email]";
upp:="[email=LTFunc4@LT_UPP]LTFunc4@LT_UPP[/email]";
udd:="[email=LTFunc4@LT_UDD]LTFunc4@LT_UDD[/email]";
{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};
d1:=ema(abs("日线-DDX.ddx"),60);
d2:=max("日线-DDX.ddx"/d1+7.5,7.5);
d3:=min("日线-DDX.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.能量级别:'+numtostrn(d3,1)+'级';
bs:=''+datestr(date)+'买卖点决策系统提示\n'+'1.BS点:'+tr2+','+tr0+'2.短线:'+tr3+tr1+'\n'+tr4;
drawflagtext(1,fb,bs);
DRAWICON(d3>1,LOW,6),align1;
drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;
drawbmp(s1=1 and ref(s1,1)=0 and
(p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
drawbmp(s1=0 and ref(s1,1)=1 and
(p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;
BS决策:=if((p1=1 and ref(p1,1)=0),1,if((p1=0 and ref(p1,1)=1),2,0)); BS短线:=if((s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1),1,if((s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1),2,0));
BS能量:=d3;
IF(BS决策<1 and BS短线<1 and BS能量<1) THEN BEGIN
STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;
STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;
STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,o,c,7.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,l,c,0.5,1),color5454ff;
STICKLINE(p1=1 and c<=o,h,o,0.5,1),color5454ff;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54; STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54; END;
{金色}
STICKLINE(BS能量>1,C,O,8.3,0),COLOR005555;
STICKLINE(BS能量>1,C,O,6.4,0),COLOR007777;
STICKLINE(BS能量>1,C,O,4.9,0),COLOR009999;
STICKLINE(BS能量>1,C,O,3.4,0),COLOR00BBBB;
STICKLINE(BS能量>1,C,O,1.9,0),COLOR00DDDD;
STICKLINE(BS能量>1,C,O,0.4,0),COLOR00FFFF;
{红色}
STICKLINE(BS决策=1,C,O,8.3,0),COLOR000088;
STICKLINE(BS决策=1,C,O,6.4,0),COLOR0000AA;
STICKLINE(BS决策=1,C,O,4.9,0),COLOR0000CC;
STICKLINE(BS决策=1,C,O,3.4,0),COLOR0000EE;
STICKLINE(BS决策=1,C,O,1.9,0),COLOR5D5DFF;
STICKLINE(BS决策=1,C,O,0.4,0),COLOR8585FF;
{粉红色}
STICKLINE(BS短线=1,C,O,8.3,0),COLOR3333FF;
STICKLINE(BS短线=1,C,O,6.4,0),COLOR5555FF;
STICKLINE(BS短线=1,C,O,4.9,0),COLOR7777FF;
STICKLINE(BS短线=1,C,O,3.4,0),COLOR9999FF;
STICKLINE(BS短线=1,C,O,1.9,0),COLORBBBBFF;
STICKLINE(BS短线=1,C,O,0.4,0),COLORDDDDFF;
{蓝色}
STICKLINE(BS决策=2,C,O,8.3,0),COLORFF0000;
STICKLINE(BS决策=2,C,O,6.4,0),COLORFF2222;
STICKLINE(BS决策=2,C,O,4.9,0),COLORFF4444;
STICKLINE(BS决策=2,C,O,3.4,0),COLORFF6666;
STICKLINE(BS决策=2,C,O,1.9,0),COLORFF8888;
STICKLINE(BS决策=2,C,O,0.4,0),COLORFFAAAA;
{粉蓝色}
STICKLINE(BS短线=2,C,O,8.3,0),COLOR555500;
STICKLINE(BS短线=2,C,O,6.4,0),COLOR777700;
STICKLINE(BS短线=2,C,O,4.9,0),COLOR999900;
STICKLINE(BS短线=2,C,O,3.4,0),COLORBBBB00;
STICKLINE(BS短线=2,C,O,1.9,0),COLORDDDD00;
STICKLINE(BS短线=2,C,O,0.4,0),COLORFFFF00;
【大智慧】BS决策(收盘价、能量级别、决策、买卖点决策)-指标公式效果图
(文档来源:若水财经社区)。