【股票指标公式下载】-【大智慧】智慧持股(持股线、大盘股、小盘股、中盘古)
大智慧各户资金分时指标公式-大智慧公式-股旁网
大智慧各户资金分时指标公式-大智慧公式-股旁网N:=5;ZLLR:=AMOUNT*(DYNAINFO(95)+DYNAINFO(94))/10000;ZLLC:=AMOUNT*(DYNAINFO(98)+DYNAINFO(97))/10000;主净:SUM(ZLLR-ZLLC,0),COLOR00FFFF,LINETHICK0,PRECIS2;主现:=SUM(ZLLR-ZLLC,N);{N分钟}TDLR:=AMOUNT*DYNAINFO(95)/10000;TDLC:=AMOUNT*DYNAINFO(98)/10000;超净:SUM(TDLR-TDLC,0),COLORFF00FF,LINETHICK0,PRECIS2;超现:=SUM(TDLR-TDLC,N);{N分钟}DDLR:=AMOUNT*DYNAINFO(94)/10000;DDLC:=AMOUNT*DYNAINFO(97)/10000;大净:SUM(DDLR-DDLC,0),COLOR00FF00,LINETHICK0,PRECIS2;大现:=SUM(DDLR-DDLC,N);{N分钟}ZDLR:=AMOUNT*DYNAINFO(93)/10000;ZDLC:=AMOUNT*DYNAINFO(96)/10000;中净:SUM(ZDLR-ZDLC,0),COLORB8B8B8,LINETHICK0,PRECIS2;中现:=SUM(ZDLR-ZDLC,N);{N分钟}XDLR:=(AMOUNT-AMOUNT*(DYNAINFO(95)+DYNAINFO(94)+DYNAINFO(93)))/10 000;XDLC:=(AMOUNT-AMOUNT*(DYNAINFO(98)+DYNAINFO(97)+DYNAINFO(96)))/10 000;散净:SUM(XDLR-XDLC,0),COLORFF9911,LINETHICK0;散现:=SUM(XDLR-XDLC,N);{N分钟}主力买:=(ORDERVOL(1,2)/CAPITAL)*100;主力卖:=(ORDERVOL(2,2)/CAPITAL)*100;主力净买:=sum((主力买-主力卖),0);超大买:=(ORDERVOL(1,3)/CAPITAL)*100;超大卖:=(ORDERVOL(2,3)/CAPITAL)*100;超大净买:=sum((超大买-超大卖),0);大户买:=((ORDERVOL(1,2)-ORDERVOL(1,3))/CAPITAL)*100;大户卖:=((ORDERVOL(2,2)-ORDERVOL(2,3))/CAPITAL)*100;大户净买:=sum((大户买-大户卖),0);中户买:=(ORDERVOL(1,1)/CAPITAL-ORDERVOL(2,1)/CAPITAL)*100;中户卖:=(ORDERVOL(1,2)/CAPITAL-ORDERVOL(2,2)/CAPITAL)*100;中户净买:=sum((中户买-中户卖),0);散户买:=(1-ORDERVOL(1,1)/CAPITAL)*100;散户卖:=(1-ORDERVOL(2,1)/CAPITAL)*100;散户净买:=sum((散户买-散户卖),0);主力: 主力净买,COLOR3D;主力,COLOR00FFFF,LINETHICK2;STR1:=''+'(主力)'+NUMTOSTRN(主净,2)+' (主现)' + NUMTOSTRN(主现,2)+'\n';DRAWTEXT(BARSTATUS,主力,STR1),COLOR00FFFF;超大: 超大净买,COLORFF00FF,LINETHICK2;STR1:=''+'(超大)'+NUMTOSTRN(超净,2)+' (超现)' + NUMTOSTRN(超现,2)+'\n';DRAWTEXT(BARSTATUS,超大,STR1),COLORFF00FF;大户: 大户净买,COLOR00FF00,LINETHICK2;STR1:=''+'(大户)'+NUMTOSTRN(大净,2)+' (大现)' + NUMTOSTRN(大现,2)+'\n';DRAWTEXT(BARSTATUS,大户,STR1),COLOR00FF00;中户:中户净买,COLORB5B5B5,LINETHICK2;STR1:=''+'(中户)'+NUMTOSTRN(中净,2)+' (中现)' + NUMTOSTRN(中现,2)+'\n';DRAWTEXT(BARSTATUS,中户,STR1),COLORB5B5B5;散户: 散户净买,COLORFF9911,LINETHICK2;STR1:=''+'(散户)'+NUMTOSTRN(散净,2)+' (散现)' + NUMTOSTRN(散现,2)+'\n';。
【股票指标公式下载】-【大智慧】板块分析(流通市值、总股本、流通盘大小、日换手率)
【大智慧】板块分析(流通市值、总股本、流通盘大小、日换手率)-指标公式源码{经营F10 十大版块指数分析}{经营F10}流通市值:=C*CAPITAL*VOLUNIT/100000000;总股本:=FINANCE2(35)/10000;流通盘大小:=FINANCE2(37)/10000;当前股价或指数:=C;日换手率:=SUM(VOL,1)*100/CAPITAL;主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);净资产收益率:=FINANCE2(5);毛利润率:=FINANCE2(12);净利润率:=FINANCE2(33)/FINANCE2(27)*100;每股经营现金流:=FINANCE2(6);获利盘:=WINNER(CLOSE)*100;套牢盘:=100*(1-WINNER(C));F:=COST(5 );J:=COST(95 );M:=COST(15 );N:=COST(85 );F1:=(J-F)/(F+J)*100;M1:=(N-M)/(N+M)*100;成本集中度90﹪:=F1;成本集中度70﹪:=M1;浮筹比例:=(winner(c*1.1)-winner(c*0.9))/winner(hhv(h,0))*100; DRAWTEXTABS(20,20,'板块分析经营F10'),LINETHICK6,Color00FFFF; DRAWTEXTABS(260,20,STKLABEL+' '+STKNAME),LINETHICK6,Color00FFFF; DRAWTEXTABS(20,60,'流通市值:'+流通市值+'亿 '),LINETHICK1,Color00FF00; DRAWTEXTABS(180,60,'总股本:'+总股本+'亿 '),LINETHICK1,Color00FF00; DRAWTEXTABS(320,60,'流通盘大小:'+流通盘大小+'亿'),LINETHICK1,Color00FF00;DRAWTEXTABS(20,80,'主营收入同比增长:'+主营收入同比+'%'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(180,80,'净利润同比增长:'+净利润同比增长+'%'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(320,80,'净资产收益率:'+净资产收益率+'%'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(20,100,'主营销售毛利润率:'+毛利润率+'%'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(180,100,'净利润率:'+净利润率+'%'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(320,100,'每股经营现金流:'+每股经营现金流+'元'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(20,140,STKLABEL+' '+STKNAME),LINETHICK2,Color00FF05; DRAWTEXTABS(180,140,'当前:'+当前股价或指数+'--'),LINETHICK2,Color00FF00;DRAWTEXTABS(320,140,'换手率:'+日换手率+'%'),LINETHICK2,Color00FF00; DRAWTEXTABS(20 ,120,'筹码分析:'),Color00FFFF;DRAWTEXTABS(80,120,'获利盘:'+获利盘+'% '),LINETHICK1,Color0000FF; DRAWTEXTABS(180,120,'套牢盘:'+套牢盘+'% '),LINETHICK1,ColorFF6A00; DRAWTEXTABS(280,120,'底仓区成本集中度:'+成本集中度70﹪+'%'),LINETHICK1,ColorFFFF00;DRAWTEXTABS(435,120,'吸筹拉升区成本集中度:'+成本集中度90﹪+'% '),LINETHICK1,ColorFFFF00;DRAWTEXTABS(620,120,'浮筹比例:'+浮筹比例+'%'),LINETHICK1,ColorFFFF00;{板块分析}{---------- 智能键盘:只要键入板块代码,即可进入该板块,分析所对应的指数成分股,按当前股价涨跌金额高低排列 ----------}送转:=STKINDI('993590','MA.MA1',5,10,15,20);次新股:=STKINDI('993075','MA.MA1',5,10,15,20);券商重仓:=STKINDI('993445','MA.MA1',5,10,15,20);社保重仓:=STKINDI('993405','MA.MA1',5,10,15,20);QFII持股:=STKINDI('993625','MA.MA1',5,10,15,20);奥运:=STKINDI('993095','MA.MA1',5,10,15,20);整体上市:=STKINDI('993865','MA.MA1',5,10,15,20);定向增发:=STKINDI('993765','MA.MA1',5,10,15,20);预盈预增:=STKINDI('993386','MA.MA1',5,10,15,20);基金重仓:=STKINDI('993129','MA.MA1',5,10,15,20);DRAWTEXTABS(20,160,'板块代码:993590--送转分红---当前指数:'+STKINDI('993590','MA.MA1',1,10,15,20)),COLORWHITE; DRAWTEXTABS(20,180,'板块代码:993075--次新股板---当前指数:'+STKINDI('993075','MA.MA1',1,10,15,20)),COLORWHITE; DRAWTEXTABS(20,200,'板块代码:993625--QFII持股---当前指数:'+STKINDI('993625','MA.MA1',1,10,15,20)),COLORWHITE; DRAWTEXTABS(20,220,'板块代码:993445--券商重仓---当前指数:'+STKINDI('993445','MA.MA1',1,10,15,20)),COLORWHITE; DRAWTEXTABS(20,240,'板块代码:993405--社保重仓---当前指数:'+STKINDI('993405','MA.MA1',1,10,15,20)),COLORWHITE; DRAWTEXTABS(20,260,'板块代码:993095--奥运板块---当前指数:'+STKINDI('993095','MA.MA1',1,10,15,20)),COLORWHITE; DRAWTEXTABS(20,280,'板块代码:993130--基金重仓---当前指数:'+STKINDI('993130','MA.MA1',1,10,15,20)),Color00FFFF; DRAWTEXTABS(20,300,'板块代码:993386--预盈预增---当前指数:'+ STKINDI('993386','MA.MA1',1,10,15,20)),Color00FFFF; DRAWTEXTABS(20,320,'板块代码:993765--定向增发---当前指数:'+STKINDI('993765','MA.MA1',1,10,15,20)),Color00FFFF; DRAWTEXTABS(20,340,'板块代码:993865--整体上市---当前指数:'+STKINDI('993865','MA.MA1',1,10,15,20)),Color00FFFF;【大智慧】板块分析(流通市值、总股本、流通盘大小、日换手率)-指标公式效果图(文档来源:若水财经社区)。
大智慧组合主图指标公式
大智慧组合主图指标公式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日线就持币。
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)
大智慧七种技术指标主图指标公式(MACD KDJ CCI RSI DMI DMA 主图)INPUT:AM(1,0,1),AJ(1,0,1),AC(1,0,1),AR(1,0,1),AD(1,0,1),DM(1,0,1),ZL(1,0,1); DRAWGBKlast(c>0,strip(RGB(0,0,0),RGB(0,0,120),0));{1.K线}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8.5,0) ,COLOR000011;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000033;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000055;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),HIGH,LOW,1,0),color0000FF;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8.5,0),color006600;STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),color008800;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),HIGH,LOW,1,0),color00FF00;LC:=REF(C,1);卖黄金:((SMA(MAX((C - LC),0),3,1) / SMA(ABS((C - LC)),3,1)) * 100),LINETHICK0; DRAWTEXT(CROSS(80,卖黄金) ,high*1.04,'顶'),COLOR00ffFF,ALIGN1,LINETHICK1; STICKLINE(CROSS(80,卖黄金) AND C<O,H,L,2,0),COLOR00ffff,LAYER0;STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,12,0 ),COLOR007777,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,8,0 ),COLOR009999,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,6,0 ),COLOR00BBBB,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,4,0 ),COLOR00DDDD,LAYER0; STICKLINE(CROSS(80,卖黄金) AND C<O,C,O,2 ,0 ),COLOR00ffff,LAYER0; DRAWTEXTABS(5,5,'基本指标:MA5波段'),Color00FFff,LINETHICK3;BC:=(3*C+H+L)/5;MA5:EMA(MA(BC,5),5);PARTLINE(MA5,(MA5>REF(MA5,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),LINETHICK2,LAYE R0;XL:=BARSLAST(DISPSTATUS=1)+1;E:=llvall(llv(L,XL))*0.95;IF AM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:MACD'),Color0000ff,LINETHICK4;DIFF:=EMA( EMA(CLOSE,12) - EMA(CLOSE,26),3);DEA:=EMA(DIFF,9);MACD:2*(DIFF-DEA),Color0598FF,LINETHICK0;;STICKLINE(MACD>0,E+MACD*2,E,12,0),Color0598FF;STICKLINE(MACD<0,E+MACD*2,E,12,0),ColorFF5500;END;IF AJ=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:KDJ'),Colorff00ff,LINETHICK4;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:(3*K-2*D),Color05FFFF,LINETHICK0;if(CROSS(K,D) AND BARSLAST(CROSS(D,K))<3,E*1.09,E),ColorFF9910 ; STICKLINE(K>D,E+(K-D)/50,E,12,0),Color0000FF;STICKLINE(K<D,E+(K-D)/50,E,12,0),Color00FF00;END;IF AC=1 THEN BEGINDRAWTEXTABS(200,5,'指标:CCI'),Color00ffff,LINETHICK4;TYP := (HIGH + LOW + CLOSE)/3;CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),Color05FF00,LINETHICK0;; STICKLINE(CCI>0,E+CCI/350,E,12,0),Color0077FF;STICKLINE(CCI<0,E+CCI/350,E,12,0),ColorFF9900;END;IF AR=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:RSI'),Color00ff00,LINETHICK4;LC := REF(CLOSE,1);RSI:SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100,ColorFF05FF,LINE THICK0;CRSI:="RSI.RSI3#WEEK";金叉RSI:STICKLINE(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E,E*1.1,0.6,0),ColorFF 00FF;DRAWTEXT(CROSS("RSI.RSI2#WEEK","RSI.RSI3#WEEK"),E*1.1,'金叉'),COLOR0000FF;STICKLINE(RSI>CRSI,E+(RSI-CRSI)/50,E,12,0),Color0000FF;STICKLINE(RSI<CRSI,E+(RSI-CRSI)/50,E,12,0),Color00FF00;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:=EMA(VAR1,13)-EMA(VAR1,73);SD:=EMA(SK,2);XG:=((CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03) OR (CROSS(SK,SD) AND SK<=-0.14 )OR (CROSS(SK,SD) AND SK<=0.05 AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035)) OR 金叉RSI);STICKLINE(XG,E,E*1.15,0.6,0),COLOR00FFFF;DRAWTEXT(XG,E*1.15,'突破'),COLOR00FFBB;END;IF AD=1 THEN BEGIN{DMI新编}DRAWTEXTABS(250,5,'技术指标:DMI'),Color0598ff,LINETHICK4;N:=21;M:=6;M1:=20;TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LO W)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),N);DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),N);PDI:= DMP*100/TR1;MDI:DMM*100/TR1,Color05FFFF,LINETHICK0;ADX:= EMA((PDI-MDI)/(MDI+PDI)*100,M)*2;ADXR:=EMA(ADX,M);ADMA:=EMA(ADX,M1);OMD:=(ADX-2*ADMA+ADXR)/2;STICKLINE( OMD>0,E,E+OMD/100,12,0),COLORRED;STICKLINE(OMD<0,E,E+OMD/100,12,0),COLORGREEN;END;IF DM=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:DMA'),ColorFF55ff,LINETHICK4;DDD:=(MA(CLOSE,10)-MA(CLOSE,50));AMA:=MA(DDD,10);STICKLINE( DDD>AMA,E,E+(DDD-AMA),12,0),COLORFF22FF;STICKLINE(DDD<AMA,E,E+(DDD-AMA),12,0),COLOR99FF99;END;IF ZL=1 THEN BEGINDRAWTEXTABS(250,5,'技术指标:主力进出'),ColorFF55ff,LINETHICK4;jcs:=ZLSHORT;jcm:=ma(zlshort ,12);STICKLINE(jcs>jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLOR222299; STICKLINE(jcs<jcm,E,E+(jcs-jcm)/CAPITAL*5000,12,0),COLORFFee00; END;。
【股票指标公式下载】-【大智慧】资金流(主力、大户、散户、占比)
【大智慧】资金流(主力、大户、散户、占比)-指标公式源码主力bbd:=(BIGORDER(1)-BIGORDER(2))*AMOUNT/10000;超大bbd:=(BIGORDER(1,3)-BIGORDER(2,3))*AMOUNT/10000;大户bbd:=主力bbd-超大bbd;中户bbd:=(BIGORDER(1,1)-BIGORDER(2,1))*AMOUNT/10000-主力bbd;散户bbd:=((1-BIGORDER(1,1))-(1-BIGORDER(2,1)))*AMOUNT/10000;占比1:=(BIGORDER(1)-BIGORDER(2));占比2:=(BIGORDER(1)-BIGORDER(2))*AMOUNT/(CAPITAL*c); DRAWTEXTREL(15,710,'总股本:'+NUMTOSTRn(FINANCE2(35),0)+'万股' +' 流通A股:'+NUMTOSTRn(FINANCE2(37),0)+'万股'+' 每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+' 主营收入同比增长:'+NUMTOSTRN(FINANCE2(11),2)+'%'+' 净利润同比增长:'+NUMTOSTRN(FINANCE2(10),2)+'%'),Color0088FF; DRAWTEXTREL(80,25,' Superviiew资金流向'),ColorFFFF00,LINETHICK3; DRAWTEXTREL(410,25,' '+STKLABEL),ColorWHITE,LINETHICK3; DRAWTEXTREL(310,25,' '+STKNAME),ColorRED,LINETHICK3; DRAWTEXTREL(550,30,' 所属版块: '+BKNAME),Color555FFF; DRAWTEXTREL(115,99,' 日期'),ColorRED;DRAWTEXTREL(144,139,'月'+DAY),ColorEEFF00;DRAWTEXTREL(125,139,'年'+MONTH),ColorEEFF00;DRAWTEXTREL(95,139,' '+YEAR),ColorEEFF00;DRAWTEXTREL(170,139,'日'),ColorEEFF00;DRAWTEXTREL(115,189,'前一交易日 '),Color55FF55;DRAWTEXTREL(115,239,'前二交易日'),Color55EE00;DRAWTEXTREL(115,289,'前三交易日'),Color55FF00;DRAWTEXTREL(115,339,'前四交易日'),Color55FF00;DRAWTEXTREL(115,389,'SV 5日统计'),Color555FFF,LINETHICK2; DRAWTEXTREL(115,439,'SV10日统计'),Color555FFF,LINETHICK2; DRAWTEXTREL(115,489,'SV20日统计'),Color555FFF,LINETHICK2; DRAWTEXTREL(245,99,'散户净流入(万元)'),Color555FFF;DRAWTEXTREL(365,99,'中户净流入(万元)'),Color555FFF;DRAWTEXTREL(485,99,'大户净流入(万元)'),Color555FFF;DRAWTEXTREL(605,99,'超大户净流入(万元)'),Color555FFF; DRAWTEXTREL(735,99,'主力净流入(万元)'),Color555FFF;DRAWTEXTREL(875,99,'占总成交额比(%)'),Color555FFF;DRAWTEXTREL(1000,99,'占流通市值比(%)'),Color555FFF;DRAWTEXTREL(85,69,'────────────────────────────────────────────────────────────────────────────────────'),ColorRED; DRAWTEXTREL(245,139,' '+散户bbd),Color208FFF;DRAWTEXTREL(365,139,' '+中户bbd),Color208FFF;DRAWTEXTREL(485,139,' '+大户bbd),Color208FFF;DRAWTEXTREL(605,139,' '+超大bbd),Color208FFF;DRAWTEXTREL(735,139,' '+主力bbd),Color208FFF;DRAWTEXTREL(875,139,' '+占比1),Color208FFF;DRAWTEXTREL(1000,139,' '+占比2),Color208FFF;DRAWTEXTREL(245,189,' '+REF(散户bbd,1)),Color208FFF; DRAWTEXTREL(365,189,' '+REF(中户bbd,1)),Color208FFF; DRAWTEXTREL(485,189,' '+REF(大户bbd,1)),Color208FFF; DRAWTEXTREL(605,189,' '+REF(超大bbd,1)),Color208FFF; DRAWTEXTREL(735,189,' '+REF(主力bbd,1)),Color208FFF; DRAWTEXTREL(875,189,' '+REF(占比1,1)),Color208FFF; DRAWTEXTREL(1000,189,' '+REF(占比2,1)),Color208FFF; DRAWTEXTREL(245,239,' '+REF(散户bbd,2)),Color208FFF; DRAWTEXTREL(365,239,' '+REF(中户bbd,2)),Color208FFF; DRAWTEXTREL(485,239,' '+REF(大户bbd,2)),Color208FFF; DRAWTEXTREL(605,239,' '+REF(超大bbd,2)),Color208FFF; DRAWTEXTREL(735,239,' '+REF(主力bbd,2)),Color208FFF; DRAWTEXTREL(875,239,' '+REF(占比1,2)),Color208FFF; DRAWTEXTREL(1000,239,' '+REF(占比2,2)),Color208FFF; DRAWTEXTREL(245,289,' '+REF(散户bbd,3)),Color208FFF; DRAWTEXTREL(365,289,' '+REF(中户bbd,3)),Color208FFF; DRAWTEXTREL(485,289,' '+REF(大户bbd,3)),Color208FFF; DRAWTEXTREL(605,289,' '+REF(超大bbd,3)),Color208FFF; DRAWTEXTREL(735,289,' '+REF(主力bbd,3)),Color208FFF; DRAWTEXTREL(875,289,' '+REF(占比1,3)),Color208FFF; DRAWTEXTREL(1000,289,' '+REF(占比2,3)),Color208FFF;DRAWTEXTREL(245,339,' '+REF(散户bbd,4)),Color208FFF; DRAWTEXTREL(365,339,' '+REF(中户bbd,4)),Color208FFF; DRAWTEXTREL(485,339,' '+REF(大户bbd,4)),Color208FFF; DRAWTEXTREL(605,339,' '+REF(超大bbd,4)),Color208FFF; DRAWTEXTREL(735,339,' '+REF(主力bbd,4)),Color208FFF; DRAWTEXTREL(875,339,' '+REF(占比1,4)),Color208FFF; DRAWTEXTREL(1000,339,' '+REF(占比2,4)),Color208FFF; DRAWTEXTREL(245,389,' '+SUM(散户bbd,5)),Color208FFF; DRAWTEXTREL(365,389,' '+SUM(中户bbd,5)),Color208FFF; DRAWTEXTREL(485,389,' '+SUM(大户bbd,5)),Color208FFF; DRAWTEXTREL(605,389,' '+SUM(超大bbd,5)),Color208FFF; DRAWTEXTREL(735,389,' '+SUM(主力bbd,5)),Color208FFF; DRAWTEXTREL(875,389,' '+SUM(占比1,5)),Color208FFF; DRAWTEXTREL(1000,389,' '+SUM(占比2,5)),Color208FFF; DRAWTEXTREL(245,439,' '+SUM(散户bbd,10)),Color208FFF; DRAWTEXTREL(365,439,' '+SUM(中户bbd,10)),Color208FFF; DRAWTEXTREL(485,439,' '+SUM(大户bbd,10)),Color208FFF; DRAWTEXTREL(605,439,' '+SUM(超大bbd,10)),Color208FFF; DRAWTEXTREL(735,439,' '+SUM(主力bbd,10)),Color208FFF; DRAWTEXTREL(875,439,' '+SUM(占比1,10)),Color208FFF; DRAWTEXTREL(1000,439,' '+SUM(占比2,10)),Color208FFF; DRAWTEXTREL(245,489,' '+SUM(散户bbd,20)),Color208FFF; DRAWTEXTREL(365,489,' '+SUM(中户bbd,20)),Color208FFF; DRAWTEXTREL(485,489,' '+SUM(大户bbd,20)),Color208FFF; DRAWTEXTREL(605,489,' '+SUM(超大bbd,20)),Color208FFF; DRAWTEXTREL(735,489,' '+SUM(主力bbd,20)),Color208FFF; DRAWTEXTREL(875,489,' '+SUM(占比1,20)),Color208FFF; DRAWTEXTREL(1000,489,' '+SUM(占比2,20)),Color208FFF;【大智慧】资金流(主力、大户、散户、占比)-指标公式效果图(文档来源:若水财经社区)。
大智慧短期底部指标公式
大智慧短期底部指标公式RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);短期底部:=LLV(OPEN,30);K:SMA(RSV,3,1);D:SMA(K,3,1);J:((3 * K) - (2 * D));AA10:=MA(CLOSE,10);AA12:=MA(CLOSE,12);BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);IF((K > D),K,D),COLORFF00FF;IF((K < D),D,K),COLORFFFF00;IF((J > D),J,D),LINETHICK2,COLOR0000FF;IF((J < D),D,J),LINETHICK2,COLOR00FF00;20,POINTDOT,COLOR00FF00;80,POINTDOT,COLOR00FF00;VAR2:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR3:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR4:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR5:=(((VAR2 + (2 * VAR3)) + (3 * VAR4)) / 6);VAR6:=MA(VAR5,3);底部1:IF(VAR6 ,20,0),COLORFFFF00;STICKLINE((CROSS(J,K) AND (底部 1 >= 20)),100,0,2,0),COLORFFFFFF;DRAWICON((CROSS(J,K) AND (底部1 >= 20)),100,1);DRAWTEXT((CROSS(J,K) AND (底部1 >= 20)),98,'全');STICKLINE((VAR6 <= (0 - 15)),80,4.88,2,0);DRAWTEXT((VAR6 <= (0 - 15)),80,'买'),COLORFFFFFF;STICKLINE((VAR6 <= (0 - 15)),80,60,2,0),COLOR0000FF;VAR7:=DMA(EMA(CLOSE,12),((SUM(VOL,5) / 3) / CAPITAL));VAR8:=(((CLOSE - VAR7) / VAR7) * 100);VAR9:=((((REF(VAR8,1) < (0 - 40)) AND (VAR8 > REF(VAR8,1))) AND (REF(VAR8,1) < REF(VAR8,2))) AND ((VAR8 - REF(VAR8,1)) > 2.5));VARA:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VARB:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VARC:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VARD:=REF(CLOSE,1);VARE:=((SMA(MAX((CLOSE - VARD),0),5,1) / SMA(ABS((CLOSE - VARD)),5,1)) * 100);VARF:=(((HIGH + LOW) + CLOSE) / 3);VAR10:=((VARF - MA(VARF,14)) / (0.015 * AVEDEV(VARF,14)));VAR11:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR12:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR13:=(VAR11 AND VAR12);VAR14:=((((VARA >= (0 - 45)) AND (VARA <= (0 - 10))) AND (VARB <= (0 - 15))) AND (VARC <= (0 - 20)));VAR15:=(COUNT(VAR14,1) >= 1);VAR16:=(VAR13 AND VAR15);VAR17:=1;VAR18:=(CLOSE * VOL);VAR19:=EMA((((((MA(VAR18,4) / MA(VOL,4)) + (MA(VAR18,6) / MA(VOL,6))) + (MA(VAR18,13) / MA(VOL,13))) + (MA(VAR18,24) / MA(VOL,24))) / 4),1);VAR1A:=(1 * VAR19);VAR1B:=(VAR19 * 0.92);VAR1C:=EMA(CLOSE,34);VAR1D:=MA((VAR1C * 1.12),5);VAR1E:=MA((VAR1C * 0.82),5);VAR1F:=(CLOSE < VAR1E);VAR20:=((((((MA(AMOUNT,5) * VAR17) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < ((0 - 0.4) * VAR17));VAR21:=HHV(HIGH,500);VAR22:=LLV(LOW,500);VAR23:=HHV(HIGH,250);VAR24:=LLV(LOW,250);VAR25:=HHV(HIGH,125);VAR26:=LLV(LOW,125);VAR27:=MA(((((((VAR21 * 0.45) + (VAR23 * 0.5)) + VAR22) + VAR24) + VAR26) / 5),35);VAR28:=MA((((VAR23 * 0.62) + VAR26) / 2),35);VAR29:=MA((((VAR23 * 0.75) + VAR26) / 2),18);VAR2A:=MA((((((VAR23 * 0.93) + (VAR27 * 2)) + (VAR28 * 1.8)) + (VAR29 * 1.5)) / 4),18);VAR2B:=MA(((((VAR21 * 0.95) + (VAR27 * 3)) + (VAR28 * 2)) / 3),35);VAR2C:=VAR27;VAR2D:=VAR28;VAR2E:=VAR29;VAR2F:=VAR2A;VAR30:=VAR2B;VAR31:=((CLOSE - REF(MA(CLOSE,20),11)) < (0 - 2));VAR32:=(INDEXA / 100000000);VAR33:=INDEXADV;VAR34:=INDEXDEC;VAR35:=((VAR18 / (VAR18 + VAR19)) * VAR17);VAR36:=((VAR19 / (VAR18 + VAR19)) * VAR17);VAR37:=EMA(VAR35,10);VAR38:=EMA(VAR36,10);VAR39:=EMA(VAR37,10);VAR3A:=EMA(VAR38,20);VAR3B:=EMA(VAR37,3);VAR3C:=EMA(VAR39,6);VAR3D:=EMA(VAR3A,2);VAR3E:=(VAR3C - VAR3D);VAR3F:=(((VAR3C - REF(VAR3C,1)) > 0) AND ((REF(VAR3C,1) - REF(VAR3C,2)) < 0));VAR40:=IF((CROSS(VAR3B,VAR3C) AND (VAR3C <= 20)),30,0);VAR41:=VAR40;VAR42:=(SMA(((AMOUNT / VOL) / 100),13,1) * 1.15);VAR43:=(SMA(((AMOUNT / VOL) / 100),13,1) * 0.85);VAR44:=(CLOSE - REF(MA(CLOSE,20),11));VAR45:=(((((((((((((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43)) OR (((CLOSE < VAR1E) AND VAR31) AND VAR20)) OR ((CLOSE < VAR1E) AND (CLOSE < VAR43))) OR (((CLOSE < VAR1E) AND VAR20) AND (CLOSE < VAR43))) OR (VAR20 AND (CLOSE < VAR2C))) OR ((VAR20 AND VAR31) AND (VAR44 < (0 - 1.5)))) OR (VAR20 AND (CLOSE < VAR1E))) OR (VAR20 AND (VAR44 < (0 - 1.5)))) OR (VAR31 AND (CLOSE < VAR43))) OR ((CLOSE < VAR2C) AND (VAR44 < (0 - 1.5)))) OR ((CLOSE < VAR1E) AND VAR31));VAR46:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR47:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR48:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR49:=REF(CLOSE,1);VAR4A:=((SMA(MAX((CLOSE - VAR49),0),5,1) / SMA(ABS((CLOSE - VAR49)),5,1)) * 100);VAR4B:=(((HIGH + LOW) + CLOSE) / 3);VAR4C:=((VAR4B - MA(VAR4B,14)) / (0.015 * AVEDEV(VAR4B,14)));VAR4D:=(((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,110) / MA(VOL,110)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100)) < (0 - 0.273));VAR4E:=(((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.125));VAR4F:=(VAR11 AND VAR12);VAR50:=((((VAR2 >= (0 - 45)) AND (VAR2 <= (0 - 7))) AND (VAR3 <= (0 - 11))) AND (VAR4 <= (0 - 14)));VAR51:=(COUNT(VAR50,1) >= 1);VAR52:=(VAR4F AND VAR51);VAR53:=(((((VAR20 AND (CLOSE < VAR1E)) AND VAR31) AND (CLOSE < VAR2C)) AND VAR45) AND VAR52);VAR54:=(((CLOSE - MA(CLOSE,6)) / MA(CLOSE,6)) * 100);VAR55:=(((CLOSE - MA(CLOSE,12)) / MA(CLOSE,12)) * 100);VAR56:=(((CLOSE - MA(CLOSE,24)) / MA(CLOSE,24)) * 100);VAR57:=REF(CLOSE,1);VAR58:=((SMA(MAX((CLOSE - VAR57),0),5,1) / SMA(ABS((CLOSE - VAR57)),5,1)) * 100);VAR59:=(((HIGH + LOW) + CLOSE) / 3);VAR5A:=((VAR59 - MA(VAR59,14)) / (0.015 * AVEDEV(VAR59,14)));VAR5B:=((((((VAR54 >= (0 - 15.8)) AND (VAR54 <= (0 - 12.2))) AND (VAR55 <= (0 - 20.8))) AND (VAR56 <= (0 - 27.5))) AND(VAR58 <= 11.7)) AND (VAR5A <= (0 - 145)));VAR5C:=9.999999884842+026;VAR5D:=(COST(10) * 0);VAR5E:=((((MA(AMOUNT,5) / MA(VOL,5)) / 100) - ((MA(AMOUNT,125) / MA(VOL,125)) / 100)) / ((MA(AMOUNT,5) / MA(VOL,5)) / 100));VAR5F:=MA((((LLV(LOW,45) - CLOSE) / (HHV(HIGH,45) - LLV(LOW,45))) * 100),5);VAR60:=((CROSS((0 - 5),VAR5F) AND (VAR5E < (0 - 0.4))) AND (((CLOSE - MA(CLOSE,30)) / MA(CLOSE,30)) < (0 - 0.19)));VAR61:=MA(CLOSE,3);VAR62:=(REF(CLOSE,2) * 0.865);VAR63:=(REF(CLOSE,13) * 0.772);VAR64:=MIN(VAR62,VAR63);VAR65:=((100 * VOL) / CAPITAL);VAR66:=MA(CLOSE,13);VAR67:=IF(((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8)),1,0);猎鹰出击:IF(((((VAR9 OR VAR16) OR VAR53) OR VAR5B) OR ((((CLOSE - VAR64) / CLOSE) < 0.03) AND ((SUM(VAR65,5) / 5) < 1.8))),120,0),LINETHICK2,COLOR0000FF;VAR68:=0;MACD:(VAR6 * 5),COLORSTICK,LINETHICK2;STICKLINE((CROSS(K,D) AND (BB10 > 1)),70,0,2,0),COLORCC99FF;DRAWTEXT((CROSS(K,D) AND (BB10 > 1)),64,'短买'),COLOR00FF00;DRAWICON((CROSS(K,D) AND (BB10 > 1)),70,0);底部预警:STICKLINE((VAR6 <= (0 - 10)),0,(0 - 20),5,0),COLOR88B7EA;VARQ:=MA(CLOSE,152);VARW:=MA(CLOSE,194.16);VAREE:=(VARW + (2 * STD(CLOSE,170)));VARR:=(VARQ + (2 * STD(CLOSE,170)));VART:=IF((DATE > 1080822),0,1);VAR611:=EMA(HHV(HIGH,500),21);VAR71:=EMA(HHV(HIGH,250),21);VAR81:=EMA(HHV(HIGH,90),21);VAR91:=EMA(LLV(LOW,500),21);VARA1:=EMA(LLV(LOW,250),21);VARB1:=EMA(LLV(LOW,90),21);VARC1:=EMA((((((((VAR91 * 0.96) + (VARA1 * 0.96)) + (VARB1 * 0.96)) + (VAR611 * 0.558)) + (VAR71 * 0.558)) + (VAR81 * 0.558)) / 6),21);VARD1:=EMA((((((((VAR91 * 1.25) + (VARA1 * 1.23)) + (VARB1 * 1.2)) + (VAR611 * 0.55)) + (VAR71 * 0.55)) + (VAR81 * 0.65)) / 6),21);VARE1:=EMA((((((((VAR91 * 1.3) + (VARA1 * 1.3)) + (VARB1 * 1.3)) + (VAR611 * 0.68)) + (VAR71 * 0.68)) + (VAR81 * 0.68)) / 6),21);VARF1:=EMA((((((VARC1 * 3) + (VARD1 * 2)) + VARE1) / 6) * 1.738),21);VAR101:=REF(LOW,1);VAR111:=((SMA(ABS((LOW - VAR101)),3,1) / SMA(MAX((LOW - VAR101),0),3,1)) * 100);VAR121:=EMA(IF(((CLOSE * 1.35) <= VARF1),(VAR111 * 10),(VAR111 / 10)),3);VAR131:=LLV(LOW,30);VAR141:=HHV(VAR121,30);VAR151:=IF(MA(CLOSE,58),1,0);VAR161:=((EMA(IF((LOW <= VAR131),((VAR121 + (VAR141 * 2)) / 2),0),3) / 618) * VAR151);VAR171:=(((IF((VAR161 > 50),50,VAR161) / 20) * 15) * VART);底部吸筹:STICKLINE((VAR171 > 0),0,VAR171,1,1),COLORFF00FF;STICKLINE(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,0,3,0),COLOR0000FF;DRAWTEXT(((CROSS(K,D) AND ((AA10 - REF(AA10,1)) > 0)) AND (K <= 49)),80,'抄底'),COLOR0000FF;STICKLINE(CROSS(90,J),88,100,2,0),COLOR00FF00;DRAWTEXT(CROSS(90,J),108,'逃'),COLORFFFFFF;STICKLINE(CROSS(J,(0 - 5)),0,10,6,0),COLOR00FF00;DRAWTEXT(CROSS(J,(0 - 5)),(0 - 4),'低吸'),COLOR00FF00;SG:=EMA(HHV(HIGH,1),8);X1:=EMA(CLOSE,8);X30:=((X1 < REF(X1,1)) AND (CLOSE < X1));X31:=IF(((SG < REF(SG,1)) OR X30),1,0);全仓出击:=((((COUNT((X31 = 1),4) = 3) AND (X31 = 0)) AND (((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) > 0.085)) * 89);STICKLINE(全仓出击>=89,0,100,6,0),COLOR0000FF;DRAWICON((全仓出击 >= 89),全仓出击,1);DRAWTEXT((全仓出击 >= 89),89,'大胆杀入');开始关注:STICKLINE((VAR6 <= (0 - 8)),5,25,7,0);STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,8,0),COLOR000078;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,6,0),COLOR00009D;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 - 7))),0,100,5,0),COLOR0000FF;STICKLINE((CROSS(J,0) AND (VAR6 <= (0 -7))),0,100,2,0),COLOR007AB5;DRAWTEXT((CROSS(J,0) AND (VAR6 <= (0 - 7))),100,'导弹发射'),COLOR0000FF;均5:=MA(CLOSE,4);X7:=EMA(EMA(EMA(HIGH,9),9),9);海底:=(X7 * 0.92);海底2:=(X7 * 0.933);中轨道:=MA(CLOSE,2);DRAWTEXT(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),85,'底部'),COLOR00FFFF;STICKLINE(((CROSS(中轨道,均5) AND (LOW <= 海底)) AND (CLOSE >= 海底2)),0,85,4,0),COLOR00FFFF;。
【股票指标公式下载】-【大智慧】资金盘比(特大户、中户、散户、成交量、入手数)
【大智慧】资金盘比(特大户、中户、散户、成交量、入手数)-指标公式源码S1X:=10;S1Y:=15;HS:=vol/capital;DD:=BIGORDER(1,3)-BIGORDER(2,3);DT:=HS*DD*100;特大户 := (DT * capital) * DYNAINFO(11)/10000;DRAWMOVETEXT(1,'当日资金流入特大:'+NUMTOSTRN(特大户,0)+'万元'),colorred;DRAWTEXTABS(S1X,S1Y*1,'特大资金进出');DRAWTEXTABS(S1X,S1Y*2,'3日流入:'+NUMTOSTRN(sum (特大户,3),0)+'万元'),colorred;DRAWTEXTABS(S1X,S1Y*3,'5日流入:'+NUMTOSTRN(sum (特大户,5),0)+'万元'),colorred;DRAWTEXTABS(S1X,S1Y*4,'10日流入:'+NUMTOSTRN(sum (特大户,10),0)+'万元'),colorred;DRAWTEXTABS(S1X,S1Y*5,'20日流入:'+NUMTOSTRN(sum (特大户,20),0)+'万元'),colorred;DRAWTEXTABS(S1X,S1Y*6,'30日流入:'+NUMTOSTRN(sum (特大户,30),0)+'万元'),colorred;DRAWTEXTABS(S1X,S1Y*7,'60日流入:'+NUMTOSTRN(sum (特大户,60),0)+'万元'),colorred;HS1:=vol/capital;DD1:=(BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3));DT1:=HS1*DD1*100;大户 := (DT1 * capital) * DYNAINFO(11)/10000;s2x:=s1x+130;s2y:=15;DRAWMOVETEXT(1,'大户:'+NUMTOSTRN(大户,0)+'万元'),colorred; DRAWTEXTABS(s2X,S2Y*1,'大户资金进出');DRAWTEXTABS(S2X,S2Y*2,'3日流入:'+NUMTOSTRN(sum (大户,3),0)+'万元'),colorred;DRAWTEXTABS(S2X,S2Y*3,'5日流入:'+NUMTOSTRN(sum (大户,5),0)+'万元'),colorred;DRAWTEXTABS(S2X,S2Y*4,'10日流入:'+NUMTOSTRN(sum (大户,10),0)+'万元'),colorred;DRAWTEXTABS(S2X,S2Y*5,'20日流入:'+NUMTOSTRN(sum (大户,20),0)+'万元'),colorred;DRAWTEXTABS(S2X,S2Y*6,'30日流入:'+NUMTOSTRN(sum (大户,30),0)+'万元'),colorred;DRAWTEXTABS(S2X,S2Y*7,'60日流入:'+NUMTOSTRN(sum (大户,60),0)+'万元'),colorred;HS2:=vol/capital;dd2:=(BIGORDER(1,1)-BIGORDER(2,1))-(BIGORDER(1,2)-BIGORDER(2,2)); DT2:=HS2*DD2*100;中户 := (DT2 * capital) * DYNAINFO(11)/10000;s3x:=s2x+130;s3y:=15;DRAWMOVETEXT(1,'中户:'+NUMTOSTRN(中户,0)+'万元'),colorgreen; DRAWTEXTABS(S3X,S3Y*1,'中户资金进出');DRAWTEXTABS(S3X,S3Y*2,'3日流入:'+NUMTOSTRN(sum (中户,3),0)+'万元'),colorgreen;DRAWTEXTABS(S3X,S3Y*3,'5日流入:'+NUMTOSTRN(sum (中户,5),0)+'万元'),colorgreen;DRAWTEXTABS(S3X,S3Y*4,'10日流入:'+NUMTOSTRN(sum (中户,10),0)+'万元'),colorgreen;DRAWTEXTABS(S3X,S3Y*5,'20日流入:'+NUMTOSTRN(sum (中户,20),0)+'万元'),colorgreen;DRAWTEXTABS(S3X,S3Y*6,'30日流入:'+NUMTOSTRN(sum (中户,30),0)+'万元'),colorgreen;DRAWTEXTABS(S3X,S3Y*7,'60日流入:'+NUMTOSTRN(sum (中户,60),0)+'万元'),colorgreen;HS3:=vol/capital;dd3:=-(BIGORDER(1,1)-BIGORDER(2,1));DT3:=HS3*DD3*100;散户 := (DT3 * capital) * DYNAINFO(11)/10000;s4x:=s3x+130;s4y:=15;DRAWMOVETEXT(1,'散户:'+NUMTOSTRN(散户,0)+'万元'),colorgreen; DRAWTEXTABS(S4X,S4Y*1,'散户资金进出');DRAWTEXTABS(S4X,S4Y*2,'3日流入:'+NUMTOSTRN(sum (散户,3),0)+'万元'),colorgreen;DRAWTEXTABS(S4X,S4Y*3,'5日流入:'+NUMTOSTRN(sum (散户,5),0)+'万元'),colorgreen;DRAWTEXTABS(S4X,S4Y*4,'10日流入:'+NUMTOSTRN(sum (散户,10),0)+'万元'),colorgreen;DRAWTEXTABS(S4X,S4Y*5,'20日流入:'+NUMTOSTRN(sum (散户,20),0)+'万元'),colorgreen;DRAWTEXTABS(S4X,S4Y*6,'30日流入:'+NUMTOSTRN(sum (散户,30),0)+'万元'),colorgreen;DRAWTEXTABS(S4X,S3Y*7,'60日流入:'+NUMTOSTRN(sum (散户,60),0)+'万元'),colorgreen;HS4:=vol/capital;dd4:=BIGORDER(1,2)-BIGORDER(2,2);DT4:=HS4*DD4*100;主力 := (DT4 * capital) * DYNAINFO(11)/10000;主力买入手数 := (capital*DT4);s5x:=s4x+130;s5y:=15;DRAWMOVETEXT(1,'主力:'+NUMTOSTRN(主力,0)+'万元'+ ' 占流通盘:'+主力买入手数/CAPITAL+'%'+' 占成交量:'+主力买入手数/vol+'%'),colorred; DRAWTEXTABS(S5X,S5Y*1,'主力资金进出 (特大户+大户)');DRAWTEXTABS(S5X,S5Y*2,'3日流入:'+NUMTOSTRN(sum (主力,3),0)+'万元' + ' 占流通盘:'+sum(主力买入手数,3)/CAPITAL+'%'+' 占成交量:'+sum(主力买入手数,3)/sum(vol,3)+'%'),colorred;DRAWTEXTABS(S5X,S5Y*3,'5日流入:'+NUMTOSTRN(sum (主力,5),0)+'万元'+ ' 占流通盘:'+sum(主力买入手数,5)/CAPITAL+'%'+' 占成交量:'+sum(主力买入手数,5)/sum(vol,5)+'%'),colorred;DRAWTEXTABS(S5X,S5Y*4,'10日流入:'+NUMTOSTRN(sum (主力,10),0)+'万元'+ ' 占流通盘:'+sum(主力买入手数,10)/CAPITAL+'%'+' 占成交量:'+sum(主力买入手数,10)/sum(vol,10)+'%'),colorred;DRAWTEXTABS(S5X,S5Y*5,'20日流入:'+NUMTOSTRN(sum (主力,20),0)+'万元'+ ' 占流通盘:'+sum(主力买入手数,20)/CAPITAL+'%'+' 占成交量:'+sum(主力买入手数,20)/sum(vol,20)+'%'),colorred;DRAWTEXTABS(S5X,S5Y*6,'30日流入:'+NUMTOSTRN(sum (主力,30),0)+'万元'+ ' 占流通盘:'+sum(主力买入手数,30)/CAPITAL+'%'+' 占成交量:'+sum(主力买入手数,30)/sum(vol,30)+'%'),colorred;DRAWTEXTABS(S5X,S5Y*7,'60日流入:'+NUMTOSTRN(sum (主力,60),0)+'万元'+ ' 占流通盘:'+sum(主力买入手数,60)/CAPITAL+'%'+' 占成交量:'+sum(主力买入手数,60)/sum(vol,60)+'%'),colorred;【大智慧】资金盘比(特大户、中户、散户、成交量、入手数)-指标公式效果图(文档来源:若水财经社区)。
大智慧公式多年收集的大智慧指标公式(源码)
漓江渔歌VarA:=MA(CLOSE,20);RSV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27));K:=SMA(RSV,5,1);D:=SMA(K,3,1);D2:=SMA(K,2,1);t1:=(3*K-2*D)*100;天空:STICKLINE(t1,0,120,0.5,0),COLORFFFFFF;山:=(3*K-2*D)*100;桂山:STICKLINE(山,0,山,5,0),COLOR00FFDD;STICKLINE(山,0,山*0.95,5,0),COLOR00FFBB;STICKLINE(山,0,山*0.88,5,0),COLOR00FF99;STICKLINE(山,0,山*0.8,5,0),COLOR00DD99;STICKLINE(山,0,山*0.71,5,0),COLOR00BB99;STICKLINE(山,0,山*0.6,5,0),COLOR00AA99;STICKLINE(山,0,山*0.5,5,0),COLOR009999;STICKLINE(山,0,山*0.4,5,0),COLOR008899;t2:=((100-山)-100)*2/3;漓江水:STICKLINE(t2,懒旅呐魄壬仕掏COLORCCFF00;倒影:t2,COLOR00FFCC,STICK;STICKLINE(倒影,0,倒影*4/5,0.1,0),COLOR00CC99;STICKLINE(倒影,0,倒影*3/5,0.1,0),COLOR009999;STICKLINE(倒影,0,倒影*2/5,0.1,0),COLOR006699;顶线:=100-((HIGH-VarA)/VarA);RSV2:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;Var1:=SMA(RSV2,3,1);Var2:=SMA(Var1,3,1);买入:=Var1<16 and Var2<21 ;卖出预警:=t1>=88 or 顶线<=90;卖出:=CROSS(顶线,t1) or CROSS(90,t1);t3:=买入;打渔船:DRAWTEXT(FILTER(t3,2),山-45,'︼'),COLOR0000FF,LINETHICK2; t4:=卖出预警or 卖出;南归雁:DRAWTEXT(FILTER(t4,2),山+10,'>'),COLORFFFF00;示例 2一个副图公式:《雨季彩虹》ys1:=(high+low+close*2)/4;rk3:=ema(ys1,10);rk4:=std(ys1,10);rk5:=(ys1-rk3)*100/rk4;rk6:=ema(rk5,5);rk7:=ema(rk6,10);涨:ema(rk6,10)+100/2-5,linethick1,colorred;跌:ema(涨,4),linethick1,colorwhite;天晴:if(cross(涨,跌) and 跌<-10,30,0),linethick1,colorccccff;雨季:if(cross(跌,80),70,100),color0099ff,linethick1;彩虹1:ema(跌,4),colorf00ff0;彩虹2:ema(彩虹1,4),colorgreen;彩虹3:=ema(彩虹2,4),coloryellow;彩虹4:=ema(彩虹3,4),colorcc9900;-10,pointdot,color888888,linethick2;80,pointdot,color888888,linethick2;stickline(涨> ref(涨,1),涨,ema(涨,3),0,0) ,color00bbff;stickline(涨> ref(涨,1),涨,ema(涨,3),8,0) ,color0011ff;stickline(涨> ref(涨,1),涨,ema(涨,3),7,0) ,color0022ff;stickline(涨> ref(涨,1),涨,ema(涨,3),6,0) ,color0044ff;stickline(涨> ref(涨,1),涨,ema(涨,3),5,0) ,color0066ff;stickline(涨> ref(涨,1),涨,ema(涨,3),4,0) ,color0088ff;stickline(涨> ref(涨,1),涨,ema(涨,3),3,0) ,color0099ff;stickline(涨> ref(涨,1),涨,ema(涨,3),2,0) ,color00aaff;stickline(涨> ref(涨,1),涨,ema(涨,3),1,0) ,color00bbff;drawicon(天晴,30,1),color0000ff;drawicon(cross(跌,80),70,2),colorgreen;drawtext(cross(涨,跌) and 跌<20 and 跌>-10,40,'停雨多云'),colorccff99; drawtext(天晴>0,-20,'天晴'),color0000ff;var11:=sumbars(vol,finance(7)*100);var22:=dma(ema(close,12),sum(vol,5)/3/capital);var3:=(close-var22)/var22*100;var4:=hhv(var3,var11);var5:=llv(var3,var11);var6:=(var3-var5)/(var4-var5)*100;k:=sma(var6,3,1);d:=sma(k,3,1);j:=3*k-2*d;ma1:=ma(j,3),colorgreen;stickline(filter(j>ma1 and j<=3,5)=1 and 跌<0,涨,涨+20,6,0),coloryellow; drawtext(filter(j>ma1 and j<=3,5)=1 and 跌<0,60,'注意'),colorffffff;。
大智慧指标公式
大智慧指标公式1、十年不败V1:=LLV(LOW,10);V2:=HHV(HIGH,20);lyf1:=EMA(((CLOSE-V1)/(V2-V1))*((-100)),3);V ARg5:=((CLOSE)/(REF(CLOSE,5))>=1.15);V ARg6:=BACKSET(VARg5,5);入市日:=IF((VARg6 AND (COUNT(V ARg6,5)=1) or (CLOSE>=HHV(HIGH,HIGH)) AND ((CLOSE)/(REF(CLOSE,1))>1.098) AND (REF(VOL,LOW)>REF(VOL,34)) AND (REF(VOL,LOW)>REF(VOL,1)) AND (L YF1>(-93))AND (REF(VOL,LOW)>REF(VOL,8))),60,0);cross(入市日,(58));2、私募进场aa:=winner(c+c*15/100)*100;bb:=winner(c+c*0/100)*100;cc:=aa-bb;dd:=(winner(c-c*0.1/100)-winner(c-c*15/100))*100;ee:=cc<3 and dd<0.5 and o<>l;a1:=dynainfo(6);a2:=if(l>a1,0,if(h<a1,1,(a1-l+0.01)/(h-l+0.01)));a3:=v/winner(l);a4:=ref(hhv(c,120),1);a5:=ref(llv(c,120),1);a6:=100*(c-a5)/(a4-a5);a7:=a2>0 or a2=1;a8:=a7 and a3/ref(a3,3)>=3 and a6<80 ;a9:=ref(a8,1) or ref(a8,2) or ref(a8,3) or ref(a8,4);a10:=a8 and a9;a11:=if(filter(a8,3),5,0);a12:=if(filter(a10,3) or ee,10,0);私募机构进场日:stickline(a11,0,5,5,0),colorff7700;私募机构加仓日:stickline(a12,0,15,5,0),colorff00ff;stickline(a11,0,5,5,0),colorff7700;stickline(a11,0,5,4.5,0),colorff8800;stickline(a11,0,5,4,0),colorff9900;stickline(a11,0,5,3.5,0),colorffaa00;stickline(a11,0,5,3,0),colorffbb00;stickline(a11,0,5,2.5,0),colorffcc00;stickline(a11,0,5,2,0),colorffdd00;stickline(a11,0,5,1,0),colorffee00;stickline(a12,0,15,4.5,0),color102099;stickline(a12,0,15,4,0),color1020aa;stickline(a12,0,15,3.5,0),color1020bb;stickline(a12,0,15,3,0),color1020cc;stickline(a12,0,15,2.5,0),color1020dd;stickline(a12,0,15,2,0),color1020ee;stickline(a12,0,15,1,0),color1020ff;drawtext(a11,8,'S'),COLORYELLOW;drawtext(a12,17,'J'),COLORWHITE;3、底部换手OBVobv1:=sum(if(c>ref(c,1),v,if(c<ref(c,1),-v,0)),0);{求得obv}HS:=SUMBARS(v,CAPITAL); {换手一次时间}AA:=if(c>llv(c,HS),1,-1);{期间股价是否创新底}BB:= if(obv1>llv(obv1,HS),1,-1);{期间obv是否创新底}CC:=AA*BB;DD:if(cc=-1,obv1*1.12,obv1);{两者是否背离}obv:obv1;4、火焰觅庄Var1:=EMA(HHV(HIGH,500),21);Var2:=EMA(HHV(HIGH,250),21);Var3:=EMA(HHV(HIGH,90),21);Var4:=EMA(LLV(LOW,500),21);Var5:=EMA(LLV(LOW,250),21);Var6:=EMA(LLV(LOW,90),21);Var7:=EMA((Var4*0.96+V ar5*0.96+Var6*0.96+Var1*0.558+Var2*0.558+Var3*0.558)/6,21); Var8:=EMA((Var4*1.25+V ar5*1.23+V ar6*1.2+Var1*0.55+V ar2*0.55+Var3*0.65)/6,21);Var9:=EMA((Var4*1.3+Var5*1.3+Var6*1.3+Var1*0.68+Var2*0.68+Var3*0.68)/6,21); VarA:=EMA((Var7*3+Var8*2+V ar9)/6*1.738,21);VarB:=REF(LOW,1);VarC:=SMA(ABS(LOW-VarB),3,1)/SMA(MAX(LOW-VarB,0),3,1)*100;VarD:=EMA(IF(CLOSE*1.35<=VarA,VarC*10,VarC/10),3);VarE:=LLV(LOW,30);VarF:=HHV(VarD,30);Var10:=IF(MA(CLOSE,58),1,0);火焰山:EMA(IF(LOW<=VarE,(VarD+VarF*2)/2,0),3)/618*Var10,coloryellow;火焰:=STICKLINE(火焰山>0 ,0 ,火焰山,4 ,1);今量:火焰山;STICKLINE(火焰山>0,0 ,今量*1.2,8,0 ),COLOR00EEff;STICKLINE(火焰山>0,0 ,今量*0.8,8,0 ),COLOR00BBff;STICKLINE(火焰山>0,0 ,今量*0.6,8,0 ),COLOR0099ff;STICKLINE(火焰山>0,0 ,今量*0.4,8,0 ),COLOR0066ff;STICKLINE(火焰山>0,0 ,今量*0.2,8,0 ),COLOR0000ff;5、金牌逃顶{p1 1 100 12 ; p2 1 100 50}V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70; V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势: IF(VAR6>45,V AR6-45,0);STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),5,0),colorff00ff; STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),5,0),color00ff00;强弱分界:50,POINTDOT,Colorffffcc;0,Color00Ffff;20,POINTDOT,COlORFFAA66,linethick1;80,POINTDOT,COlORFFAA66,linethick1;100,Colorffff33;v1:=llv(low,10);v2:=hhv(h,25);价位线:=ema((c-v1)/(v2-v1)*4,4);DRAWTEXT(CROSS(价位线,0.3),7,'●'),ColorFFFfff;DRAWTEXT(CROSS(3.5,价位线),102,'●'),ColorFFFfff;Var2q:=REF(LOW,1);Var3q:=SMA(ABS(LOW-Var2q),3,1)/SMA(MAX(LOW-Var2q,0),3,1)*100; Var4q:=EMA(IF(CLOSE*1.3,Var3q*10,Var3q/10),3);Var5q:=LLV(LOW,30);Var6q:=HHV(Var4q,30);Var7q:=IF(MA(CLOSE,58),1,0);Var8q:=EMA(IF(LOW<=V ar5q,(Var4q+Var6q*2)/2,0),3)/618*Var7q;Var9q:=IF(Var8q>100,100,Var8q);吸筹:STICKLINE(Var9q>-120,0,V ar9q,6,1),coloryellow;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);卖临界:STICKLINE(走势-AA6>85,103,100,15,1),Color0000ff,linethick2;6、真实成交量VOL,VOLSTICK;V AR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));{成交:VOL,POINTDOT; }主动买盘:IF(CLOSE>OPEN,V AR1*(HIGH-LOW),IF(CLOSE<OPEN,V AR1*((HIGH-OPEN)+(CLOSE -LOW)),VOL/2)),COLORRED,POINTDOT;主动卖盘:IF(CLOSE>OPEN,0-V AR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V AR1*( HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;STICKLINE(VOL>0,VOL,0,4,1),COLORWHITE;STICKLINE(主动买盘>0,0,主动买盘,4,0),COLORRED;STICKLINE(主动卖盘<0,0,主动卖盘,4,0),COLOR00FF00;净买盘:主动买盘+主动卖盘,pointdot,coloryellow;换手率%:VOL/CAPITAL*100,POINTDOT,COLORYELLOW;7、波段神偷{m:3,100,60; n:3,100,30。
大智慧主图公式
大智慧主图公式: 招招绝(原码)A3 :(EMA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,15))/3,colorff00ff;a4 :(EMA(CLOSE,20)+MA(CLOSE,25)+MA(CLOSE,30))/3,color00ff00;A5 :(EMA(CLOSE,40)+MA(CLOSE,50)+MA(CLOSE,60))/3,coloryellow;a6 :(EMA(CLOSE,80)+MA(CLOSE,85)+MA(CLOSE,90))/3,colorff9900;A7 :(EMA(CLOSE,120)+MA(CLOSE,130)+MA(CLOSE,150))/3,color0000ff;a8 :(EMA(CLOSE,160)+MA(CLOSE,170)+MA(CLOSE,180))/3,coloryellow;A9 :(EMA(CLOSE,200)+MA(CLOSE,225)+MA(CLOSE,250))/3,color00ff00;V1:EMA(CLOSE,5),Color00FFFF;V2:EMA((EMA(CLOSE,29))*(1.01),10),ColorFF00FF;DRAWICON(CROSS(V1,V2),V2,1),Color00FF00;V3:EMA(CLOSE,10),ColorFFFFFF;V4:EMA((EMA(CLOSE,60))*(0.99),10),ColorFFFF00;DRAWICON(CROSS(V3,V4),V2,1),Color0000FF;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),colorred;VarA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VarB:=EMA(0.667*REF(VarA,1)+0.333*VarA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VarA>=VarB and VarA<-17,3) ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');Varr1:=SMA(MAX(CLOSE-ref(c,1),0),12,1)/SMA(ABS(CLOSE-ref(c,1)),15,1)*100;DRAWICON(CROSS(82,Varr1),HIGH,2);DRAWTEXT(CROSS(82,Varr1),high,'快卖↓'),coloryellow;Var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;Var2:=REF(Var1,1);Var3:=SMA(MAX(Var1-Var2,0),10,1)/SMA(ABS(Var1-Var2),10,1)*100;HY3:=IF(COUNT(Var3<20,5)>=1 AND COUNT(Var1=LLV(Var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWTEXT(hy3,low,'▲买入'),colorred;夺宝:Var1:=EMA(C,3);Var2:=EMA(C,5);Var3:=EMA(C,10);Var4:=EMA(C,20);Var5:=EMA(C,30);Var6:=(Var2+Var3+Var4+Var5)/4;Var7:=(Var6-REF(Var6,15))/REF(Var6,15)*100;Var8:=(Var6-REF(Var6,15))/REF(Var6, 15)*100;Var9:=EMA(Var7,8);STICKLINE(Var7<1*REF(Var7,1),h,l,0.5,0),COLORBLUE;{蓝-持币}STICKLINE(Var7<1*REF(Var7,1),o,c,5, 1),COLORBLUE;STICKLINE(Var7>1*REF(Var7,1),h,l,0.5,0),COLORRED;{红-持股}STICKLINE(Var7>1*REF(Var7,1),o,c,5, 1),COLORRED;STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),h,l,0.5,0),COLORGREEN;{绿-洗盘}STICKLINE(Var7<1*REF(Var7,1) AND Var9>1*REF(Var9,1),o,c,5, 1),COLORGREEN;买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);STICKLINE(买进条件,h,l,0.5,1),colorwhite,linethick2;{白-买进}STICKLINE(买进条件,o,c,6,0),colorwhite,linethick2;加码价:=((c-ref(ma(c,18),1))/18+ma(c,18))*1.004;加码条件:=cross(c,加码价) and 加码价>ref(加码价,1);STICKLINE(加码条件,h,l,0.5,1),coloryellow,linethick2;{黄-加码}STICKLINE(加码条件,o,c,6,0),coloryellow,linethick2;X1:EMA(C,7),color0088ff;X2:EMA(c,21),coloree00ee;X3:EMA(X2,21),colorwhite;x4:ema(x3,27),color009900;x5:ema(x2,100),colorFFAA00;x6:ema(x5,100),color009999;v1:ema(close,5);v2:ema(ema(close,29)*1.01,10);DRAWICON(cross(v1,v2),v2,1); LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃:if(CROSS(84,RSI) , HIGH,high+1),pointdot,linethick7,COLORYELLOW ;high+1,pointdot,linethick7,COLOR000000; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);DRAWICON(FILTER(B1>0,5),L*0.94,10);DRAWTEXT(FILTER(B1>0,5),L*0.94,'M底'),COLORGREEN;{MACD底背离}A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));DRAWICON(FILTER(B2>0,5),L*0.96,10);DRAWTEXT(FILTER(B2>0,5),L*0.96,'K底'),COLORYELLOW;{KDJ底背离}A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));DRAWICON(FILTER(B3>0,5),L*0.98,10);DRAWTEXT(FILTER(B3>0,5),L*0.98,'R底'),COLORFFFF00;{RSI底背离}C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);DRAWICON(FILTER(D1>0,5),H*1.07,12);DRAWTEXT(FILTER(D1>0,5),H*1.07,'M顶'),COLOR0066FF;{MACD顶背离}C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)); DRAWICON(FILTER(D2>0,5),H*1.05,12);DRAWTEXT(FILTER(D2>0,5),H*1.05,'K顶'),COLORRED;{KDJ顶背离}C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) ANDCROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));DRAWICON(FILTER(D3>0,5),H*1.03,12),;DRAWTEXT(FILTER(D3>0,5),H*1.03,'R顶'),COLORFF00FF;{RSI顶背离}。
【股票指标公式下载】-【大智慧】持股主图(持股线、超大盘、大盘股、小盘股)
【大智慧】持股主图(持股线、超大盘、大盘股、小盘股)-指标公式源码IF(FINANCE2(37)/10000>=100) THEN BEGINDRAWTEXTREL(0,950,'【超大盘0.7%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<100 and FINANCE2(37)/10000>=10) THEN BEGIN DRAWTEXTREL(0,950,'【大盘股9.0%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<10 and FINANCE2(37)/10000>=5) THEN BEGIN DRAWTEXTREL(0,950,'【中盘股12.7%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<5 and FINANCE2(37)/10000>=1) THEN BEGIN DRAWTEXTREL(0,950,'【小盘股55.3%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<1) THEN BEGINDRAWTEXTREL(0,950,'【超小盘22.3%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(ff1,(LOW* 0.99),'↖鼠'),Color4080FF;STICKLINE(ff1,O,C,6,0),COLORyellow;STICKLINE(ff1,O,C,2.5,0),COLORred;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(filter(买=1,5),LOW-0.08,'↖低') ,COLORAAAAFF;STICKLINE(filter(买=1,5),O,C,6,0),COLORyellow;STICKLINE(filter(买=1,5),O,C,2.5,0),COLORred;cc:=(h-c)/(c-o)<0.33;dd:=(c/ref(c,1)-1)>=0.0502 and c>ref(c,1) and (o-l)/(c-o)>=1.48 andl<ref(l,1) and l<ref(l,2);ee:=(c/ref(c,1)-1)>=0.08;aa:=VOL>REF(VOL,1)*1.9 and c>ref(c,1) and c/ref(c,1)-1>=0.049 and cc; bb:=(c/ref(c,1)-1)>=0.0502 and c>ref(c,1) and v>ref(v,1) andVOL>REF(VOL,1)*2.5 and cc;DRAWTEXT(FILTER(aa or bb or dd or ee,34),l,'↖异动'),COLOrffff00; STICKLINE(FILTER(aa or bb or dd or ee,34),O,C,6,0),COLORyellow; STICKLINE(FILTER(aa or bb or dd or ee,34),O,C,2.5,0),COLORRED;AAA:=(3*C+H+L+O)/6;VAR41:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*R EF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR41;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则 AND 突破;条件成立:=FILTER(成立,3);DRAWTEXT(条件成立,L*0.97,'↖立桩量'),COLORYELLOW;VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);压力:= REF(HIGH,BARSLAST(VAR2222));STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK1;STICKLINE(CLOSE<OPEN andref(CLOSE,1)>ref(OPEN,1),ref(close,1),ref(close,1),33,0),COLORwhite,L INETHICK1;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);DRAWTEXTREL(0,70,'总股本:'+NUMTOSTRn(DD,0)+'万股' +' 流通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=2 and c>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;DRAWTEXTREL(850,890,'今日支撑:'+NUMTOSTRN(今日支撑 ,2 )),Colorred; DRAWTEXTREL(850,950,'今日阻力:'+NUMTOSTRN(今日阻力 ,2 )),ColorGREEN; DRAWTEXTREL(0,20,'所属板块:'+BKNAME),ColorRED;DRAWTEXTREL(0,120,'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+'元'+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+'元'+' 净资产:'+NUMTOSTRN(FINANCE2(4),2)+'元'),Color00C0FF;DRAWTEXTREL(0,270,'历史最高价:'+HHV(HIGH,0)),Colorred; DRAWTEXTREL(160,270,'历史最低价:'+LLV(LOW,0)),ColorAFFF00;销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);DRAWTEXTREL(0,170,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),LINETHICK1,COLORff00ff;DRAWTEXTREL(180,170,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,ColorYELLOW;DRAWTEXTREL(0,220,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,COLOR00FF00;LJL07:=(3*C+L+O+H)/6;金钱:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(L JL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07, 8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7 *REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF( LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORgreen,LINETHICK4; 银线:EMA(CLOSE,6),COLORff00ff,LINETHICK4;线:EMA(CLOSE,6),COLORwhite,LINETHICK2;【大智慧】持股主图(持股线、超大盘、大盘股、小盘股)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】数字主图(预测、明日支撑、撑压位
【大智慧】数字主图(预测、明日支撑、撑压位)-指标公式源码预测1:=(C+H+L)/3;预测2:=H-L;预测4:=预测1+预测2;预测5:=预测1-预测2;预测6:=2*预测1-L;预测7:=2*预测1-H;预测9:=BARSTATUS=2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测4,预测5,1,1000),COLOR102070,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测4,预测5,0,1000),COLOR1020E0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,8,1000),COLOR102070,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,7,1000),COLOR102080,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,6,1000),COLOR102090,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,5,1000),COLOR1020A0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,4,1000),COLOR1020B0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,3,1000),COLOR1020C0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,2,1000),COLOR1020D0,LINETHICK2;STICKLINE(预测9>0 AND 预测6>REF(C,1),预测6,预测7,1,1000),COLOR1020E0,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测4,预测5,1,1000),COLOR105510,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测4,预测5,0,1000),COLOR10CC10,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,8,1000),COLOR105510,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,7,1000),COLOR106610,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,6,1000),COLOR107710,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,5,1000),COLOR108810,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,4,1000),COLOR109910,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,3,1000),COLOR10AA10,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,2,1000),COLOR10BB10,LINETHICK2;STICKLINE(预测9>0 AND 预测6<=REF(C,1),预测6,预测7,1,1000),COLOR10CC10,LINETHICK2;gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100); 明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);明日阻力:=l+(gj-l)+(c-l);明日支撑:=l+(c-gj);今日阻力:=REF(明日阻力, 1);今日支撑:=REF(明日支撑, 1);STICKLINE(DISPSTATUS=2 and c>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF;STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,30,0),Color00FF00;STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF;STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,30,0),ColorFF0000;DRAWTEXTREL(406,117,'---------------------------------------'),ColorF FFFFF;IF BARSTATUS=2 and c>=今日支撑 THENDRAWTEXTREL(408,147,'今日支撑:'+NUMTOSTRN(今日支撑,2)),colorred;IF BARSTATUS=2 and c<今日支撑 THENDRAWTEXTREL(408,147,'今日支撑:'+NUMTOSTRN(今日支撑,2)),colorred;IF BARSTATUS=2 and c>=今日阻力 THENDRAWTEXTREL(408,187,'今日阻力:'+NUMTOSTRN(今日阻力,2)),Color0000FF; IF BARSTATUS=2 and c<今日阻力 THENDRAWTEXTREL(408,187,'今日阻力:'+NUMTOSTRN(今日阻力,2)),Color00FF00; IF BARSTATUS=2 and c>=明日支撑 THENDRAWTEXTREL(510,147,' 明日支撑:'+NUMTOSTRN(明日支撑,2)),Color00FFFF; IF BARSTATUS=2 and c<明日阻力 THENDRAWTEXTREL(510,187,' 明日阻力:'+NUMTOSTRN(明日阻力,2)),Color00FFFF; DRAWTEXTREL(406,217,'===================='),ColorFFFFFF;下档线:=(((CLOSE - LLV(LOW,13))/(HHV(HIGH,13) - LLV(LOW,13))) * 100); aRSV:=SMA(下档线,3,1);aK:=SMA(aRSV,3,1);aD:=((3 * aRSV) - (2 * aK));aJ12:=(((CLOSE - LLV(LOW,55))/(HHV(HIGH,55) - LLV(LOW,55))) * 100); aRSV24:=SMA(aJ12,3,1);aK24:=SMA(aRSV24,3,1);aD24:=((3 * aRSV24) - (2 * aK24));撑压位:=IF(CROSS(aD24,aD),HIGH,REF(HIGH,BARSLAST(CROSS(aD24,aD)))); 底:=LLV(HIGH,30){,COLOR00FF00,LINETHICK2};STICKLINE(BARSTATUS=2,撑压位,撑压位,30,1),LINETHICK1,COLORFFFFFF; DRAWTEXT(BARSTATUS=2,撑压位,'撑压'),COLORFFFFFF,VALIGN1;STICKLINE(BARSTATUS=2,底,底,30,1),COLOR00FF00,LINETHICK1;DRAWTEXT(BARSTATUS=2,底,'底线'),COLOR00FF00,VALIGN0;AA05:MA(C,5),colorff00ff,linethick1;五日乖离率:=(c-AA05)/AA05*100;BB05:=atan((aa05/ref(aa05,1)-1)*100)*180/3.1416;速度5:=sma(ema((AA05-ref(AA05,1))/ref(AA05,1),3)*100,3,1);加速度5:ema((速度5-ref(速度5,1)),3),linethick0;{STICKLINE(BB05>30 andAA05>ref(AA05,1),AA05,REF(AA05,1),8,1),colorff00ff;}AA10:MA(C,10),coloryellow;AA20:=MA(c,20);BB10:=atan((aa10/ref(aa10,1)-1)*100)*180/3.1416;{STICKLINE(BB05<0 andAA05<ref(AA05,1),AA05,REF(AA05,1),3,1),colorcyan;}AA30:MA(C,30),colorwhite;三拾日乖离率:(c-AA30)/AA30*100,linethick0;Var1:=(AA20-AA30)>ref((AA20-AA30),1) and AA20>ref(aa20,1) andAA30>ref(AA30,1);Var2:=(AA30-AA20)<ref((AA30-AA20),1) and AA20<ref(aa20,1) andAA30<ref(AA30,1);BB30:=atan((aa30/ref(aa30,1)-1)*100)*180/3.1416;{STICKLINE(BB30>15 andAA30>ref(AA30,1),AA30,REF(AA30,1),8,1),colorff00ff;}强势狙击:=filter(BB30>30 and BB10>45 and cross(BB05,60),10);加仓:=filter(count(cross(BB05,30),5)>=1 and AA05>ref(aa05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and AA10>ref(AA10,1)and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1),10) ;清仓:=filter(count(cross(30,BB05),5)>=1 and (c>AA30 or O>AA30) andAA05<ref(aa05,1) and 三拾日乖离率<ref(三拾日乖离率,1) andAA10<ref(AA10,1),10);drawtext(加仓,low*0.98,'←加仓'),colorred;JC:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) andAA10>ref(AA10,1) ;减仓:=filter(JC,10);MR:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and AA05>ref(AA05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<AA30; 买入:=filter(MR,10);drawtext(减仓,high*1.02,'←减仓'),colorcyan;drawtext(买入,low*0.98,'←买入'),coloryellow;drawtext(强势狙击,LOW*0.98,'←强势狙击'),coloryellow;Var21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));Var3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(Var21+Var3)/AMOUNT*VOL*100*50;DRAWTEXT(MV>6 and l<=llv(l,10),l*0.96,'←异动'),colorcyan;aa:=if(c>=ref(c,3),1,0);bb:=if(c>=ref(c,5),1,0);cc:=if(c>=ref(c,7),1,0);dd:=if(c>=ref(c,8),1,0);ee:=if(c>=ref(c,13),1,0);ff:=if(c>=ref(c,21),1,0);gz2:=aa+bb+cc+dd+ee+ff;Var11:=EMA(CLOSE,3)-EMA(CLOSE,6)-(EMA(CLOSE,6)-EMA(CLOSE,12))*(-100); Var12:=EMA(Var11,3);Var5:=CROSS(Var11,Var12);Var6:=CROSS(Var12,Var11);STICKLINE(C>=O,l,H,0,0),COLOR0000FF,LAYER2;STICKLINE(C<O,l,H,0,0),COLORFFFF00,LAYER2;STICKLINE(C>=O,O,C,10,1),COLOR0000FF,LAYER2;STICKLINE(C<O,O,C,8,0),COLORFFFF00,LAYER2;STICKLINE(Var6,OPEN,CLOSE,8,0),COLORBLUE,LAYER0;{兰色熊K} STICKLINE(Var5,OPEN,CLOSE,5,0),COLORYELLOW,LAYER0;{彩色牛K} STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.33,5,0),COLORaaccdd,LAYER0;{彩色牛K}STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,5,0),COLORRED,LAYER0;{彩色牛K}DRAWTEXT(c>0,(O+C)/2,NUMTOSTRN(gz2,0 )),coloryellow,LAYER0,ALIGN1,VAL IGN0,LINETHICK1;{彩色牛K};【大智慧】数字主图(预测、明日支撑、撑压位)-指标公式效果图(文档来源:若水财经社区)。
大智慧经典版 指标及选股公式
选股公式金叉MACDDIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1; 低位金叉OR 二次金叉;红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:CROSS(V AR5,V AR3) AND V AR3<2.1 AND C>O;仓位增减空:=EMA(C,5);均衡:=EMA(空,5);中轨:=HHV(MA(H,13),13);加仓:FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);夺宝奇兵买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);v1:=ema(close,5);v2:=ema(ema(close,29)*1.01,10);买进条件and cross(v1,v2);中华方圆▲★{红▲、红★同时出现选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:=CROSS(Y,X);c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);红★:=CROSS(c2,c3);红▲and 红★;中华方圆□V AR1:=LLV(LOW,21);V AR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - V AR1) / (V AR2 - V AR1)) * 100),5); AK:=EMA((((CLOSE - VAR1) / (V AR2 - V AR1)) * 50),13); AB:=CROSS(AK1,AK);V AR3:=LLV(LOW,55);V AR4:=HHV(HIGH,34);V AR5:=EMA((((CLOSE - V AR3) / (V AR4 - V AR3)) * 100),3); V AR6:=((AK + V AR5) / 2);V AR8:=EMA(V AR6,5);BB:=EMA(((0.667 * REF(V AR8,1)) + (0.333 * V AR8)),2); BB1:=(CROSS(AK1,BB) AND (BB < 30));CD:=(BB1 * 0.6);白色□:AB =1;中华方圆▲{红▲选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);红▲:CROSS(Y,X);中华方圆★{红★选股}c1:=(CLOSE+LOW+HIGH)/3;c2:=EMA(c1,6);c3:=EMA(c2,5);c4:=CROSS(c2,c3);红★:c4;黑马王N:=20;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));xg:CROSS(V AR3,V AR4);红柱初现X4:=(L+H+C*4)/6;x6:=EMA(x4,19);x9:=(x6-REF(x6,1))/REF(x6,1)*100;红柱初现:=x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1);第1个红柱:红柱初现and ref(红柱初现,1)<1;紫黄同现A1:=EMA(C,7)-EMA(C,21); A2:=MA(A1,4); 买入:cross(A1,A2) AND A1-A2>0.03 and A2<-0.1;布林宝塔线QJJ:=(VOL/(((HIGH-LOW)*2)-ABS((CLOSE-OPEN))));XVL:=(IF((CLOSE>OPEN),(QJJ*(HIGH-LOW)),IF((CLOSE<OPEN),(QJJ*((HIGH-OPEN)+(CLOSE-LOW))), (VOL/2)))+IF((CLOSE>OPEN),(0-(QJJ*((HIGH-CLOSE)+(OPEN-LOW)))),IF((CLOSE<OPEN),(0-(QJJ*(HIGH-LOW))),(0-(VOL/2)))));ZLL:=(VOL/CAPITAL);HSL:=((XVL/20)/1.15);攻击流量:=(((HSL*0.55)+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));LLJX:=EMA(攻击流量,3);B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)<>0,REF(SS,1),IF(REF(SS,2)<>0,REF(SS,2),IF(REF(SS,3)<>0,REF(SS,3),IF(REF(SS,5)<>0,REF(SS,5),IF(REF(SS,6)<>0,REF(SS,6),IF(REF(SS,7)<>0,REF(SS,7),0))))));DK:=IF(REF(SS,1)<>0,B2,IF(SM>0,MIN(B1,B2),MAX(B1,B2)));C>REF(C,1)*1.035 AND C>AMOUNT/100/V AND COUNT(CROSS(LLJX,0),2)=1 AND CROSS(C,DK)AND C>SAR(10,2,20) AND C>MA(C,14) AND C>MA(C,20)AND BETWEEN(V/CAPITAL,0.01,0.08) AND CAPITAL<=2000000;上穿就买上升趋势:=EMA(CLOSE,5);支撑压力:=EMA(CLOSE,21);XG:CROSS(上升趋势,支撑压力);三线交汇B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);分水岭:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)),,;操作线:=分水岭-(EMA(C,3)-分水岭);CROSS(分水岭,操作线);立桩量AAA:=(3*C+H+L+O)/6;V AR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>V AR1;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则AND 突破;条件成立:FILTER(成立,3);低进高出RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;X:=LLV(J,2)=LLV(J,8);CROSS(J,REF(J+0.01,1)) AND X AND J<19;财出水面V AR2:=(-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);操盘:=3*VAR3-2*VAR4;xg:CROSS(操盘,V AR3) AND V AR3<2.1 and c>o;绝对牛股Var1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(Var1,13)-EMA(Var1,73);SD:= EMA(SK,2);V1:(cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03)or (cross(sk,sd) and sk<=-0.14 ) or (cross(sk,sd) and sk<=0.05and (v/ma(v,5)>2 or c/ref(c,1)>0.035));关注DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);MACD金叉:=CROSS(DIFF,DEA);关注: (MACD金叉AND (REF(MACD,1) < 0)) ;关注买MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:=(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 0.3); PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);偏离率:=(((PL1 = 1) AND (PL2 = 1)) * 0.2);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:=(MACD超跌* "MACD.MACD"(26,12,9))*(-1);目标:=IF(均线流=0.3 AND MACD AND 偏离率=0.2 ,0.8,0);MBSJ:=BARSLAST((目标= 0.8));放量上涨:=(((VOL / REF(VOL,1)) >= 1.1) AND ((CLOSE / REF(CLOSE,1)) >= 1.01));SZSJ:=BARSLAST((放量上涨= 1));MACD金叉:=CROSS(DIFF,DEA);JCSJ:=BARSLAST((MACD金叉= 1));启动:((((MBSJ <= 20) AND (SZSJ <= 1)) AND (JCSJ <= 1)) * 1);老鸭头MA5 := MA(close,5);MA10 := MA(close,10);MA60 := MA(close,60);pday1 := barslast(cross(ma5,ma60));pday2 := barslast(cross(ma10,ma60));pday3 := barslast(high=hhv(high,pday2));pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});a1:= pday1>pday2 and pday2>pday3 and pday3>pday4 and pday4>pday5 and pday5<5;a2:= count(cross(ma10,ma5),pday2)=1;a3:=ma5>ma60 and ma10>ma60;(A1 AND A2 and a3) and FILTER(A1 AND A2 and a3 ,5);主升行情顶:=85;V AR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;CC:=SMA(V AR5,20,1);CC1:=SMA(CC,5,1);出击:CROSS(CC,CC1) AND (CC1 < 顶) ;超越庄股K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);CROSS(K8,0);强势拉升Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);V AR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(V AR12,3,1);CROSS(跨越,机构做空能量线);吸庄血{底部笑脸的信号买入}V AR1:=4*SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1),3.2,1); V AR2:=8;CROSS(V AR1,V AR2);智能操盘K2:=EMA(C,5);K3:=EMA(C,10);K5:=EMA(C,30);K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6);买入:CROSS(K8,0);财富拐点ma3:=ema(c,3);ma5:=ema(c,5);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 V ar14 OR Var15 OR Var16 OR Var17 OR Var18,1) AND V ar1 AND CROSS(MA3,MA5);金牌逃顶V AR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;V AR2:=SMA(V AR1,9,1)+100;V AR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;V AR4:=SMA(V AR3,3,1);V AR5:=SMA(V AR4,3,1)+100;V AR6:=V AR5-V AR2;趋势:=IF(V AR6>45,V AR6-45,0);第一个粉色:ref(REF(趋势,1) >趋势,1) and REF(趋势,1)< 趋势;领头羊{绿线上穿白线}白色:=SMA(HIGH,21,2)*1.05;绿色:=SMA(CLOSE,2,1);领头羊:CROSS(绿色,白色);财神到RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1) AND AA;MACD提示DIFF:=(EMA(CLOSE,3) - EMA(CLOSE,13));DEA:=EMA(DIFF,9);绿变红:CROSS(DIFF,DEA)变色MACDDIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,9),;买卖频谱买线:=EMA(C,3);卖线:=EMA(SLOPE(C,21)*20+C,55);N:CROSS(买线,卖线);底部爆发V AR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5); V AR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);V AR03:=CROSS(V AR02,V AR01);V AR04:=REF(V AR02,2)<REF(V AR02,1) AND V AR02<REF(V AR02,1);V AR05:=COUNT(V AR03,7)>0 AND V AR04;V AR06:V AR05 AND COUNT(V AR05,5)=1;顶天立地V AR26:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);V AR27:=REVERSE(V AR26);V AR28:=SMA(VAR26,3,1);快线:=SMA(V AR28,3,1);慢线:=SMA(快线,3,1);金叉买:CROSS(快线,慢线) AND (快线<40);短线套利MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);(ref(买进条件,1) and 加码条件) OR (ref(加码条件,1) and 买进条件) ;雷电交加V ARF:=TROUGHBARS(3,15,1)<4;FILTER(V ARF=1,3);买必涨diff:=EMA(CLOSE,12)-EMA(CLOSE,26);dea:=EMA(diff,9);买入:CROSS(diff,dea);金叉:CROSS(DIF,DEA) AND DIF<0.3;要涨停陡峭度:=IF((BARSCOUNT(CLOSE) > 7),(100)*((MA(CLOSE,7))/(LLV(MA(CLOSE,7),7)) - 1),1); N:=IF((陡峭度> 0.35),6,65);V AR1:=((-((100)*(HHV(HIGH,N) - CLOSE))/(HHV(HIGH,N) - LLV(LOW,N))))*((DATE < 20170110)); 要涨停:(30)*(CROSS(V AR1,(-2)));指标公式涨停{参数M1 2 1000 5M2 2 1000 10M3 2 1000 20M4 2 1000 30M5 2 1000 60M6 2 1000 120M7 2 1000 250}MA1:MA(CLOSE,M1);MA2:MA(CLOSE,M2);MA3:MA(CLOSE,M3);MA4:MA(CLOSE,M4);MA5:MA(CLOSE,M5);MA6:MA(CLOSE,M6);MA7:MA(CLOSE,M7);C3:=REF(C,1); 涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(涨停,OPEN,CLOSE,5,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),2,0);STICKLINE(跌停,OPEN,CLOSE,5,0),COLORGREEN;黑马王N:=20;N1:=7;N2:=69;M3:=EMA(CLOSE,3);M8:EMA(CLOSE,8),CoLor008000;M13:EMA(M8,13),CoLor0000FF;M62:EMA(M8,55),CoLorF0F000;V AR1:=EMA(M13,62);M81:EMA(M62,81),CoLor00FFFF;M144:EMA(V AR1,144),Linethick2,CoLor0000FF;M250:EMA(V AR1,250),POINTDOT,Linethick2,CoLorF00FF0;V AR2:=(CLOSE+HIGH+LOW)/(3);V AR3:=(EMA(V AR2,10));V AR4:=(REF(VAR3,1));STICKLINE((V AR3>V AR4),V AR3,V AR4,4,0),CoLor00FFFF;STICKLINE((V AR3<V AR4),V AR3,V AR4,4,0),CoLorFF0000;V AR5:=((REF(HIGH,1)+REF(LOW,1))/(2));V AR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)));DRAWTEXT(CROSS(VAR3,V AR4),(V AR3)*(0.98),'★'),CoLor00FFFF;DRAWTEXT(CROSS(VAR5,V AR6),(HIGH)*(1.04),'↓卖'),CoLor008000;V AR7:=REF(CLOSE,1);V AR8:=((SMA(MAX(CLOSE-V AR7,0),N1,1))/(SMA(ABS(CLOSE-V AR7),N1,1)))*(100);V AR9:=CROSS(N2,V AR8);V ARA:=(FILTER(V AR9,4));DRAWTEXT(V ARA,(HIGH)*(1.04),'↓卖'),CoLorFFFFFF;V ARB:=((2)*(CLOSE)+HIGH+LOW)/(4);V ARC:=LLV(LOW,34);V ARD:=HHV(HIGH,34);V ARE:=(EMA(((V ARB-VAR1)/(V AR5-V AR1))*(100),7));V ARF:=(EMA((0.667)*(REF(V ARE,1))+(0.333)*(VARE),5));DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) AND (VOL>=(1.5)*(MA(VOL,5))) AND COUNT((V ARE>=V ARF),3) AND (REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),CoLorFF00FF; DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) AND COUNT((V ARE>V ARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) AND REF((OPEN>CLOSE),1) AND (OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),CoLor00FFFF;V AR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3));DRAWTEXT(IF((CLOSE<V AR10) AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND (CLOSE>(REF(CLOSE,1))*(1.08)) AND (CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;金叉MACDDIFF:EMA(CLOSE,12)-EMA(CLOSE,26);DEA:EMA(DIFF,9);MACD:=2*(DIFF-DEA);STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;STICKLINE(MACD<0,MACD,0,4,1),COLORWHITE;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR00AAFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3.3,0 ),COLOR00BBFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR00CCFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.65,0 ),COLOR00DDFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR00EEFF;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.55,0 ),COLOR00FFFF;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR0000AA;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3.3 ,0 ),COLOR0011BB;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2.2,0 ),COLOR0022CC;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.65 ,0 ),COLOR0033DD;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1 ,0 ),COLOR0044EE;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0.55 ,0 ),COLOR0055FF;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORAA00BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORBB11BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORCC22BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.65,0 ),COLORDD33BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLOREE44BB;STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFF55BB;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLORFFAA00;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3.3 ,0 ),COLORFFBB11;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2.2,0 ),COLORFFCC22;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.65 ,0 ),COLORFFDD33;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1.1 ,0 ),COLORFFEE44;STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.55 ,0 ),COLORFFFF55;IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;↑低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;STICKLINE(↑低位金叉,0,-0.5,2,0),COLORYELLOW;DRAWTEXT(↑低位金叉,-0.4,' ↑低位金叉'),COLORYELLOW;JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));↑二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;STICKLINE(↑二次金叉,0,-0.2,5,0),COLORFF00FF;DRAWICON(↑二次金叉,DEA*1.2,11) ;DRAWTEXT(↑二次金叉,-0.2,' ↑二次金叉'),COLORFF00FF;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));↑底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA); STICKLINE(↑底背离,0,0.2,3,0),COLOR00FF00;DRAWLINE(A1=0,DEA,↑底背离,DEA,0),COLORRED,LINETHICK2;DRAWTEXT(↑底背离,0.2,' ↑底背离'),COLOR00FF00;A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));↑顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF); DRAWLINE(A2=0,DEA,↑顶背离,DEA,0),COLORGREEN,LINETHICK2红进绿出V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;V AR4:=EMA(V AR3,5);V AR5:=3*V AR3-2*VAR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 AND C>O;V AR6:=(2*CLOSE+HIGH+LOW)/4;V AR7:=LLV(LOW,13);V AR8:=HHV(HIGH,13);V AR9:=EMA((V AR6-V AR7)/(V AR8-V AR7)*100,13);V ARA:=EMA(0.667*REF(V AR9,1)+0.333*V AR9,2);多:V AR9,COLORRED,POINTDOT;空:EMA(0.382*REF(VAR9,2)+0.618*V AR9,12),COLORGREEN;STICKLINE(V AR9>V ARA,V AR9,V ARA,6,0),COLORRED;STICKLINE(V AR9<=V ARA,V AR9,V ARA,6,0),COLORGREEN;DRAWTEXT(AA,10,'底'),COLORYELLOW;战无不胜危机线:85,colorred;中间线:50,colorwhite;安全线:15,colorgreen;v1:=(2*close+high+low)/4;v2:=llv(low,34);va:=hhv(high,34);防线b:=ema((v1-v2)/(va-v2)*100,13);防线bb:=ema((0.667*ref(防线b,1)+0.333*防线b),2);战术线:防线b,coloryellow,pointdot;战略线:ema(0.382*ref(防线b,2)+0.618*防线b,12),coloryellow;stickline(防线b>防线bb,防线b,防线bb,6,0),colorred;stickline(防线b<=防线bb,防线b,防线bb,6,0),;紫黄同现{紫黄同现股票将大涨}JJ :=(C*3+H+L+O)/6;SK := EMA(JJ,13) - EMA(JJ,21);SD := EMA(SK,3);SP := EMA(SK,10);A1:=EMA(C,7)-EMA(C,21);B1:=EMA((0.668*REF(A1,1)+0.333*A1),1);B1,COLORSTICK;X1:=V/SUM(V,13);X2:=DMA(C,X1);X3:=(C-X2)/X2*40;L2:=MA(AMOUNT/(100*V),13);CYS13:= (C-L2)/L2*100;做多:IF(A1>=B1,A1,B1),LINETHICK2,COLORFF00FF;做空:IF(B1-A1,B1,A1),COLORGREEN,LINETHICK2;强庄:STICKLINE(CYS13>5,0,-做空,2,0 ),COLORYELLOW;主力强度:STICKLINE(X3>0 AND 做多>0,做多+0.1,做多,1,0),COLORFF80FF;C>MA(C,30),COLORFF80FF,LINETHICK2;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J1:=DIFF;J2:=DEA;J3:=K;J4:=D;VL:=REF(LOW,1); VH:=REF(H,1);V AR1:=SMA(ABS(H-VH),13,1)/SMA(MAX(H-VH,0),13,1)*100;V AR2:=SMA(ABS(L-VL),13,1)/SMA(MAX(L-VL,0),13,1)*100;V AR3:=REF(CLOSE,1);V AR4:=MA(V AR2,13);V AR5:=LLV(L,34);V AR6:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;V AR7:=CROSS(93,V AR6);V AR8:=EMA(IF(L<=VAR5,V AR4,0),3);V AR9:=H>LLV(L,0)*7;V AR10:=(SMA(SMA((((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54))) * 100),7,1),5,1));V AR11:=((SMA(((CLOSE - LLV(LOW,54)) / (HHV(HIGH,54) - LLV(LOW,54)) * 100),7,1)) * 16.18) - (V AR10 * 10.9);上攻:FILTER(CROSS(J1,J2) AND VOL>REF(SUM(VOL,5),1),3),COLOR0066FF,LINETHICK2;WR10:=-100*(HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)),COLORWHITE,LINETHICK1;WR45:=-100*(HHV(HIGH,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45)),COLORFFB900,LINETHICK1;WR99:=-100*(HHV(HIGH,99)-CLOSE)/(HHV(HIGH,99)-LLV (LOW,99)),COLORRED,LINETHICK1;顶:= 0, LINETHICK2 ,COLOR446600;底1:=-95, LINETHICK2 ,COLOR446600;红柱初现工作线:MA(CLOSE,14),COLORRED,LINETHICK2;操盘线:MA(CLOSE,26),Color00A800,LINETHICK2;X1:=MA(C,1);X2:=SMA(SMA(SMA(x1,2,1),2,1),2,1);X3:=MA(x2,3);X4:=(L+H+C*4)/6;X5:=EMA(x4,12);x6:=EMA(x4,19);x7:=(x5-REF(x5,1))/REF(x5,1)*100;x9:=(x6-REF(x6,1))/REF(x6,1)*100;G:=BARSLAST(CROSS(x7,0));X8:=REF(x4,G);A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30)) *100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,12)-EMA(CLOSE,26);A6:=EMA(A5,9);A7:=(A5-A6);STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),HIGH,LOW,0.5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,8,0),color070084;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,7,0),color0000A3;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,6,0),color0000B7;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,5,0),color0000CD;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,4,0),color0000E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,2,0),color0754E9;STICKLINE(x9>=0 and ma(CLOSE,20)>REF(ma(CLOSE,20),1) and ma(CLOSE,60)>REF(ma(CLOSE,60),1) and ma(CLOSE,120)>REF(ma(CLOSE,120),1),CLOSE,OPEN,0.6,0),Color68B8FF;Z1:MA(CLOSE,5),COLORYELLOW,;Z2:MA(CLOSE,55){,ColorFF8080},Color00FF00,LINETHICK2;玄黄吉星XF: EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);V AR2:=MA(CLOSE,80)-MA(CLOSE,13)/3;神奇趋势线:=MA((CLOSE-V AR2)/V AR2,1);狙击:DRAWTEXT(CROSS(神奇趋势线,0) AND LOW/REF(HIGH,1)<1.012,LOW,'狙击'),COLORYELLOW;盈利临界: DRAWTEXT(COUNT(神奇趋势线>REF(神奇趋势线,1),3)=3 AND COUNT(神奇趋势线<0,10)=10 AND REF(神奇趋势线,3)=LLV(神奇趋势线,10),LOW,'盈利临界'),COLORYELLOW;参与: DRAWTEXT(REF(神奇趋势线,2)=LLV(神奇趋势线,20) AND REF(神奇趋势线,2)<0.071 AND REF(神奇趋势线,2)<REF(神奇趋势线,1) AND NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND CLOSE>REF(CLOSE,1),LOW,'参与'),COLORYELLOW;DRAWICON(CROSS(EMA(CLOSE,8),EMA(EMA(CLOSE,8),20)) AND EMA(CLOSE,8)<MA(CLOSE,120),LOW,1),COLORRED;DRAWTEXT((WINNER(CLOSE)-WINNER(OPEN))*100>=17 AND VOL/CAPITAL*100<=2,LOW,'无量长阳,谨慎'),COLORWHITE;V AR1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR21:=SMA(VAR1,20,1);V AR3:=SMA(V AR21,15,1);V AR4:=100-3*VAR21+2*V AR3;V AR5:=(3*VAR21+2*V AR3)/4;V AR6:=ABS(ABS(V AR5)-ABS(V AR4));V AR7:=ABS(ABS(V AR5)-ABS(V AR6));阴跌区域:=V AR4-V AR7;见顶区域:=阴跌区域<0;均衡:=V AR5-V AR7;DRAWTEXT(CROSS(阴跌区域,均衡),LOW,'阴跌延续'),COLORGREEN;DRAWTEXT(CROSS(阴跌区域,-0.1),LOW,'见顶回落'),COLORWHITE;STICKLINE(C>=O,C,H,0.1,0),COLORRED;TTZF:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100 {AND TTZF>=ZF};STICKLINE(TTZF>=2.50 ,O ,C ,8,0),COLOR00FFFF;中轨:HHV(MA(H,11),15),COLORRED;趋势:LLV(MA(H,11),1),COLORGREEN;三合成RSI6:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,colorwhite;DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:800*(DIFF-DEA)/EMA(C,30),colorSTICK,linethick3;RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;K20:SMA(RSV,5,1),COLORyellow;D20:SMA(K20,5,1),COLORFF00ff;20;50;80;DRAWICON(count(c>ref(c,1),5)=5,h*1.01,3);DRAWICON(count(c<ref(c,1),5)=5,l*0.995,1);机构能量做多能量线: SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100,5,1)-8,COLORRED,LINETHICK3;做空能量线: SMA((HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100,2,1),COLORGREEN,LINETHICK3; 20,pointdot,colorf00ff0;50,pointdot,colorgreen;80,pointdot,colorwhite;短线之星Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);买入信号: IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred ;卖出信号: IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen ;强弱线: MA(Var3,6),coloryellow ,linethick2 ;极品逃顶V AR2:=LLV(LOW,10);V AR3:=HHV(HIGH,25);阶段卖出: 3.2,COLORC6C600;3.5,COLOR0088FF;清仓卖出: 3.5,COLORFF75FF;动力线:= EMA((CLOSE-V AR2)/(V AR3-V AR2)*4,4);STICKLINE(动力线>REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLORRED; STICKLINE(动力线<=REF(动力线,1) ,动力线,REF(动力线,1),3 ,1),COLOR00FF00; 底部:0.2,COLOR70DB93;关注:0.5,COLORYELLOW;DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2); DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;数值:动力线,COLORA8A8A8;超级逃顶Var2:=llv(low,10);var3:=hhv(high,25);3.5,color0088ff;清仓卖出: 3.5;动力线:= ema((close-var2)/(var3-var2)*4,4);stickline(动力线>ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorred;stickline(动力线<=ref(动力线,1) ,动力线,ref(动力线,1),8 ,1),colorgreen;底部介入:0.2,colorgreen;重点关注:0.5, coloryellow;drawicon( filter(cross(动力线,重点关注),20),动力线+0.02 ,1);drawicon( filter(cross(清仓卖出,动力线),20),动力线+0.02,2);drawicon( filter(cross(动力线,底部介入),20),动力线+0.02 ,1);drawicon( filter(cross(JDMC,动力线),20),动力线+0.02,2);强弱分界线:1.75,pointdot,linethick2,colordddddd;抄底逃顶趋势: 5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW ,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,2 7)-LLV(LOW,27))*100,5,1),3,1),2,1),LINETHICK0,COLOR7F52AF;趋势1: EMA(MA(趋势,5),3),LINETHICK0,COLORA6B8C1;STICKLINE(趋势>=趋势1,趋势,趋势1,5,0),COLOR7F52AF;STICKLINE(趋势<趋势1,趋势,趋势1,5,0),COLORA6B8C1;STICKLINE(趋势>108 AND 趋势>=趋势1,趋势,108,5,0),COLORFF0000;STICKLINE(趋势1>108 AND 趋势<趋势1,趋势1,108,5,0),COLORFFFFFF;STICKLINE(趋势<0 AND 趋势<趋势1,趋势,0,5,0),COLORF00FF0;STICKLINE(趋势1<0 AND 趋势>趋势1,趋势1,0,5,0),COLORF0F000;V1:= MA(CLOSE,5)=HHV(MA(CLOSE,5),20);V2:= MA(CLOSE,5)>MA(CLOSE,20);V3:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险: IF(V1 AND V2 AND V3,30,0),LINETHICK0,STICK,COLOR00FF00;V11:= MA(CLOSE,5)=HHV(MA(CLOSE,5),120);V21:= MA(CLOSE,5)>MA(CLOSE,120);V31:= COUNT(MA(CLOSE,1)>REF(CLOSE,1),3)=3;风险1: IF(V11 AND V21 AND V31,60,0),LINETHICK0,STICK,COLORF0F000;底部: 5,LINETHICK0,COLOR00FFFF;抄底: IF(CROSS(趋势,底部),60,0),LINETHICK2,STICK,COLOR00FFFF;DRAWTEXT(抄底,50,'抄底'),COLOR0000FF;天线: 108,LINETHICK0,COLORFF9D00;逃顶: IF(CROSS(天线,趋势),1,0),LINETHICK0,STICK,COLORFF9D00;STICKLINE(CROSS(天线,趋势),90,108,3,0),COLORFF9D00;DRAWTEXT(CROSS(天线,趋势),85,'逃顶'),COLORFF9D00;金牌黑马A1:3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))黑马线:EMA(A1,5),LINETHICK2,COLOR6600FF;A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;A3:=EMA(C,5);A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2)),LINETHICK2,COLORYELLOW;A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;DRAWTEXT(CROSS(A1,黑马线)AND 黑马线<A5,黑马线,'黑马');DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');底部:(A2<-10 AND A2>REF(A2,1))*25,COLORRED;DRAWICON(底部AND A3>REF(A3,1),25,4);机会来临:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,30,0),1),COLORF00FF0; 大势已去:IF(CROSS(黑马线,A1)AND 黑马线>70 AND 趋势线>80,90,100),COLORFF0000;中短长线90,COLOR9966FF,LINETHICK2;80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;长期线:MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19)+100,color9900FF;短期线:-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14))+100,color888888;中期线:EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4)+100,coloryellow,linethick2;见顶:(ref(中期线,1)>85 and ref(短期线,1)>85 and ref(长期线,1)>65) and cross(长期线,短期线) ;顶部区域:(中期线<ref(中期线,1) and ref(中期线,1)>80) and (ref(短期线,1)>95 or ref(短期线,2)>95 ) and 长期线>60 and 短期线<83.5and 短期线<中期线and 短期线<长期线+4;顶部:=filter(顶部区域,4);底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or ref(短期线,1)<5) and (中期线>ref(中期线,1) or 短期线>ref(短期线,1)))or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>ref(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ;stickline( 顶部,99,103,20,1 ),colorred,linethick2;stickline( 底部区域,-4,0,22,0 ),colorgreen;低位金叉:长期线<15 and ref(长期线,1)<15 and 中期线<18 and 短期线>ref(短期线,1) and cross(短期线,长期线) and 短期线>中期线and (ref(短期线,1)<5 or ref(短期线,2)<5 ) and (中期线>=长期线or ref( 短期线,1)<1 );stickline( 低位金叉,0,5,11,0 ),colorred;仓位增减(主图)。
【股票指标公式下载】-【大智慧】绝对经典(能量线、大盘线、行业线)
【大智慧】绝对经典(能量线、大盘线、行业线)-指标公式源码INPUT:N(70,1,999),M(5,1,120);ZSC:=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('保险'),"991255$CLOSE",0))))))))))))))))))))))))))))))));ZSH:=IF(INBLOCK('工程建筑'),"991002$HIGH",IF(INBLOCK('电力'),"991003$HIGH",IF(INBLOCK('计算机'),"991004$HIGH",IF(INBLOCK('电子信息'),"991006$HIGH",IF(INBLOCK('房地产'),"991007$HIGH",IF(INBLOCK('纺织服装'),"991008$HIGH",IF(INBLOCK('钢铁'),"991009$HIGH",IF(INBLOCK('供水供气'),"991010$HIGH",IF(INBLOCK('化工化纤'),"991011$HIGH",IF(INBLOCK('电器'),"991014$HIGH",IF(INBLOCK('交通设施'),"991016$HIGH",IF(INBLOCK('银行类'),"991017$HIGH",IF(INBLOCK('旅游酒店'),"991018$HIGH",IF(INBLOCK('煤炭石油'),"991019$HIGH",IF(INBLOCK('酿酒食品'),"991020$HIGH", IF(INBLOCK('农林牧渔'),"991021$HIGH",IF(INBLOCK('商业连锁'),"991023$HIGH",IF(INBLOCK('建材'),"991024$HIGH",IF(INBLOCK('其他行业'),"991025$HIGH",IF(INBLOCK('汽车类'),"991026$HIGH",IF(INBLOCK('机械'),"991027$HIGH",IF(INBLOCK('医药'),"991028$HIGH",IF(INBLOCK('外贸'),"991031$HIGH",IF(INBLOCK('教育传媒'),"991032$HIGH", IF(INBLOCK('仪电仪表'),"991033$HIGH",IF(INBLOCK('有色金属'),"991034$HIGH",IF(INBLOCK('造纸印刷'),"991035$HIGH", IF(INBLOCK('券商'),"991036$HIGH",IF(INBLOCK('电力设备'),"991037$HIGH",IF(INBLOCK('通信'),"991135$HIGH",IF(INBLOCK('运输物流'),"991136$HIGH",IF(INBLOCK('保险'),"991255$HIGH",0)))))))))))))))))))))))))))))))); ZSL:=IF(INBLOCK('工程建筑'),"991002$LOW",IF(INBLOCK('电力'),"991003$LOW",IF(INBLOCK('计算机'),"991004$LOW",IF(INBLOCK('电子信息'),"991006$LOW",IF(INBLOCK('房地产'),"991007$LOW",IF(INBLOCK('纺织服装'),"991008$LOW",IF(INBLOCK('钢铁'),"991009$LOW",IF(INBLOCK('供水供气'),"991010$LOW",IF(INBLOCK('化工化纤'),"991011$LOW",IF(INBLOCK('电器'),"991014$LOW",IF(INBLOCK('交通设施'),"991016$LOW",IF(INBLOCK('银行类'),"991017$LOW",IF(INBLOCK('旅游酒店'),"991018$LOW",IF(INBLOCK('煤炭石油'),"991019$LOW",IF(INBLOCK('酿酒食品'),"991020$LOW",IF(INBLOCK('农林牧渔'),"991021$LOW",IF(INBLOCK('商业连锁'),"991023$LOW",IF(INBLOCK('建材'),"991024$LOW",IF(INBLOCK('其他行业'),"991025$LOW",IF(INBLOCK('汽车类'),"991026$LOW",IF(INBLOCK('机械'),"991027$LOW",IF(INBLOCK('医药'),"991028$LOW",IF(INBLOCK('外贸'),"991031$LOW",IF(INBLOCK('教育传媒'),"991032$LOW",IF(INBLOCK('仪电仪表'),"991033$LOW",IF(INBLOCK('有色金属'),"991034$LOW",IF(INBLOCK('造纸印刷'),"991035$LOW",IF(INBLOCK('券商'),"991036$LOW",IF(INBLOCK('电力设备'),"991037$LOW",IF(INBLOCK('通信'),"991135$LOW",IF(INBLOCK('运输物流'),"991136$LOW",IF(INBLOCK('保险'),"991255$LOW",0))))))))))))))))))))))))))))))));Var12:=(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))*100;能量线:SMA(Var12,3,1)*(-1)+100,colorRED,linethick2;KNX:=SMA(Var12,3,1);MK:=MA(KNX,M);买点:IF(KNX>N AND CROSS(MK , KNX),50,0),COLORWHITE,LINETHICK1;Var13:=(HHV(ZSH,34)-ZSC)/(HHV(ZSH,34)-LLV(ZSL,34))*100;行业线:SMA(Var13,3,1)*(-1)+100,colorgreen,linethick1;Var11:=(HHV(INDEXH,34)-INDEXC)/(HHV(INDEXH,34)-LLV(INDEXL,34))*100; 大盘线:SMA(Var11,3,1)*(-1)+100,colorYELLOW,linethick1;板块:=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(10,5,'所属: '+板块+'指数'),COLORYELLOW;【大智慧】绝对经典(能量线、大盘线、行业线)-指标公式效果图(文档来源:若水财经社区)。
大智慧主图公式
VAR2:=MA(CLOSE,5);
VAR3:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;
VAR4:=SMA(MAX(CLOSE-VAR1,0),12,1)/SMA(ABS(CLOSE-VAR1),12,1)*100;
VAR8:=IF(CLOSE>=MA(CLOSE,20),80,50);
VAR9:=IF(CLOSE>=MA(CLOSE,20),50,20);
VARA:=IF(VAR3<VAR8 AND REF(VAR3,1)>=VAR8,HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),REF(HHV(REF(HIGH,1),BARSLAST(VAR3>=VAR8 AND REF(VAR3,1)<VAR8)-1),BARSLAST(VAR3<VAR8 AND REF(VAR3,1))));
VARB:=IF(HIGH>VARA,LOW,REF(LOW,BARSLAST(HIGH>VARA)));
VARC:=IF(HIGH>VARA,VAR3,REF(VAR3,BARSLAST(HIGH>VARA)));
VARD:=IF(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5,HIGH,REF(HIGH,BARSLAST(HIGH>VARB AND VAR3<VARC AND VAR3<VAR5)));
压力线: VAR11,COLORFF00FF ,LINETHICK2 ;
【股票指标公式下载】-【大智慧】分时主图(所属板块、每股市盈率、每股收益、同比增长)
【大智慧】分时主图(所属板块、每股市盈率、每股收益、同比增长)-指标公式源码所属板块:=BKNAME;每股市盈率:=DYNAINFO(39);每股收益:=FINANCE2(3);流通盘大小:=FINANCE2(37)/1000000*100;同比增长:=FINANCE2(10);DRAWTEXTREL(0,765,'同比增长:'+NUMTOSTRN(同比增长,2)+'%'),LINETHICK1,ColorAFFF00;DRAWTEXTREL(0,695,'流通盘:'+NUMTOSTRN(流通盘大小,2)+'亿'),LINETHICK1,ColorAFFF00;DRAWTEXTREL(180,695,'每股收益:'+NUMTOSTRN(每股收益,2)+'元'),ColorAFFF00;DRAWTEXTREL(180,765,'每股市盈:'+NUMTOSTRN(每股市盈率,1)+'倍'),ColorAFFF00;DRAWTEXTREL(0,625,'所属板块:'+所属板块),COLORCYAN; DRAWTEXTREL(260,10,'上涨家数:'+NUMTOSTRN(DYNAINFO(69),0)+' 家'),COLOR0000FF;DRAWTEXTREL(530,10,'下跌家数:'+NUMTOSTRN(DYNAINFO(70),0)+' 家'),COLOR00FF00;DRAWTEXTREL(400,10,'平盘家数:'+NUMTOSTRN(DYNAINFO(71),0)+' 家'),COLORFFFFFF;MA5:="MAB.MA5#day";MA10:="MAB.MA10#day";MA24:="MAB.MA24#day";MA30:="MAB.MA30#day";MA60:="MAB.MA60#day";MA100:="MAB.MA100#day";MA200:="MAB.MA200#day";MA300:="MAB.MA300#day";MA400:="MAB.MA400#day";MA5P:=(MA5-DYNAINFO(3))/DYNAINFO(3)*100;MA10P:=(MA10-DYNAINFO(3))/DYNAINFO(3)*100;MA24P:=(MA24-DYNAINFO(3))/DYNAINFO(3)*100;MA30P:=(MA30-DYNAINFO(3))/DYNAINFO(3)*100;MA60P:=(MA60-DYNAINFO(3))/DYNAINFO(3)*100;MA100P:=(MA100-DYNAINFO(3))/DYNAINFO(3)*100;MA200P:=(MA200-DYNAINFO(3))/DYNAINFO(3)*100;MA300P:=(MA300-DYNAINFO(3))/DYNAINFO(3)*100;MA400P:=(MA400-DYNAINFO(3))/DYNAINFO(3)*100; DRAWTEXTREL( 0,10,' 5日线: '+NUMTOSTRN(MA5,2)+'元'+NUMTOSTRN(MA5P,1)+'%'),colorwhite;DRAWTEXTREL( 0,60 ,'10日线: '+NUMTOSTRN(MA10,2)+'元'+NUMTOSTRN(MA10P,1)+'%'),COLORCYAN;DRAWTEXTREL( 0,110 ,'24日线: '+NUMTOSTRN(MA24,2)+'元'+NUMTOSTRN(MA24P,1)+'%'),Color00FFFF;DRAWTEXTREL( 690,10 ,'昨高点: '+NUMTOSTRN(MA30,2)+'元'+NUMTOSTRN(MA30P,1)+'%'),COLORFF00FF;DRAWTEXTREL( 690,60 ,'昨低点: '+NUMTOSTRN(MA60,2)+'元'+NUMTOSTRN(MA60P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 400,695 ,'生命线: '+NUMTOSTRN(MA400,2)+'元'+NUMTOSTRN(MA400P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 400,765 ,'控盘成本: '+NUMTOSTRN(MA100,2)+'元'+NUMTOSTRN(MA100P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 660,695 ,'低吸伏击: '+NUMTOSTRN(MA200,2)+'元'+NUMTOSTRN(MA200P,1)+'%'),ColorAFFF00;DRAWTEXTREL( 660,765 ,'走势铁底: '+NUMTOSTRN(MA300,2)+'元'+NUMTOSTRN(MA300P,1)+'%'),ColorAFFF00;VAR0:=VOL/CLOSE/2;VAR1:=SUM(IF(VAR0>100 AND CLOSE>REF(CLOSE,1),VAR0,0),0); VAR2:=SUM(IF(VAR0>100 AND CLOSE<REF(CLOSE,1),VAR0,0),0); VAR3:=SUM(IF(VAR0<100 AND CLOSE>REF(CLOSE,1),VAR0,0),0); VAR4:=SUM(IF(VAR0<100 AND CLOSE<REF(CLOSE,1),VAR0,0),0); VAR5:=VAR1+VAR2+VAR3+VAR4;VAR6:=IF(BARSTATUS=2,100*VAR1/VAR5,0);VAR7:=IF(BARSTATUS=2,100*VAR2/VAR5,0);VAR8:=IF(BARSTATUS=2,100*VAR3/VAR5,0);VAR9:=IF(BARSTATUS=2,100*VAR4/VAR5,0);DRAWTEXTREL(908,20,'大单买盘'),LINETHICK2,COLORFF55FF;DRAWTEXTREL(908,188,'大单卖盘'),LINETHICK2,COLORFFFF55; DRAWTEXTREL(908,356,'中小买盘'),LINETHICK2,COLOR5555FF; DRAWTEXTREL(908,524,'中小卖盘'),LINETHICK2,COLOR55FF55;IF BARSTATUS=2 THEN BEGINDRAWTEXTREL(930,100,''+FLOOR(VAR6)+'%'),LINETHICK2,COLORFF55FF; ENDIF BARSTATUS=2 THEN BEGINLOOP0:=FLOOR(VAR7);VAR10:=''+LOOP0;VAR11:=VAR10 + '%';DRAWTEXTREL(930,268,VAR11),LINETHICK2,COLORFFFF55;ENDIF BARSTATUS=2 THEN BEGINLOOP1:=FLOOR(VAR8);VAR12:=''+LOOP1;VAR13:=VAR12+'%';DRAWTEXTREL(930,436,VAR13),LINETHICK2,COLOR5555FF;ENDIF BARSTATUS=2 THEN BEGINLOOP2:=FLOOR(VAR9);VAR14:=''+LOOP2;VAR15:=VAR14+'%';DRAWTEXTREL(930,604,VAR15),LINETHICK2,COLOR55FF55;END;【大智慧】分时主图(所属板块、每股市盈率、每股收益、同比增长)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】分时控盘(主力出货、有庄控盘、高度控盘)
【大智慧】分时控盘(主力出货、有庄控盘、高度控盘)-指标公式源码VAR1:=EMA(EMA(CLOSE,13),13);控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00;STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF;无庄控盘:=控盘<0;STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF;有庄控盘:=控盘>REF(控盘,1) AND 控盘>0;VAR2:=100*WINNER(CLOSE*0.95);STICKLINE(控盘<REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLORFFFF00;主力出货:=控盘<REF(控盘,1) AND 控盘>0;STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盘>0,控盘,0,1,1),COLOR00FFFF;高度控盘: VAR2>50 AND COST(85)<CLOSE AND 控盘>0,COLOR00FFFF,LINETHICK2; A10:=CROSS(控盘,0);控盘B:=FILTER(IF(A10,1,0),5);JJ:=DYNAINFO(11);P:=55;S:=8;M1:=3;财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10;神:=EMA(财,M1);BTJ1:=(C-JJ)/JJ<-0.03;BTJ11:=(C-JJ)/JJ<-0.03;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);DRAWTEXT(BTJ81,神,'↑买底'),COLORRED;DRAWTEXT(BTJ811,神*1.2,'↑有庄'),COLORWHITE;STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);STJ82:=FILTER(STJ02 AND STJ32 ,13);STJ83:=STJ81 AND STJ82;DRAWTEXT(STJ83,神,'↓卖'),COLOR00FF00;DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED;DEA: EMA(DIFF,3),COLORGREEN;庄:= BTJ11 AND BTJ2 AND BTJ3;有庄:FILTER(庄,55),COLORWHITE;DRAWTEXT(BTJ811,有庄,'有庄'),COLORWHITE;【大智慧】分时控盘(主力出货、有庄控盘、高度控盘)-指标公式效果图(文档来源:若水财经社区)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【大智慧】智慧持股(持股线、大盘股、小盘股、中盘古)-指标公式源码IF(FINANCE2(37)/10000>=100) THEN BEGINDRAWTEXTREL(0,950,'【超大盘0.7%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<100 and FINANCE2(37)/10000>=10) THEN BEGIN DRAWTEXTREL(0,950,'【大盘股9.0%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<10 and FINANCE2(37)/10000>=5) THEN BEGIN DRAWTEXTREL(0,950,'【中盘股12.7%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<5 and FINANCE2(37)/10000>=1) THEN BEGIN DRAWTEXTREL(0,950,'【小盘股55.3%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;IF(FINANCE2(37)/10000<1) THEN BEGINDRAWTEXTREL(0,950,'【超小盘22.3%】流通A股'+FINANCE2(37)/10000+'亿股'),LINETHICK2,ColorFF00FF; end;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(ff1,(LOW* 0.99),'↖鼠'),Color4080FF;STICKLINE(ff1,O,C,6,0),COLORyellow;STICKLINE(ff1,O,C,2.5,0),COLORred;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) ANDCROSS(DX,MA(DX,2)),1,0);DRAWTEXT(filter(买=1,5),LOW-0.08,'↖低') ,COLORAAAAFF;STICKLINE(filter(买=1,5),O,C,6,0),COLORyellow;STICKLINE(filter(买=1,5),O,C,2.5,0),COLORred;cc:=(h-c)/(c-o)<0.33;dd:=(c/ref(c,1)-1)>=0.0502 and c>ref(c,1) and (o-l)/(c-o)>=1.48 andl<ref(l,1) and l<ref(l,2);ee:=(c/ref(c,1)-1)>=0.08;aa:=VOL>REF(VOL,1)*1.9 and c>ref(c,1) and c/ref(c,1)-1>=0.049 and cc; bb:=(c/ref(c,1)-1)>=0.0502 and c>ref(c,1) and v>ref(v,1) andVOL>REF(VOL,1)*2.5 and cc;DRAWTEXT(FILTER(aa or bb or dd or ee,34),l,'↖异动'),COLOrffff00; STICKLINE(FILTER(aa or bb or dd or ee,34),O,C,6,0),COLORyellow; STICKLINE(FILTER(aa or bb or dd or ee,34),O,C,2.5,0),COLORRED;AAA:=(3*C+H+L+O)/6;VAR41:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*R EF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR41;立桩量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(HIGH,3),1,0)));突破:=TJ2=1;TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 ANDCLOSE>REF(LOW,3),1,0)));三天法则:=TJ3=1;成立:=三天法则 AND 突破;条件成立:=FILTER(成立,3);DRAWTEXT(条件成立,L*0.97,'↖立桩量'),COLORYELLOW;VAR1111:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);VAR2222:=CROSS(VAR1111,0.9);压力:= REF(HIGH,BARSLAST(VAR2222));STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2222)),REF(HIGH,BARSLAST(VAR2222)),0.5,1),COLOREA91B5,LINETHICK1;STICKLINE(CLOSE<OPEN andref(CLOSE,1)>ref(OPEN,1),ref(close,1),ref(close,1),33,0),COLORwhite,L INETHICK1;DD:=FINANCE2(35);SS:=FINANCE2(37);GG:=FINANCE2(3);TH:=DYNAINFO(39);DRAWTEXTREL(0,70,'总股本:'+NUMTOSTRn(DD,0)+'万股' +' 流通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=2 and c>=今日阻力,今日阻力,今日阻力,20,0),Color0000FF;STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,20,0),Color00FF00;STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,20,0),ColorFF00FF;STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,20,0),ColorFF9900;DRAWTEXTREL(850,890,'今日支撑:'+NUMTOSTRN(今日支撑 ,2 )),Colorred; DRAWTEXTREL(850,950,'今日阻力:'+NUMTOSTRN(今日阻力 ,2 )),ColorGREEN; DRAWTEXTREL(0,20,'所属板块:'+BKNAME),ColorRED;DRAWTEXTREL(0,120,'每股收益:'+NUMTOSTRN(FINANCE2(3),3)+'元'+' 市盈率:'+NUMTOSTRN(DYNAINFO(39),2)+'元'+' 市净率:'+NUMTOSTRN((CLOSE / FINANCE2(4)),2)+'元'+' 净资产:'+NUMTOSTRN(FINANCE2(4),2)+'元'),Color00C0FF;DRAWTEXTREL(0,270,'历史最高价:'+HHV(HIGH,0)),Colorred; DRAWTEXTREL(160,270,'历史最低价:'+LLV(LOW,0)),ColorAFFF00;销售毛利率:=FINANCE2(12);主营收入同比:=FINANCE2(11);净利润同比增长:=FINANCE2(10);DRAWTEXTREL(0,170,'销售毛利率:'+NUMTOSTRN(销售毛利率,2)+'%'),LINETHICK1,COLORff00ff;DRAWTEXTREL(180,170,'主营收入同比增长:'+NUMTOSTRN(主营收入同比,2)+'%'),LINETHICK1,ColorYELLOW;DRAWTEXTREL(0,220,'净利润同比增长:'+NUMTOSTRN(净利润同比增长,2)+'%'),LINETHICK1,COLOR00FF00;LJL07:=(3*C+L+O+H)/6;金钱:(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(L JL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07, 8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7 *REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF( LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORgreen,LINETHICK4; 银线:EMA(CLOSE,6),COLORff00ff,LINETHICK4;线:EMA(CLOSE,6),COLORwhite,LINETHICK2;【大智慧】智慧持股(持股线、大盘股、小盘股、中盘古)-指标公式效果图(文档来源:若水财经社区)。