【股票指标公式下载】-【大智慧】强势狙击(加速度、乖离率)
【股票指标公式下载】-【大智慧】精准买卖(趋势线、见顶清仓)
【大智慧】精准买卖(趋势线、见顶清仓)-指标公式源码V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),colorblue;主力进: IF(V4>=0,V4,0),colorff00ff;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),Colorred;大盘资金撤走:IF(VB<=0,VB,0),colorgreen;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;aa:=(趋势线<=13) and filter((趋势线<=13),15);drawtext (aa,30,'准备现金'),colorcc9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),color0099ff;bb:= (趋势线<=13 AND V12>13) and filter((趋势线<=13 AND V12>13),10) ; drawtext (bb,60,'买入股票'),color0099ff;卖临界: STICKLINE(趋势线>90 and 趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90 and 趋势线<ref(趋势线,1) and 主力进<ref(主力进,1),8);DRAWTEXT( 见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90 AND V12) and filter((趋势线>=90 AND V12),10);stickline(大盘资金进场 and 趋势线<13,0,30,10,0),colorred;stickline(大盘资金撤走 and 趋势线>90,0,30,10,0),colorgreen;stickline(主力进 and 趋势线<13,0,40,10,0),colorff00ff;stickline(主力撤 and 趋势线>90,0,40,10,0),colorblue;【大智慧】精准买卖(趋势线、见顶清仓)-指标公式效果图(文档来源:若水财经社区)。
东方财富强势狙击指标源码
东方财富强势狙击指标源码该指标通过以下步骤进行计算:1.首先,计算股票的收盘价、开盘价、最高价和最低价之间的价格差,可以使用以下公式:收盘价-开盘价=收盘价差最高价-最低价=振幅2. 然后,计算强势狙击指标(Strong Momentum Indicator)的值,可以使用以下公式:强势狙击指标=振幅/收盘价差根据强势狙击指标的值,我们可以根据以下规则制定交易策略:1.当强势狙击指标的值大于一个设定的阈值(例如2)时,表示股票的价格走势强劲,并且市场上可能存在买入机会。
此时,我们可以考虑买入股票。
2.当强势狙击指标的值小于一个设定的阈值(例如0.5)时,表示股票的价格走势较弱,并且市场上可能存在卖出机会。
此时,我们可以考虑卖出股票。
以下是一个使用Python编写的东方财富强势狙击指标的源代码示例:```pythonimport pandas as pddef calculate_strong_momentum(df, threshold=2):"""计算强势狙击指标:param df: 股票价格数据,包括收盘价、开盘价、最高价和最低价:param threshold: 设定的阈值,默认为2:return: 强势狙击指标"""df['close_diff'] = df['close'] - df['open']df['amplitude'] = df['high'] - df['low']df['strong_momentum'] = df['amplitude'] / df['close_diff'] buy_signals = df[df['strong_momentum'] > threshold]sell_signals = df[df['strong_momentum'] < threshold]return buy_signals, sell_signals#示例用法stock_prices = pd.read_csv('stock_prices.csv') # 读取股票价格数据,包括收盘价、开盘价、最高价和最低价buy_signals, sell_signals =calculate_strong_momentum(stock_prices)print("买入信号:")print(buy_signals)print("卖出信号:")print(sell_signals)```在这个示例中,我们首先导入`pandas`库来读取股票价格数据,然后定义了一个名为`calculate_strong_momentum`的函数来计算强势狙击指标。
【股票指标公式下载】-【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)
【股票指标公式下载】-【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)第一篇:【股票指标公式下载】-【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)【大智慧】大资金流(大盘指数、大盘涨跌、股票代码)-指标公式源码{【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日线就持币。
【股票指标公式下载】-【大智慧】数字主图(预测、明日支撑、撑压位共9页文档
【大智慧】数字主图(预测、明日支撑、撑压位)-指标公式源码预测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;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;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,'---------------------------------------'), ColorFFFFFF;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) and AA30>ref(AA30,1);Var2:=(AA30-AA20)<ref((AA30-AA20),1) and AA20<ref(aa20,1) and AA30<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) and AA05<ref(aa05,1) and 三拾日乖离率<ref(三拾日乖离率,1) andAA10<ref(AA10,1),10);drawtext(加仓,low*0.98,'←加仓'),colorred;JC:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) and AA10>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 andref(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,LA YER0;{彩色牛K}STICKLINE(Var5,OPEN,CLOSE-(CLOSE-OPEN)*0.66,5,0),COLORRED,LAYER 0;{彩色牛K}DRAWTEXT(c>0,(O+C)/2,NUMTOSTRN(gz2,0 )),coloryellow,LAYER0,ALIG N1,VALIGN0,LINETHICK1;{彩色牛K};【大智慧】数字主图(预测、明日支撑、撑压位)-指标公式效果图(文档来源:若水财经社区)希望以上资料对你有所帮助,附励志名言3条:1、理想的路总是为有信心的人预备着。
大智慧指标公式源码精品打包
猎庄+买入信号Var2:=REF(LOW,1);Var3:=SMA(ABS(LOW-Var2),3,1)/SMA(MAX(LOW-Var2,0),3,1)*100;Var4:=EMA(IF(CLOSE*1.2,Var3*10,Var3/10),3);Var5:=LLV(LOW,38);Var6:=HHV(Var4,38);Var7:=IF(LLV(LOW,90),1,0);Var8:=EMA(IF(LOW<=Var5,(Var4+Var6*2)/2,0),3)/618*Var7;有庄的影子: STICKLINE(V ar8,0,Var8,6,1) , COLORffaaff;趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORaabbdd;aa:=((ref(趋势线,1)<ref(趋势线,2) and 趋势线<-30) and 趋势线>=ref(趋势线,1)) or (ref(cross(-30,趋势线),1) and cross(趋势线,-30)) or 趋势线=-30;drawtext(aa,500,'砸锅卖田买'),coloryellow;砸锅卖田买:if(aa,500,-30),coloryellow;bb:=((ref(趋势线,1)<ref(趋势线,2) and 趋势线<-20 and 趋势线>-25) and 趋势线>=ref(趋势线,1)) or (ref(cross(-20,趋势线),1) and cross(趋势线,-20));drawtext(bb,300,'见底信号'),colorred;见底信号:if(bb,300,-20),colorred;cc:=((ref(趋势线,1)<ref(趋势线,2) and 趋势线<-25 and 趋势线>-30) and 趋势线>=ref(趋势线,1)) or (ref(cross(-25,趋势线),1) and cross(趋势线,-25));drawtext(cc,400,'莫错失机会'),color00ff00;莫错失机会:if(cc,400,-25),color00ff00;底部快显:if(cross(-20,趋势线),100,-20),linethick2,colorf0f000;drawtext(cross(-20,趋势线),120,'★'),colorf0f000;机会来临:if(cross(-25,趋势线),150,-25),linethick2,colorf00ff0;drawtext(cross(-25,趋势线),170,'★'),colorf00ff0;砸锅卖田等:if(cross(-30,趋势线),200,-30),linethick2,colorwhite;drawtext(cross(-30,趋势线),220,'★'),colorwhite;{见底信号:}-20,colorred,pointdot;{莫要错失机会:}-25,colorlime,pointdot;{砸锅卖田等着你:}-30,coloryellow,pointdot;皇赐桥杯——庄家的馈赠{皇赐桥杯}V AR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;V AR3:=SMA(SMA(V AR2,3,1),3,1)/28.57;V AR4:=EMA(VAR3,5);V AR5:=3*VAR3-2*V AR4;AA:=CROSS(VAR5,V AR3) AND V AR3<2.1 and c>o;var6:=(2*CLOSE+HIGH+LOW)/4;var7:=LLV(LOW,13);var8:=HHV(HIGH,13);var9:=EMA((var6-var7)/(var8-var7)*100,13);varA:=EMA(0.667*REF(var9,1)+0.333*var9,2);多:var9,COLORRED,POINTDOT;空: EMA(0.382*REF(var9,2)+0.618*var9,12),COLOR00FF00; STICKLINE(var9>varA,var9,varA,6,0), COLORWHITE; STICKLINE(var9<=varA,var9,varA,6,0), COLORFFCC66; {皇赐桥杯画图源码}STICKLINE(AA,0,30,40,1),coloryellow;STICKLINE(AA,16,29,38,0),colorgreen;STICKLINE(AA,1,14,38,0),colorgreen;STICKLINE(AA,15,15,40,1),coloryellow;STICKLINE(AA,30,50,10,0),coloryellow;STICKLINE(AA,53,55,10,1),colorred;STICKLINE(AA,57,59,10,1),colorred;STICKLINE(AA,61,63,10,1),colorred;STICKLINE(AA,65,67,10,1),colorred;STICKLINE(AA,69,75,12,0),colorffcccc;DRAWTEXT(AA,85,'皇赐桥杯'),coloryellow;DRAWTEXT(AA,26,'人头马'),coloryellow;DRAWTEXT(AA,12,'OK'),coloryellow;大智慧特色指标——强弱分明强势线:2,linethick2,ColorFF00FF;准强线:1.3,linethick1,Colorblue;up:=( c > o or c > ref(c,1)) and v > ref(v,1);aa:=count(up,3)=3;bb:=llv(l,5)=llv(l,120);cc:=c > ma(c,3);llt:=aa and bb and cc;{头部}v1:=llv(low,10);v2:=hhv(h,25);警戒线:3.1,linethick3,Color00FFFF;高抛线:3.5,linethick2,Color0000FF;指导线:ema((c-v1)/(v2-v1)*4,4),color00FF00;m5:=ma(指导线,5);低吸线:0.3,linethick1,colorwhite;Var2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);Var3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;Var4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;Var5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;Var6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;Var7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;Var8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;Var9:=(V ar3+Var4+Var5+Var6+Var7+Var8)/6;VarA:=EMA(Var9,3);VarB:=ABS(Var6-Var8);VarC:=(Var9+VarB)/2;VarD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;VarE:=VarD+VarC;VarF:=IF(Var2>0 AND V arE<0,200,0);Var10:=IF(VarC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);Var11:=IF(VarE<0 AND Var10=-50,100,0);Var12:=MA(CLOSE,3);Var13:=REF(CLOSE,2)*0.865;Var14:=REF(CLOSE,13)*0.772;Var15:=MIN(Var13,Var14);Var16:=100*VOL/CAPITAL;Var17:=MA(CLOSE,13);Var18:=IF((CLOSE-Var15)/CLOSE<0.03 AND SUM(Var16,5)/5<1.8,1,0);Var19:=IF(Var18>0 AND (V ar10<0 OR Var2>0),100,0);Var1A:=Var19;Var1B:=IF(VarF>0 AND V ar11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR V ar18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (V arF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0) AND Var19<10,50,0);Var1C:=(VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0) AND (Var10<0 OR Var2>0);Var1D:=VarF>0 AND Var11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR Var18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;大底区域: ( Var1C OR Var1D )*3,linethick2,colorred;新编布林通道——买卖点信号提示BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,colorwhite;UPR:BBI+P*STD(BBI,N),coloryellow;DWN:BBI-P*STD(BBI,N),colorff00ff;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; DRAWICON(CROSS(84,RSI) ,h*1.03,5);DRAWICON(CROSS(RSI,11) ,l*0.99,4);Var27:=REF(CLOSE,1);Var28:=SMA(MAX(CLOSE-Var27,0),5.5,1)/SMA(ABS(CLOSE-Var27),6,1)*100; DRAWICON(IF(CROSS(76,Var28),1,0),h*1.03,5);DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0AND EMA(CLOSE,12)/LOW>1.15,5),LOW,''),linethick7 , COLORff00ff;V ARA:=((AMOUNT)/(VOL))/(100);V ARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);V ARC:=((SUM(AMOUNT,7))/(V ARA))/(100);V ARD:=DMA(V ARB,(VOL)/(V ARC));V ARE:=((CLOSE-V ARD)/(V ARD))*(100);V ARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);V ARJ:=MA(V ARE,20)+STD(V ARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);aa:=SMA(V ARF,3,1);ss:=(REF(BIAS18,1)>=5) AND CROSS(V ARJ,V ARE) AND (aa>79); DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(V ARJ,V ARE) AND(aa>ss),h*1.02,''),LINETHICK7,colorgreen;Var1:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);Var2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(Var1,C,O,8,0),COLORYELLOW,LINETHICK2;STICKLINE(Var1,C,O,3,0),COLORYELLOW,LINETHICK2;STICKLINE(Var1,H,L,1,0),COLORYELLOW,LINETHICK2;STICKLINE(Var2,C,O,8,0),COLORFF00FF,LINETHICK2;STICKLINE(Var2,C,O,3,0),COLORFF00FF,LINETHICK2;STICKLINE(Var2,H,L,1,0),COLORFF00FF,LINETHICK2;DRAWTEXT(ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2),LOW,'卖▲出' ),COLORYELLOW;DRAWTEXT(ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),LOW,'买★入'),COLORred;精品收费指标原码:盘中参谋精品收费指标原码:盘中参谋(准确率极高)智囊系列之"盘中参谋"(用于大智慧。
【股票指标公式下载】-【大智慧】组合主图(止损价位、操盘线)
【大智慧】组合主图(止损价位、操盘线)-指标公式源码HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;E13:(20*HHJsjda+19*REF(HHJsjda,1)+18*REF(HHJsjda,2)+17*REF(HHJsjda,3) +16*REF(HHJsjda,4)+15*REF(HHJsjda,5)+14*REF(HHJsjda,6)+13*REF(HHJsjda,7)+12*REF(HHJsjda,8)+11*REF(HHJsjda,9)+10*REF(HHJsjda ,10)+9*REF(HHJsjda,11)+8*REF(HHJsjda,12)+7*REF(HHJsjda,13)+6*REF(HHJsjda,14)+5*REF(HHJsjda,15)+4*REF(HHJsjda, 16)+3*REF(HHJsjda,17)+2*REF(HHJsjda,18)+REF(HHJsjda,20))/210,colorred;马线:MA(E13,5),colorgreen;水平面:MA(CLOSE,60),COLORYELLOW,CROSSDOT;Var1:=(2*CLOSE+HIGH+LOW+OPEN)/5;A1:=(EMA(Var1,3)+EMA(Var1,6)+EMA(Var1,12)+EMA(Var1,24))/4;A2: EMA(A1,2);A3: EMA(A2,2);A4: EMA(A3,2);A5: EMA(A4,2);A6: EMA(A5,2);A7: EMA(A6,2);DRAWTEXTABS(10,10,STKLABEL+' '+STKNAME+' '+BKNAME),COLOR00FFFF; YC:=REF(CLOSE,1);止损价位:(YC*1.0035*97+0.2)/99.65,COLORRED,LINETHICK0; DRAWTEXTABS(CLOSE,25,'★ ======================'),COLORRED; DRAWTEXTABS(CLOSE,41,'操 '),COLORRED;DRAWTEXTABS(CLOSE,57,'盘 '),COLORRED;DRAWTEXTABS(CLOSE,73,'铁'),COLORRED;DRAWTEXTABS(CLOSE,89,'律'),COLORRED;DRAWTEXTABS(CLOSE,105,'★ ======================'),COLORRED; DRAWTEXTABS(CLOSE,41,' 买入条件 E13 CCI'),colorYellow; DRAWTEXTABS(CLOSE,57,' 买入时间 2:30以后' ),colorYellow; DRAWTEXTABS(CLOSE,73,' 止损价位 '+NUMTOSTR(止损价位)+'元'),colorYellow;DRAWTEXTABS(CLOSE,89,' 线上:工作线下:休息'),color00FFFF; E:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日阻力:=2*E-LOW;明日支撑:=2*E-HIGH;明日突破:=E+(HIGH-LOW);明日反转:=E-(HIGH-LOW);今日阻力:=REF(明日阻力 , 1);今日支撑:=REF(明日支撑 , 1);DRAWTEXTABS(200,25,'今日阻力=:'+NUMTOSTR(今日阻力)),ColorFFFF00; DRAWTEXTABS(200,41,'今日支撑=:'+NUMTOSTR(今日支撑)),Colorred; DRAWTEXTABS(200,57,'明日突破=:'+NUMTOSTR(明日突破)),ColorFF00FF; DRAWTEXTABS(200,73,'明日阻力=:'+NUMTOSTR(明日阻力)),ColorFFFF00; DRAWTEXTABS(200,89,'明日支撑=:'+NUMTOSTR(明日支撑)),COLORRED; DRAWTEXTABS(200,105,'明日反转=:'+NUMTOSTR(明日反转)),COLORYellow; A:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);A1:=FILTER(A,12);B:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);B1:=FILTER(B,12);TS1:=BARSLAST(A1);箱顶:REF(HIGH,TS1) ,COLORFF00FF, LINETHICK0;STICKLINE(1,箱顶,箱顶,7,0),COLORFF00FF;TS2:=BARSLAST(B1);箱底:REF(LOW,TS2) ,COLORFFbb80, LINETHICK0;STICKLINE(1,箱底,箱底,7,0),COLORFFbb80;箱高:100*(箱顶-箱底)/箱底,LINETHICK0;均价:=(3*C+H+L+O)/6;VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) ANDH/VAR1>1.1;SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)AND CLOSE>VAR2 AND CLOSE<VAR1;SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)AND CLOSE<VAR2) OR (VAR1>VAR2 AND VAR1<REF(VAR1,1)AND VAR2<REF(VAR2,1) AND CLOSE<VAR2);;SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<VAR2;XD1:=VAR1=VAR2 AND CLOSE<VAR2 OR (VAR1<REF(VAR1,1) AND VAR2<REF(VAR2,1) AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<VAR2);XD2:=VAR1=VAR2 AND CLOSE>VAR1;SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));量能饱和度:=IF(SAT>1,1,SAT)*100;IF BARSTATUS=2 AND SZ1 THEN BEGINDRAWTEXTABS(350,25,'调整结束短线介入'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ2 THEN BEGINDRAWTEXTABS(350,25,'上升通道走势良好'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ3 THEN BEGINDRAWTEXTABS(350,25,'股价偏离注意调整'),COLORRED;ENDELSEIF BARSTATUS=2 AND SZ4 THEN BEGINDRAWTEXTABS(350,25,'上升通道调整洗盘'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ5 THEN BEGINDRAWTEXTABS(350,25,'转向特征注意离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND SZ6 THEN BEGINDRAWTEXTABS(350,25,'通道改变坚决离场'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD1 THEN BEGINDRAWTEXTABS(350,25,'下跌通道只宜观望'),COLORGREEN;ENDELSEIF BARSTATUS=2 AND XD2 THEN BEGINDRAWTEXTABS(350,25,'短期底部准备进入'),COLORYELLOW;END;{单阳不破}阳涨幅:=4;阳倍量:=2;单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;DRAWTEXT(单阳,L*0.98,'起'),COLOR00FFFF;高不破价:=REF(C,BARSLAST(单阳));中不破价:=REF((C+L)/2,BARSLAST(单阳));低不破价:=REF(L,BARSLAST(单阳));单阳不破:=BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);STICKLINE(单阳不破,低不破价-低不破价*0.003,低不破价,11,0),COLORRED; DRAWTEXT(BARSLAST(单阳)=1 AND 单阳不破,低不破价*0.98,'1'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=2 AND 单阳不破,低不破价*0.98,'2'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=3 AND 单阳不破,低不破价*0.98,'3'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=4 AND 单阳不破,低不破价*0.98,'4'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=5 AND 单阳不破,低不破价*0.98,'5'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=6 AND 单阳不破,低不破价*0.98,'6'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=7 AND 单阳不破,低不破价*0.98,'7'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=8 AND 单阳不破,低不破价*0.98,'8'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=9 AND 单阳不破,低不破价*0.98,'9'),COLORGREEN; DRAWTEXT(BARSLAST(单阳)=10 AND 单阳不破,低不破价*0.98,'10'),COLORGREEN;两天:=LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价;一般:=LLV(L,BARSLAST(单阳)-2)>低不破价 OR LLV(L,BARSLAST(单阳)-2)=低不破价;较强:=LLV(L,BARSLAST(单阳)-2)>中不破价 OR LLV(L,BARSLAST(单阳)-2)=中不破价;最强:=LLV(L,BARSLAST(单阳)-3)>高不破价 OR LLV(L,BARSLAST(单阳)-2)=高不破价;天数:BARSLAST(单阳),linethick0;ma20:=ma(c,20);ma60:=ma(c,60);ma30:=ma(c,30);BIAS:=(C-MA20)/MA20*100;SHOPEN:=OPEN;SHHIGH:=HIGH;SHLOW:=LOW;SHCLOSE:=CLOSE;SHAMOUNT:=AMOUNT;SHVOL:=VOL;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));t1:=(((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1);t2:=((((CLOSE > J23) AND (CLOSE < J12)) AND (OPEN > J23)) AND (OPEN < J12)); t3:=((CLOSE >= J12) AND (OPEN <= J23));t4:=(((OPEN <= J12) AND (OPEN >= J23)) AND (CLOSE > J12));t5:=(((OPEN <= J23) AND (CLOSE <= J12)) AND (CLOSE >= J23));t6:=((CLOSE <= J23) AND (OPEN >= J12));t7:=(((OPEN <= J12) AND (OPEN >= J23)) AND (CLOSE < J23));t8:=(((OPEN >= J12) AND (CLOSE <= J12)) AND (CLOSE >= J23));t9:=(((SHAMOUNT / SHVOL) / 100) > REF(HIGH,1));t10:=(((SHAMOUNT / SHVOL) / 100) < REF(LOW,1));if DISPSTATUS=2 then begin;var1000:='.';if t1>0 then var1000:=var1000+'☆极端行情,在未来的几日内有85%的机会变更方向。
【股票指标公式下载】-【大智慧】精确买卖(主力撤、主力进、趋势线、卖临界)
【大智慧】精确买卖(主力撤、主力进、趋势线、卖临界)-指标公式源码V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5); V4:=2*(V2-V3)*5.5;主力撤: IF(V4<=0,V4,0),colorblue;主力进: IF(V4>=0,V4,0),colorff00ff;V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;V6:=EMA(3*V5-2*SMA(V5,18,1),5);V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);VA:=EMA(V9,3);VB:=(V9-VA)/2;大盘资金进场:IF(VB>=0,VB,0),Colorred;大盘资金撤走:IF(VB<=0,VB,0),colorgreen;V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趋势线: EMA(V11,3);V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;准备现金: STICKLINE(趋势线<=13,0,20,5,0),colorcc9900;aa:=(趋势线<=13) and filter((趋势线<=13),15);drawtext (aa,30,'准备现金'),colorcc9900;买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),color0099ff;bb:= (趋势线<=13 AND V12>13) and filter((趋势线<=13 AND V12>13),10) ; drawtext (bb,60,'买入股票'),color0099ff;卖临界: STICKLINE(趋势线>90 and 趋势线>ref(趋势线,1),100,95,15,1),COLORFFFF00;见顶清仓:filter(趋势线>90 and 趋势线<ref(趋势线,1) and 主力进<ref(主力进,1),8);DRAWTEXT( 见顶清仓,90,'逃顶'),coloryellow;cc:=(趋势线>=90 AND V12) and filter((趋势线>=90 AND V12),10);stickline(大盘资金进场 and 趋势线<13,0,30,10,0),colorred;stickline(大盘资金撤走 and 趋势线>90,0,30,10,0),colorgreen;stickline(主力进 and 趋势线<13,0,40,10,0),colorff00ff;stickline(主力撤 and 趋势线>90,0,40,10,0),colorblue;【大智慧】精确买卖(主力撤、主力进、趋势线、卖临界)-指标公式效果图(文档来源:若水财经社区)。
强势选股指标公式
强势选股指标公式强势选股指标是投资者在股票市场中寻找具有较高潜力和强劲表现的股票的重要工具。
选择适当的指标可以帮助投资者筛选出具有较高成功概率的股票,提高投资决策的准确性。
以下是一些常用的强势选股指标公式:1. 相对强弱指标(RSI):RSI用于衡量股票的买入和卖出力度,是一种常用的超买超卖指标。
它的计算公式为:RSI = 100 - (100 / (1 + RS)),其中RS为相对强度,RS = 平均上涨收盘价的总和 / 平均下跌收盘价的总和。
RSI值高于70表示超买,低于30表示超卖。
2. 移动平均线(MA):移动平均线是一种统计分析指标,可以平滑股价波动,观察股票的趋势走势。
常用的移动平均线有简单移动平均线(SMA)和指数加权移动平均线(EMA)。
计算公式为:SMA = (收盘价1 + 收盘价2 + ... + 收盘价n) / n。
3. 相对强势指标(RSI):RSI比较股票的价格上涨和下跌的幅度和数量,以确定股票的强势程度。
它的计算公式为:RSI = 100 - (100 / (1 + RS)),其中RS = 平均上涨收盘价的总和 / 平均下跌收盘价的总和。
RSI值高于70表示超买,低于30表示超卖。
4. 动量指标(Momentum):动量指标衡量股票价格变动的速度和幅度,用于预测股票价格的趋势。
它的计算公式为:Momentum = 当天收盘价 - n天前的收盘价,其中n为设定的时间段。
以上是一些常用的强势选股指标公式,投资者在使用这些指标时,应结合股票市场的实际情况进行分析和判断。
同时,也要注意单一指标的局限性,建议结合多个指标和其他技术分析工具,形成综合判断。
大智慧公式函数大全
大智慧公式函数大全1.移动平均线函数(MA)移动平均线是一种常用的股票价格走势指标,它计算了一段时间内的价格平均值,用于观察价格的趋势。
通过设置不同的时间周期,可以得到不同时间段内的移动平均线。
2.相对强弱指标函数(RSI)相对强弱指标是一种用于测量市场超买和超卖现象的指标。
它通过比较一定时间内上涨和下跌的股票价格平均值的变化,来判断市场的买卖力量。
3.布林带函数(BOLL)布林带是一种通过计算股票价格的标准差来确定价格波动的指标。
它由三条线组成,分别是中轨线、上轨线和下轨线,可以用来判断价格的波动情况和趋势。
4.成交量变异率函数(OBV)成交量变异率是一种判断市场买入和卖出力量的指标,它通过计算股票成交量的累加值和价格的涨跌来确定市场的买卖力量。
5.平均成交金额函数(AMV)平均成交金额是一种通过计算一定时间内的成交金额平均值来确定市场买卖力量的指标。
它可以帮助投资者判断市场的涨跌趋势和买卖机会。
6.相对强势指数函数(RSI)相对强势指数是一种用于测量股票价格相对强度的指标。
它通过计算一定时间内价格的涨跌幅度,来判断股票的价格走势和市场的热度。
7.异常波动指标函数(ASI)异常波动指标是一种通过计算股票价格的波动幅度来判断市场变化的指标。
它可以帮助投资者判断价格的逆势变化和市场的热度。
8.乖离率函数(BIAS)乖离率是一种通过计算股票价格与移动平均线的偏离程度来判断价格趋势的指标。
它可以帮助投资者判断市场的买入和卖出信号。
9.动态动量指标函数(DMI)动态动量指标是一种通过计算股票价格的动量和趋势来判断市场走势的指标。
它可以帮助投资者判断价格的涨跌趋势和市场的热度。
10.均线包络函数(ENV)均线包络是一种通过计算股票价格的波动范围来判断价格的走势的指标。
它可以帮助投资者确定市场的趋势和价格的波动情况。
11.均势指标函数(MI)均势指标是一种通过计算股票价格的涨跌幅度和成交量的变化来判断市场热度和买卖力量的指标。
【股票指标公式下载】-【大智慧】一张主图(波段线、趋势线、天线、地线)
【大智慧】一张主图(波段线、趋势线、天线、地线)-指标公式源码VA1:=IF((CLOSE < 800),((AMOUNT / VOL) / 100),((((CLOSE * 2) + HIGH) + LOW) / 4));VA2:=((HHV(HIGH,15)) + (LLV(LOW,30))) / 2;VA3:=EMA((MA(VA1,5)),10);VA4:=EMA((MA(VA1,15)),10);VA5:=EMA((MA(VA1,13)),21);VA6:=((VA3 + VA4) + VA5) / 3;波段线:EMA((MA(CLOSE,5)),5),colorFB333F,linethick2;PARTLINE(波段线,波段线 > (REF(波段线,3)),RGB(255,255,0)),linethick2; 趋势线:((((REF(VA6,1)) + VA6) + (REF(VA6,2))) / 3);PARTLINE(趋势线,CLOSE > VA2,RGB(225,0,0),CLOSE <=VA2,RGB(66,188,255)),colorffff00,linethick3;天线:MA(REF(HHV(CLOSE,30),1),2),LINETHICK2,Color80e9ff;地线:MA(REF(LLV(CLOSE,30),1),2),LINETHICK2,Color669900;SD:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);SD1:=FILTER(SD,12);SF:=LLV(LOW,13)=LOW AND LOW<REF(LOW,1);SF1:=FILTER(SF,12);TSS1:=BARSLAST(SD1);箱顶:REF(HIGH,TSS1),LINETHICK0,COLORRED;TSS2:=BARSLAST(SF1);箱底:REF(LOW,TSS2),LINETHICK0,COLORGREEN;STICKLINE(OPEN>=CLOSE,HIGH,LOW,0.5 ,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR005500;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR006600;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR007700;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR009900;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00BB00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00DD00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;STICKLINE(CLOSE>OPEN,HIGH,LOW,0.5,0 ),COLOR0000FF;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;AA1:=MA(CLOSE,20);AA2:=(CLOSE > MA(CLOSE,5));AA3:=(MA(CLOSE,5) > MA(CLOSE,10));AA4:=(CLOSE > MA(CLOSE,10));AA5:=(MA(CLOSE,5) > MA(CLOSE,20));AA6:=(CLOSE > MA(CLOSE,20));AA7:=REF(AA1,1);AA8:=(AA1 > AA7);AAX:=(((((IF(AA2,10,(0 - 10)) + IF(AA3,10,(0 - 10))) + IF(AA4,10,(0 - 10))) + IF(AA5,10,(0 - 10))) + IF(AA6,10,(0 - 10))) + IF(AA8,10,(0 - 10))); DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);V1:=MA(VOL,5);V2:=MA(VOL,10);T := BARSLAST(DISPSTATUS=1)+1;IF BARSTATUS=2 and c<200 and ((CROSS(AAX,1) AND (V1 >= V2)) AND (DSLX >= DSLX1)) THENDRAWTEXTREL(500,20,'的量能理想,有明显走强迹象,可以考虑中线进场参与,仓位在2/3左右。
【股票指标公式下载】-【大智慧】操盘王(买点、神奇线)
【大智慧】操盘王(买点、神奇线)-指标公式源码{操盘王}x:=c-ref(ma(c,20),11);lgl:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 and c/ref(c,1)>0.905 andc/ref(c,1)<1.05 and VOL/CAPITAL*100<5,50,0);wr1:=-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100*x;wr2:=-100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;wr3:=-100*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100*x; BIAS1:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;BIAS2:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;BIAS3:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;s1:=(wr1+wr2+wr3+bias1+bias2+bias3)/6*x;s2:=ema(s1,3);s3:=abs(bias1-bias3);sx:=(s1+s3)/2;xc1:=(-1)*(ema(100*(1-WINNER(CLOSE)),1)-50)+50;ccc:=xc1+sx; zjz:=IF( lgl>0 and ccc<0,200,0)*x;lxl:=if(sx<0 and c=llV(c,5) and c/ref(c,1)>0.905 and c/ref(c,1)<1.05 and VOL/CAPITAL*100<5,-50,0);jbj:=if(ccc<0 and lxl=-50,100,0)*x;ma3:= ma(c,3);c0:=ref(c,2)*0.865;c1:=ref(c,13)*0.772;bot:=MIN(c0,c1);hsl:=100*vol/capital*x;ma13:=ma(c,13)*x;cxc:=if((c-bot)/c<3/100 and sum(hsl,5)/5<1.8,1,0);vmc:=if(cxc>0 and (lxl<0 or lgl>0),10,0);买点1:=if((vmc>0),1,0);买点2:=if(((zjz>0 and jbj>0 and SUM(VOL/CAPITAL*100,5)/5<1) or (cxc>0 and ref(c,1)/ref(c,2)>0.902)) or (((zjz>0 and jbj>0 andSUM(VOL/CAPITAL*100,5)/5<1) or cxc>0) and (lxl<0 or lgl>0)) andvmc<10 ,1,0);v93:=(((zjz>0 and jbj>0 and SUM(VOL/CAPITAL*100,5)/5<1) or cxc>0) and (lxl<0 or lgl>0)) ;v90:=((zjz>0 and jbj>0 and SUM(VOL/CAPITAL*100,5)/5<1) or (cxc>0 and ref(c,1)/ref(c,2)>0.902));买点3:=if((v93 or v90),1,0);Var2q:=(MA(CLOSE,80)-MA(CLOSE,13)/3);神奇线:= MA((CLOSE-Var2q)/Var2q,1);买点4:=IF(CROSS(神奇线,0) AND LOW/REF(HIGH,1)<1.012 and((c-ref(c,2))/c)>0.06,1,0);操盘王:买点1 or 买点2 or 买点3 or 买点4,stick3d,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;【大智慧】绝对经典(能量线、大盘线、行业线)-指标公式效果图(文档来源:若水财经社区)。
【股票指标公式下载】-【大智慧】预测收盘(预测当天最低价、预测收盘价)
【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式源码DRAWGBKLAST(1,STRIP(RgB(10,10,50),RGB(50,10,10),0)); MA3:MA(CLOSE,3); MA4:MA(CLOSE,4); MA5:MA(C,5),colorwhite;MA10:MA(C,10),COLORYELLOW; 警报:=CROSS(MA4,MA3);DRAWTEXT(警报,H*1.05,'↓'),LINETHICK6,ALIGN1,COLORFFFFFF;安全:=CROSS(MA3,MA4);DRAWTEXT(安全,L*0.95,'↑'),LINETHICK6,ALIGN1,colorRED; SD:=HHV(HIGH,13)=HIGH AND HIGH>REF(HIGH,1);{17}x9:FORCAST(c,9),Colorwhite,LINETHICK2;llx:=llv(FORCAST(c,9),2);PARTLINE(x9,x9=llx,rgb(255,205,0),x9<>llx,rgb(255,0,0)),linethick3; MA21:MA(C,21),LINETHICK1,COLORE66878;VC:=(HIGH+LOW+OPEN+2*CLOSE)/5;明日突破:=VC+(HIGH-LOW);明日反转:=VC-(HIGH-LOW);DRAWTEXTABS(15,71,'明日突破: '+NUMTOSTRN(明日突破,2)+' 元'),COLOR0000FF;DRAWTEXTABS(15,90,'明日反转: '+NUMTOSTRN(明日反转,2)+' 元'),COLORffff00;HHVALL(HIGH)*1.1,COLOR000000;LLVALL(LOW)*0.9,COLOR000000;{预测当天最低价公式}A1:=REF(O,1);A2:=ABS((REF(C,1)-A1)/A1);A3:=ABS((REF(H,1)-A1)/A1);A4:=ABS((REF(L,1)-A1)/A1);B1:=ABS((A2+A3+A4)/3);B2:=O*B1;今日最高:=O+B2;预测低一:O-B2,linethick0;{预测当天收盘价公式}开盘价1:=open;开盘价2:=REF(open,1);最高价1:=high;最高价2:=REF(high,1);最低价1:=low;最低价2:=REF(low,1);收盘价1:=CLOSE;收盘价2:=REF(CLOSE,1);AA:=最高价2;BB:=最低价2;CC:=开盘价2;DD:=收盘价2;EE:=(AA+BB+CC+2*DD)/5;AAA:=EE+(AA-BB);BBB:=2*EE-BB;CCC:=2*EE-AA;DDD:=EE-(AA-BB);上升突破价:=AAA;上升阻力价:=BBB;下跌支撑价:=CCC;下跌反转价:=DDD;EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;心理价:=EEE;FFF:=(EEE+开盘价1)/2;GGG:=(预测低一+FFF)/2;预测低二:GGG,colorffffff,LINETHICK0;高:=今日最高;收:=FFF;DRAWTEXTABS(15,35,'预测低一: '+NUMTOSTRN(预测低一,2)+'元'),COLORWHITE ,linethick1;DRAWTEXTABS(15,53,'预测低二: '+NUMTOSTRN(预测低二,2)+'元'),COLORWHITE ,linethick1;a:="[email=LTFunc5@FORLT2]LTFunc5@FORLT2[/email]";s1:="[email=LTFunc5@LT_S1]LTFunc5@LT_S1[/email]";p1:="[email=LTFunc5@LT_P1]LTFunc5@LT_P1[/email]";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;{一品资料说明}WW:=BARSLAST(DISPSTATUS=1);低涨:(C/LLV(LOW,WW)-1)*100,COLOR0000FF,LINETHICK0,PRECIS2;天:BARSLAST(L=LLV(LOW,WW)),COLOR00FFFF,LINETHICK0,PRECIS0; DRAWTEXTABS(210,15,'◇低点至今上涨:'+NUMTOSTRN(低涨,2)+'%'+NUMTOSTRN(天,0)+'天'),COLOR0000FF;DRAWTEXTABS(210,32,'◇目前可见K线:'+NUMTOSTRN(WW+1,0)+'天'),COLORYELLOW;DRAWTEXTABS(15,15,'预测今日最高价: '+NUMTOSTRN(ref(今日最高,0),2)+'元'),COLORF00FF0,linethick1;DRAWTEXTREL(680,950,'预测今日收盘价: '+NUMTOSTRN(ref(FFF,0),2)+'元'),COLORF00FF0,linethick1;{43}DRAWGBK(c,'7' );Var3:=LLV(H,240);Var4:=100*(C-Var3)/Var3;Var5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;Var6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;{Var7:=0;}Var8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;Var9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;VarA:=BARSCOUNT(C);VarB:=Var8<20 AND Var9<23 AND VarA>35;VarC:=VarB AND COUNT(VarB,1)=1;VarD:=EMA(C,21)-EMA(C,8);VarE:=EMA(VarD,5);VarF:=TROUGH(3,6,1)<4 AND CROSS(VarD,VarE);Var10:=IF(TROUGH(3,16,1)=0 AND H>L+0.04,4,0);Var11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);Var12:=ZIG(3,6)<REF(ZIG(3,6),1)AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);Var13:=ZIG(3,22)>REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);Var14:=ZIG(3,22)<REF(ZIG(3,22),1)ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2)ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Var15:=ZIG(3,51)>REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);Var16:=ZIG(3,51)<REF(ZIG(3,51),1)ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2)ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);Var17:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);Var18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2)ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);Var19:=EMA(C,2)-EMA(C,150);Var1A:=EMA(Var19,100);Var1B:=2*(Var19-Var1A);Var1C:=POW(Var1B,3)*0.1+POW(Var1B,1);Var1D:=SQRT(SQRT(L*H*O*C));Var1E:=EMA(Var1D*0.97,3);Var1F:=(H+L+C)/3;Var20:=(Var1F-MA(Var1F,14))/(0.015*AVEDEV(Var1F,14));Var21:=CROSS(Var1E,L);买点1:=Var10;买点2:=(Var11+Var13+Var15+Var17);卖点1:=(Var12+Var14+Var16+Var18);Var22:=买点1 AND VarF AND VarC AND Var21 AND Var4<0AND Var5=0 AND Var6=0 AND Var20<(-110);DRAWTEXT(买点1>0,L-0.15,'B'),LINETHICK4,ALIGN1,colorred;{B} DRAWTEXT(买点2>0,L-0.25,{'B'}'买'),LINETHICK2,ALIGN1,COLOR00FFFF;{B} DRAWTEXT(卖点1>0,H+0.95,{'S'}'卖'),LINETHICK2,ALIGN1,COLOR33FF33;{S}闪:EMA(c+(h-l)*0.618,3),Color0099FF,LINETHICK0;进:EMA((o+h+l)/3,4),COLORCYAN,LINETHICK0;预测明日买点:=EMA((o+h+l)/3,4)+((h+l)/2-ref((o+h+l)/3,3))/4; DRAWTEXTREL(250,0,' ◇测今日低点:'+NUMTOSTRN(ref(预测明日买点,1),2 )),ColorGREEN,linethick1;预测明日卖点:=EMA(c+(h-l)*0.618,3)+(EMA(c+(h-l)*0.618,3)-进)*0.618; DRAWTEXTREL(15,0,'♂测今日高点:'+NUMTOSTRN(ref(预测明日卖点,1),2 )),Colorred,linethick1;{预测明日涨跌}C1:=REF(CLOSE,1);C2:=HHV(C1,2);C3:=LLV(C1,1);ET:=HHV(C1,2);ET1:=REF(ET,1);XB:=LLV(C1,1);XB1:=REF(XB,1);M:=BARSLAST(((CLOSE < XB) AND (C1 >= XB1)));M11:=REF(M,1);N9:=BARSLAST(((CLOSE > ET) AND (C1 <= ET1)));N1:=REF(N9,1);M21:=(BARSLAST((((M - N9) > 0) AND (M11 <= N1))) + 1);N2:=(BARSLAST((((N9 - M) > 0) AND (N1 <= M11))) + 1);ET2:=HHV(ET,M21);XB2:=LLV(XB,N2);A:=IF((((M - N9) > 0) AND (M11 <= N1)),1,IF((((N9 - M) > 0) AND (N1 <= M11)),0,2));H1:=IF(((M - N9) > 0),CLOSE,ET2);H2:=IF((A = 1),CLOSE,C2);H3:=IF(((M - N9) < 0),CLOSE,XB2);H4:=IF((A = 1),CLOSE,XB2);H5:=IF((((M - N9) > 0) OR (A = 1)),CLOSE,H3);H6:=REF(H5,1);H7:=REF(H5,2);H8:=(H5 > H6);H9:=(((H4 = REF(H4,1)) AND (REF(H4,1) < REF(H4,2))) AND (H5 > REF(H5,2))); H10:=(((H2 = REF(H2,1)) AND (H4 = REF(H4,1))) AND (H5 = REF(H5,2))); W:=((H8 OR H9) OR H10);T9:=((H5 < H6) AND (H5 < REF(H5,2)));T10:=((H4 = REF(H4,1)) AND (H5 < REF(H5,2)));T11:=((H3 > REF(H3,1)) AND (H5 < REF(H5,1)));T12:=((H5 = REF(H5,1)) AND (H3 = H4));T13:=((H2 = REF(H2,1)) AND (H2 = H5));TW:=((((T9 OR T10) OR T11) OR T12) OR T13);PK:=((AMOUNT * (((OPEN + CLOSE) + HIGH) + LOW)) / 4);PK1:=IF((VOL > 0),(PK / AMOUNT),((((OPEN + CLOSE) + HIGH) + LOW) / 4)); BBP:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100); DRAWTEXT(((DISPSTATUS=2 AND W) AND (BBP < 96.5)),(H5 * 1.022),' 明日看涨'),MOVE1,colorFF00ff;DRAWTEXT(((DISPSTATUS=2 AND TW) AND (BBP > 1)),((H5 + H4) / 2),' 明日看跌'),MOVE0,colorffFF00;{支撑压力}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;下档线:=(((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)))){,LINET HICK2,COLORFFFFFF};底:=LLV(HIGH,30){,COLOR00FF00,LINETHICK2};STICKLINE(BARSTATUS=2 ,撑压位,撑压位,30,1),LINETHICK1,COLORFFFFFF; DRAWTEXT(BARSTATUS=2 ,撑压位,' 撑压'),COLORFFFFFF,VALIGN1; STICKLINE(BARSTATUS=2 ,底,底,30,1),COLOR00FF00,LINETHICK1;【大智慧】预测收盘(预测当天最低价、预测收盘价)-指标公式效果图(文档来源:若水财经社区)。
狙击主力指标源码公式(二)
狙击主力指标源码公式(二)
狙击主力指标源码公式
1. 什么是狙击主力指标?
狙击主力指标是一种技术分析指标,用于判断股价的上涨和下跌趋势。
它是通过计算买入和卖出的力量来预测股价的走势。
狙击主力指标的公式是通过对买入和卖出的成交量以及价格的比较来计算的。
2. 狙击主力指标公式
狙击主力指标的公式主要包括以下几种:
买入力量公式
买入力量 = 当日成交量 * (当日最高价 - 当日开盘价)
卖出力量公式
卖出力量 = 当日成交量 * (当日最低价 - 当日开盘价)
狙击指标公式
狙击指标 = 买入力量 - 卖出力量
3. 狙击主力指标公式举例说明
假设某只股票的当日开盘价为10元,最高价为12元,最低价为9元,收盘价为11元,成交量为1000手。
计算买入力量
买入力量 = 1000 * (12 - 10) = 2000
计算卖出力量
卖出力量 = 1000 * (9 - 10) = -1000
计算狙击指标
狙击指标 = 2000 - = 3000
根据计算结果,可以得出狙击指标为3000,表示当日的主力买入力量大于卖出力量,预示着股价可能上涨的趋势。
4. 总结
狙击主力指标是一种通过计算买入和卖出力量来预测股价走势的技术分析指标。
通过买入力量和卖出力量的计算,我们可以得出狙击指标,进一步判断股价的上涨和下跌趋势。
在实际应用中,狙击主力指标可以作为辅助工具,帮助投资者进行股价走势的预测和决策。
大智慧乖离率无值指标公式
大智慧乖离率无值指标公式
大智慧乖离率无值指标是用于股票分析的指标之一,用于衡量股价与其移动平均线之间的偏离程度。
乖离率无值指标的计算公式如下:
乖离率= (当日收盘价- N日移动平均价) / N日移动平均价* 100%
其中,
-当日收盘价是指股票当日的收盘价格;
- N 是设定的移动平均线的周期,通常为20日或者60日;
- N日移动平均价是指股票在过去N 个交易日的收盘价的平均值。
计算出的乖离率可以用来判断当前股价与移动平均线之间的偏离程度,进而辅助分析股票的走势。
通常,乖离率越高,表示股价偏离移动平均线程度越大,可能意味着股价即将回归移动平均线;乖离率越低,表示股价偏离移动平均线程度越小,可能意味着股价即将出现反转。
【股票指标公式下载】-【大智慧】增减仓(乖离率、速度、强势狙击)
【大智慧】增减仓(乖离率、速度、强势狙击)-指标公式源码DRAWGBKLAST(CLOSE>0,STRIP(RGB(95,95,95),RGB(0,0,0),0));AA05:MA(C,5),c olor0099cc;五日乖离率:=(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>30and AA05>ref(AA05,1),AA05,REF(AA05,1),8,1),colorcyan;AA10:MA(C,10);AA20:=MA(c,20);BB10:=atan((aa10/ref(aa10,1)-1)*100)*180 /3.1416;STICKLINE(BB05<0and AA05<ref(AA05,1),AA05,REF(AA05,1),8,1),coloryellow;AA30:MA(C,30);三拾日乖离率:(c-AA30)/AA30*100,linethick0;Var1:=(AA20-AA30)>ref((AA20-AA30),1)and AA20>ref(aa20,1) and AA30>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 andcross(BB05,60),10);加仓:=filter(count(cross(BB05,30),5)>=1 andAA05>ref(aa05,1) and三拾日乖离率>ref(三拾日乖离率,1) andAA10>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) and AA05<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 andref(c,1)<AA30;买入:=filter(MR,10);drawtext(减仓,high*1.02,'←减仓'),colorcyan; drawtext(买入,low*0.98,'←买入'),coloryellow;drawtext(清仓,high*1.02,'←清仓'),colorgreen;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>6and l<=llv(l,10),l*0.95,'←异动'),colorcyan;【大智慧】增减仓(乖离率、速度、强势狙击)-指标公式效果图(文档来源:若水财经社区)。
大智慧狙击手指标公式源码编程思路破译
大智慧狙击手指标公式源码编程思路破译编程思路破译A1赋值:(收盘价+最低价+最高价)/3A2赋值:A1的13日指数移动平均-1日前的A1的13日指数移动平均的反正切*3.1416*10A3赋值:收盘价的8日指数移动平均A5赋值:A2>1ANDEMA(A1,13)>1日前的A1的8日指数移动平均的10日过滤A6赋值:A5的2日累和A7赋值:1日前的收盘价A8赋值:(((收盘价-A7)和0的较大值的3日[1日权重]移动平均/ (收盘价-A7)的绝对值的3日[1日权重]移动平均) * 100)A9赋值:收盘价的3日指数移动平均A10赋值:收盘价的21日指数移动平均A11赋值:A9上穿A10A12赋值:A11的2日累和输出A13:A6 AND A12输出FIRE:( A13),STICK,COLOR996633,线宽为2当满足条件A13时,在1.4位置画12号图标,线宽为1当满足条件A13时,在0.3位置画9号图标,线宽为1当满足条件A13时,在0.8位置书写文字,COLOR0000FF,线宽为3 程序源码A1:=(C+L+H)/3;A2:=ATAN(EMA(A1,13)-REF(EMA(A1,13),1))*3.1416*10;A3:=EMA(C,8);A5:=FILTER(A2>1 AND EMA(A1,13)>REF(EMA(A1,8),1),10);A6:=SUM(A5,2);A7:=REF(CLOSE,1);A8:=((SMA(MAX((CLOSE - A7),0),3,1) / SMA(ABS((CLOSE -A7)),3,1)) * 100);A9:=EMA(CLOSE,3);A10:=EMA(CLOSE,21);A11:=CROSS(A9,A10);A12:=SUM(A11,2);A13:A6 AND A12;FIRE:( A13),STICK,COLOR996633,LINETHICK2;DRAWICON(A13,1.4,12),LINETHICK1;DRAWICON(A13,0.3,9),LINETHICK1;DRAWTEXT(A13,0.8,' 射击'),COLOR0000FF,LINETHICK3;。
大智慧波段乖离率指标公式源码编程思路破译
大智慧波段乖离率指标公式源码编程思路破译编程思路破译DIFF赋值:收盘价的3日指数移动平均-收盘价的8日指数移动平均DEA赋值:DIFF的5日指数移动平均MACD赋值:2*(DIFF-DEA)A1赋值:DIFF的5日指数移动平均*100输出A2:((收盘价的3日指数移动平均-收盘价的8日指数移动平均))*100,线宽为0A3赋值:如果A2>0,返回A2,否则返回50A4赋值:如果A2<0,返回A2,否则返回50动能A赋值:A2动能B赋值:A1FILLRGN(动能B,动能A,动能B<动能A,自定色,动能B>动能A,自定色),LAYER5当满足条件A2>0ANDA2>=1日前的A2时,在A2和0位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR0000F2当满足条件A2>0ANDA2<1日前的A2时,在A2和0位置之间画柱状线,宽度为6,1不为0则画空心柱.,COLOR0000F2当满足条件A2<0ANDA2<1日前的A2时,在A2和0位置之间画柱状线,宽度为6,0不为0则画空心柱.,COLOR008000当满足条件A2<0ANDA2>=1日前的A2时,在A2和0位置之间画柱状线,宽度为6,1不为0则画空心柱.,COLOR008000VAR2赋值:(收盘价-26日内最低价的最低值)/(26日内最高价的最高值-26日内最低价的最低值)*100VAR3赋值:VAR2的3日[1日权重]移动平均的3日[1日权重]移动平均VAR4赋值:VAR3的5日指数移动平均AA赋值:成交量(手)>=1日前的成交量(手)*1.91 AND 收盘价>1日前的收盘价*1.01BB赋值:100*(收盘价-34日内最低价的最低值)/(34日内最高价的最高值-34日内最低价的最低值)的3日指数移动平均AA1赋值:当满足条件动能A<动能B时,在0和-3位置之间画柱状线,宽度为4,0不为0则画空心柱.BB1赋值:当满足条件动能A>动能B时,在0和3位置之间画柱状线,宽度为4,0不为0则画空心柱.输出持币:AA1,COLORFF00FF输出持股:BB1,画红色输出底部:当满足条件BB上穿9时,在0和10位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLORFF00FF当满足条件BB上穿9时,在10和20位置之间画柱状线,宽度为4,0不为0则画空心柱.,COLOR00FFFF当满足条件BB上穿9时,在20和30位置之间画柱状线,宽度为4,0不为0则画空心柱.,画红色当满足条件BB上穿9时,在30位置书写文字,COLOR00FFFFBIAS1赋值:(收盘价-收盘价的6日简单移动平均)/收盘价的6日简单移动平均*100BIAS2赋值:(收盘价-收盘价的12日简单移动平均)/收盘价的12日简单移动平均*100BIAS3赋值:(收盘价-收盘价的24日简单移动平均)/收盘价的24日简单移动平均*100BIAS赋值:(BIAS1+2*BIAS2+3*BIAS3)/6输出综合乖离:BIAS的3日简单移动平均,COLORFFFF00,线宽为0 输出BIAS底A:如果综合乖离<-18,返回12,否则返回0,COLORFF00FF,线宽为2输出BIAS底B:如果综合乖离<-12,返回10,否则返回0, COLOR0000CC,线宽为2输出BIAS底C:如果综合乖离<-6,返回8,否则返回0,COLORFFFF00,线宽为2输出BIAS底D:如果综合乖离<0,返回6,否则返回0,COLOR00FFFF,线宽为2程序源码DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);DEA:=EMA(DIFF,5);MACD:=2*(DIFF-DEA);A1:=EMA(DIFF,5)*100;A2:((EMA(CLOSE,3)-EMA(CLOSE,8)))*100,LINETHICK0;A3:=IF(A2>0,A2,50);A4:=IF(A2<0,A2,50);动能A:=A2;动能B:=A1;FILLRGN(动能B,动能A,动能B<动能A,RGB(180,50,0),动能B>动能A,RGB(0,50,180)),LAYER5;STICKLINE(A2>0 AND A2>=REF(A2,1),A2,0,6,0),COLOR0000F2;STICKLINE(A2>0 AND A2<REF(A2,1),A2,0,6,1),COLOR0000F2;STICKLINE(A2<0 AND A2<REF(A2,1),A2,0,6,0),COLOR008000;STICKLINE(A2<0 AND A2>=REF(A2,1),A2,0,6,1),COLOR008000;VAR2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1);VAR4:=EMA(VAR3,5);AA:=VOL>=REF(V,1)*1.91 AND C>REF(C,1)*1.01;BB:=EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);AA1:=STICKLINE(动能A<动能B,0,-3,4,0);BB1:=STICKLINE(动能A>动能B,0,3,4,0);持币:AA1,COLORFF00FF;持股:BB1,COLORRED;底部:STICKLINE(CROSS(BB,9),0,10,4,0),COLORFF00FF; STICKLINE(CROSS(BB,9),10,20,4,0),COLOR00FFFF; STICKLINE(CROSS(BB,9),20,30,4,0),COLORRED; DRAWTEXT(CROSS(BB,9),30,'底部'),COLOR00FFFF;BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;综合乖离:MA(BIAS,3),COLORFFFF00,LINETHICK0;BIAS底A:IF(综合乖离<-18,12,0),COLORFF00FF,LINETHICK2; BIAS底B:IF(综合乖离<-12,10,0), COLOR0000CC,LINETHICK2; BIAS底C:IF(综合乖离<-6,8,0),COLORFFFF00,LINETHICK2; BIAS底D:IF(综合乖离<0,6,0),COLOR00FFFF,LINETHICK2;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
【大智慧】强势狙击(加速度、乖离率)-指标公式源码
DRAWGBKLAST(CLOSE>0,STRIP(RGB(95,95,95),RGB(0,0,0),0));AA05:MA(C,5),c olor0099cc;
五日乖离
率:=(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);
STICKLINE(BB05>30 AND
AA05>REF(AA05,1),AA05,REF(AA05,1),8,1),colorcyan;
AA10:MA(C,10);AA20:=MA(C,20);BB10:=ATAN((aa10/REF(aa10,1)-1)*100)*180 /3.1416;
STICKLINE(BB05<0 AND AA05<REF(AA05,1),
AA05,REF(AA05,1),8,1),coloryellow;
AA30:MA(C,30);
三拾日乖离率:=(C-AA30)/AA30*100;
Var1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(aa20,1) AND
AA30>REF(AA30,1);
Var2:=(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(aa20,1) AND
AA30<REF(AA30,1);
BB30:=ATAN((aa30/REF(aa30,1)-1)*100)*180/3.1416;
STICKLINE(BB30>15 AND AA30>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) AND AA05<REF(aa05,1) AND 三拾日乖离率<REF(三拾日乖离率,1) AND
AA10<REF(AA10,1),10);
DRAWTEXT(加仓,LOW*0.98,'←加仓'),colorred;
JC:=CROSS(0,五日乖离率) AND 三拾日乖离率<REF(三拾日乖离率,1) AND
AA10>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(清仓,HIGH*1.02,'←清仓'),colorgreen;
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;
【大智慧】强势狙击(加速度、乖离率)-指标公式效果图
(文档来源:若水财经社区)。