通信达公式改为选股公式
通达信的指标公式改为条件选股公式,进行预警
通达信的指标公式改为条件选股公式,进行预警通达信指标公式与选股公式最主要的区别是,指标公式可以有多个输出,而选股公式只能有一个输出。
要把指标公式改成选股公式最简单的办法是把你不需要的输出语句改成赋值语句就可以了。
1.VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);2.OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);3.MAOBV:MA(OBV,M);4.RANGE((((OBV-MAOBV)/MAOBV)*100),-0.5,0.5);5.例如,上面是OBV指标公式,一共有三个输出,现在要改成选股公式,那么把不需要的两个语句改成赋值语句就可以了,具体是在输出指标名字后加等号就可以了,改后就是如下。
6.VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);7.OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);8.MAOBV:=MA(OBV,M);9.RANGE((((OBV-MAOBV)/MAOBV)*100),-0.5,0.5);10.选股公式是要建在条件选股公式栏目里的,建好后在条件选股器里就能看到,也就能执行条件选股了。
在条件预警里边就可以把选股公式加进预警里了,进行预警使用了。
1.{冠军一号副图}2.多止盈:(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);3.空止盈:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;4.空止损:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*3.5+XMA(XMA(H,25),25);5.多止损:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*3.5;6.短高H:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)+13*REF(H,7)+12*REF(H,8)+11*REF(H, 9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)+7*REF(H,13)+6*REF (H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+RE F(H,20))/210,COLORBLUE,LINETHICK1;7.短低L:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15 *REF(L,5)+14*REF(L,6)+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10 *REF(L,10)+9*REF(L,11)+8*REF(L,12)+7*REF(L,13)+6*REF(L,14)+5 *REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+REF(L,20))/210 ,COLORBLUE,LINETHICK1;8.D90H:=EMA(短高H,90),COLORRED,LINETHICK1;9.D90L:=EMA(短低L,90),COLORRED,LINETHICK1;10.D90差:=D90H-D90L;11.D90顶:=D90H+D90差*2,COLORRED,LINETHICK1;12.D90底:=D90L-D90差*2,COLORRED,LINETHICK1;13.高0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK1,COLOR WHITE;14.低0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORWHITE;15.多头定位:=低0>=D90底 AND 高0>=D90顶;16.空头定位:=高0<=D90顶 AND 低0<=D90底;17.震荡定位:=低0>=D90底 AND 高0<=D90顶;18.短顶:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*2+XMA(XMA(H,25),25),LINETHICK2,COLOR GREEN;19.短底:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*2,LINETHICK2,COLORGREEN;20.短线收盘:=(C-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;21.短线开盘:=(O-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;22.短线高盘:=(H-短底)/(短顶-短底)*100000,LINETHICK2,COLORRED;23.短线低盘:=(L-短底)/(短顶-短底)*100000,LINETHICK0,COLORRED;24.25.26.顶1:=110000,COLORYELLOW,LINETHICK0;27.底1:=-10000,COLORYELLOW,LINETHICK0;28.29.STICKLINE(多头定位=1,顶1,底1,5,0),COLOR000066;30.STICKLINE(空头定位=1,顶1,底1,5,0),COLOR003300;31.STICKLINE(震荡定位=1,顶1,底1,5,0),COLOR555555;32.33.震荡顶:=(XMA(XMA(短线高盘,25),25)-XMA(XMA(短线低盘,25),25))*1+XMA(XMA(短线高盘,25),25);34.震荡底:=XMA(XMA(短线低盘,25),25)-(XMA(XMA(短线高盘,25),25)-XMA(XMA(短线低盘,25),25))*1;35.36.做空:80000,COLORGREEN,LINETHICK1;37.做多:20000,COLOR0099FF,LINETHICK1;38.空损:110000,COLORFF7700,LINETHICK2;39.多损:-10000,COLORMAGENTA,LINETHICK2;40.41.DRAWTEXT(ISLASTBAR,109000,' 空止损'),COLORFF7700;42.DRAWTEXT(ISLASTBAR,80000,' 多止盈'),COLORGREEN;43.DRAWTEXT(ISLASTBAR,20000,' 空止盈'),COLOR0099FF;44.DRAWTEXT(ISLASTBAR,-9000,' 多止损'),COLORMAGENTA;45.46.BSB:=EMA((CLOSE+HIGH+LOW)/3,3);47.BSM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20 +(CLOSE+HIGH+LOW)/3,48);48.STICKLINE(BSB>=BSM,短线低盘,短线高盘,0.0,0),COLORRED;49.STICKLINE(BSB>=BSM,短线收盘,短线开盘,3,1),COLORRED;50.STICKLINE(BSB<=BSM,短线低盘,短线高盘,0.0,0),COLORGREEN;51.STICKLINE(BSB<=BSM,短线收盘,短线开盘,3,1),COLORGREEN;52.53.白色点多定位1:=短线低盘<做多 AND 短线高盘>做多;54.白色点空定位1:=短线高盘>做空 AND 短线低盘<做空;55.STICKLINE(白色点多定位1=1,短线低盘,做多,3,0),COLORWHITE;56.STICKLINE(白色点空定位1=1,短线高盘,做空,3,0),COLORWHITE;57.白色点多定位2:=短线高盘<做多;58.白色点空定位2:=短线低盘>做空;59.STICKLINE(白色点多定位2=1,短线低盘,短线高盘,0.0,0),COLORWHITE;60.STICKLINE(白色点多定位2=1,短线收盘,短线开盘,3,0),COLORWHITE;61.STICKLINE(白色点空定位2=1,短线低盘,短线高盘,0.0,0),COLORWHITE;62.STICKLINE(白色点空定位2=1,短线收盘,短线开盘,3,0),COLORWHITE;63.多头多定位:=CROSS(做多,短线低盘) AND 多头定位=1;64.多头平定位:=CROSS(短线高盘,做空) AND 多头定位=1 AND 震荡定位=0;65.空头空定位:=CROSS(短线高盘,做空) AND 空头定位=1;66.空头平定位:=CROSS(做多,短线低盘) AND 空头定位=1 AND 震荡定位=0;67.震荡多定位:=CROSS(做多,短线低盘) AND 震荡定位=1;68.震荡空定位:=CROSS(短线高盘,做空) AND 震荡定位=1;69.DRAWICON(空头平定位=1,短线低盘*0.98,1);70.DRAWICON(多头平定位=1,短线高盘*1.02,2);71.DRAWICON(多头多定位=1 OR 震荡多定位=1,短线低盘*0.98,1);72.DRAWICON(空头空定位=1 OR 震荡空定位=1,短线高盘*1.02,2);73.74.75.76.{主图指标}77.78.输出多止盈:(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*1+最高价的25日偏移移动平均的25日偏移移动平均79.空止盈赋值:最低价的25日偏移移动平均的25日偏移移动平均-(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*180.空止损赋值:(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*3.5+最高价的25日偏移移动平均的25日偏移移动平均81.多止损赋值:最低价的25日偏移移动平均的25日偏移移动平均-(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*3.582.短高H赋值:(20*最高价+19*1日前的最高价+18*2日前的最高价+17*3日前的最高价+16*4日前的最高价+15*5日前的最高价+14*6日前的最高价+13*7日前的最高价+12*8日前的最高价+11*9日前的最高价+10*10日前的最高价+9*11日前的最高价+8*12日前的最高价+7*13日前的最高价+6*14日前的最高价+5*15日前的最高价+4*16日前的最高价+3*17日前的最高价+2*18日前的最高价+20日前的最高价)/210,画蓝色,线宽为183.短低L赋值:(20*最低价+19*1日前的最低价+18*2日前的最低价+17*3日前的最低价+16*4日前的最低价+15*5日前的最低价+14*6日前的最低价+13*7日前的最低价+12*8日前的最低价+11*9日前的最低价+10*10日前的最低价+9*11日前的最低价+8*12日前的最低价+7*13日前的最低价+6*14日前的最低价+5*15日前的最低价+4*16日前的最低价+3*17日前的最低价+2*18日前的最低价+20日前的最低价)/210,画蓝色,线宽为184.D90H赋值:短高H的90日指数移动平均,画红色,线宽为185.D90L赋值:短低L的90日指数移动平均,画红色,线宽为186.D90差赋值:D90H-D90L87.D90顶赋值:D90H+D90差*2,画红色,线宽为188.D90底赋值:D90L-D90差*2,画红色,线宽为189.高0赋值:(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*1+最高价的25日偏移移动平均的25日偏移移动平均,线宽为1,画白色90.低0赋值:最低价的25日偏移移动平均的25日偏移移动平均-(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*1,线宽为1,画白色91.多头定位赋值:低0>=D90底 AND 高0>=D90顶92.空头定位赋值:高0<=D90顶 AND 低0<=D90底93.震荡定位赋值:低0>=D90底 AND 高0<=D90顶94.短顶赋值:(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*2+最高价的25日偏移移动平均的25日偏移移动平均,线宽为2,画绿色95.短底赋值:最低价的25日偏移移动平均的25日偏移移动平均-(最高价的25日偏移移动平均的25日偏移移动平均-最低价的25日偏移移动平均的25日偏移移动平均)*2,线宽为2,画绿色96.短线收盘赋值:(收盘价-短底)/(短顶-短底)*100000,线宽为2,画红色97.短线开盘赋值:(开盘价-短底)/(短顶-短底)*100000,线宽为2,画红色98.短线高盘赋值:(最高价-短底)/(短顶-短底)*100000,线宽为2,画红色99.短线低盘赋值:(最低价-短底)/(短顶-短底)*100000,线宽为0,画红色100.顶1赋值:110000,画黄色,线宽为0101.底1赋值:-10000,画黄色,线宽为0102.当满足条件多头定位=1时,在顶1和底1位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR000066103.当满足条件空头定位=1时,在顶1和底1位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR003300104.当满足条件震荡定位=1时,在顶1和底1位置之间画柱状线,宽度为5,0不为0则画空心柱.,COLOR555555105.震荡顶赋值:(短线高盘的25日偏移移动平均的25日偏移移动平均-短线低盘的25日偏移移动平均的25日偏移移动平均)*1+短线高盘的25日偏移移动平均的25日偏移移动平均106.震荡底赋值:短线低盘的25日偏移移动平均的25日偏移移动平均-(短线高盘的25日偏移移动平均的25日偏移移动平均-短线低盘的25日偏移移动平均的25日偏移移动平均)*1107.输出做空:80000,画绿色,线宽为1108.输出做多:20000,COLOR0099FF,线宽为1109.输出空损:110000,COLORFF7700,线宽为2110.输出多损:-10000,画洋红色,线宽为2111.当满足条件是否最后一个周期时,在109000位置书写文字,COLORFF7700112.当满足条件是否最后一个周期时,在80000位置书写文字,画绿色113.当满足条件是否最后一个周期时,在20000位置书写文字,COLOR0099FF114.当满足条件是否最后一个周期时,在-9000位置书写文字,画洋红色115.BSB赋值:(收盘价+最高价+最低价)/3的3日指数移动平均116.BSM赋值:(收盘价+最高价+最低价)/3的24日线性回归斜率*20+(收盘价+最高价+最低价)/3的48日指数移动平均117.当满足条件BSB>=BSM时,在短线低盘和短线高盘位置之间画柱状线,宽度为0.0,0不为0则画空心柱.,画红色118.当满足条件BSB>=BSM时,在短线收盘和短线开盘位置之间画柱状线,宽度为3,1不为0则画空心柱.,画红色119.当满足条件BSB<=BSM时,在短线低盘和短线高盘位置之间画柱状线,宽度为0.0,0不为0则画空心柱.,画绿色120.当满足条件BSB<=BSM时,在短线收盘和短线开盘位置之间画柱状线,宽度为3,1不为0则画空心柱.,画绿色121.白色点多定位1赋值:短线低盘<做多AND 短线高盘>做多122.白色点空定位1赋值:短线高盘>做空AND 短线低盘<做空123.当满足条件白色点多定位1=1时,在短线低盘和做多位置之间画柱状线,宽度为3,0不为0则画空心柱.,画白色124.当满足条件白色点空定位1=1时,在短线高盘和做空位置之间画柱状线,宽度为3,0不为0则画空心柱.,画白色125.白色点多定位2赋值:短线高盘<做多126.白色点空定位2赋值:短线低盘>做空127.当满足条件白色点多定位2=1时,在短线低盘和短线高盘位置之间画柱状线,宽度为0.0,0不为0则画空心柱.,画白色128.当满足条件白色点多定位2=1时,在短线收盘和短线开盘位置之间画柱状线,宽度为3,0不为0则画空心柱.,画白色129.当满足条件白色点空定位2=1时,在短线低盘和短线高盘位置之间画柱状线,宽度为0.0,0不为0则画空心柱.,画白色130.当满足条件白色点空定位2=1时,在短线收盘和短线开盘位置之间画柱状线,宽度为3,0不为0则画空心柱.,画白色131.多头多定位赋值:做多上穿短线低盘 AND 多头定位=1 132.多头平定位赋值:短线高盘上穿做空AND 多头定位=1 AND 震荡定位=0133.空头空定位赋值:短线高盘上穿做空 AND 空头定位=1 134.空头平定位赋值:做多上穿短线低盘AND 空头定位=1 AND 震荡定位=0135.震荡多定位赋值:做多上穿短线低盘 AND 震荡定位=1 136.震荡空定位赋值:短线高盘上穿做空 AND 震荡定位=1 137.当满足条件空头平定位=1时,在短线低盘*0.98位置画1号图标138.当满足条件多头平定位=1时,在短线高盘*1.02位置画2号图标139.当满足条件多头多定位=1OR震荡多定位=1时,在短线低盘*0.98位置画1号图标140.当满足条件空头空定位=1OR震荡空定位=1时,在短线高盘*1.02位置画2号图标。
通达信几种实用的条件选股公式,一旦掌握,至少翻翻!
通达信几种实用的条件选股公式,一旦掌握,至少翻翻!(2018-06-08 07:25:27)转载标签:股票分类:股票公式一、均线上拐选股法自编公式操作步骤:均线上拐公式:ma(c,60)>ref(ma(c,60),1) and ref(ma(c,60),1)“设置”“公式管理”“自编”“条件选股”“新建”“公式名称——“60天均线上拐”在图片下方位置,把公式“ma(c,60)>ref(ma(c,60),1) and ref(ma(c,60),1)时间统计公式:last(ref(ma(c,60),1)步骤如下:“设置”“公式管理”“自编”“技术指标”“新建”“公式名称—60天时间统计”在图片下方位置,把公式“last(ref(ma(c,60),1)选股步骤:均线上拐——时间统计——安全系数。
使用条件选股——条件选股(新版)——60天均线上拐——执行选股:执行结果如下:添加技术指标——时间统计——排序:二、预测涨停选股用法:每天9:25后,用条件选股,筛选出优质股票,自己再再结合市场情况判断,选出的股票里面会有惊喜!源码:RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=(SMA(RSV,3,1));D:=(SMA(K,3,1));KK:=INTPART(SMA(RSV,3,1));DD:=INTPART(SMA(K,3,1));N:=KK+DD,COLORFF00FF,LINETHICK2;预测:=IF(CROSS(N,50),90,50),COLOR00FF00;涨停:=IF(CROSS(N,99.5),100,50),COLORYELLOW;涨停>预测;三、股价位于均线上方选股公式{股价位于均线上方选股公式}TA:=BARSSINCE(CLOSE);MA5:=IF(TA>=5,MA(C,5),0);MA10:=IF(TA>=10,MA(C,10),0);MA20:=IF(TA>=20,MA(C,20),0);MA60:=IF(TA>=60,MA(C,60),0);A1:=MA5>MA10 AND MA10>MA20 AND MA20>MA60;LMAX:=MAX(MAX(MA5,MA10),MAX(MA20,MA60));CROSS (CLOSE,MA5) AND V>=REF(V,1)AND A1;四、老鸭头“老鸭头”的操作要领:1、找到鸭脖子,见图中的A处。
通达信 股息率 选股公式
通达信股息率选股公式
在通达信中,可以使用股息率作为参数进行选股。
股息率是指某
只股票每股派发的股息金额与股票当前价格的比率。
选股公式如下:
选股公式:股息率(TTM)= 过去12个月的股息总额 / 股票当
前价格
其中,TTM表示“Trailing Twelve Months”,即过去12个月的数据。
股息总额可以通过财务报表或股票交易软件中的相关数据获取。
在通达信中,可以使用自定义的公式进行选股。
以下是一个示例
公式:
C1:股息总额=公式(C, REF(C, 243) * CF / REF(C, 1)) * 10
C2:股息率=ROUND(C1 / C, 4)
C股息率>0
解释:
C1公式中的REF(C, 243)表示取过去一年(243个交易日)的收盘价。
CF表示每股派息金额,可以通过财务报表获取。
REF(C, 1)表示取股票当前的收盘价。
C2公式中的ROUND函数表示四舍五入保留4位小数。
C股息率>0为选股条件,表示股息率大于0。
使用以上选股公式可以筛选出股息率大于0的股票。
请注意,具
体的公式和参数可以根据个人需要进行调整和优化。
通达信撑压线公式中以趋势向上的选股公式
通达信撑压线公式中以趋势向上的选股公式通达信撑压线公式中以趋势向上的选股公式前言在股票投资中,选股是非常重要的一环,而通达信的撑压线公式就能够帮助我们筛选出趋势向上的优质股票。
在本文中,我将深入探讨通达信撑压线公式中以趋势向上的选股公式,并结合个人观点和理解进行详细阐述。
一、通达信撑压线公式简介通达信撑压线公式是根据股票的走势和波动情况,通过计算得出的支撑位和压力位。
其中,支撑位是指股价下跌到一定位置后,受到一定的买盘支持而出现止跌或反弹的现象;压力位则是指股价上涨到一定位置后,由于卖盘增加而出现阻力而无法继续上涨的现象。
利用撑压线公式,我们可以更好地把握股票的买卖时机,提高投资收益。
二、以趋势向上的选股公式介绍在通达信撑压线公式中,以趋势向上的选股公式是非常重要的一环。
这一公式能够帮助我们筛选出具有良好走势的股票,为投资提供有力支持。
具体而言,以趋势向上的选股公式主要包括以下几个要点:1. 上涨趋势明显:选股时,我们首先要筛选出上涨趋势明显的股票。
这意味着股票的价格走势呈现出明显的上涨趋势,具有较大的投资潜力。
2. 支撑位有效:在撑压线公式中,支撑位的作用非常重要。
我们在选股时需要关注股票的支撑位,确保其能够有效支撑股价,并具有一定的反弹空间。
3. 压力位突破:另外,我们也要注意股票的压力位情况。
如果股票能够有效突破压力位,说明其上涨势头良好,具有持续上涨的潜力。
4. 成交量配合:除了股价走势外,成交量也是选股的重要指标之一。
在选择趋势向上的股票时,我们需要关注成交量的配合情况,以确保趋势能够持续有效。
通过以上要点的综合考量,我们可以筛选出具有良好上涨趋势的股票,并为投资决策提供参考。
三、个人观点和理解对于通达信撑压线公式中以趋势向上的选股公式,我个人有以下几点观点和理解:趋势是股票走势的重要指标之一。
在选股时,我们必须关注股票价格的趋势情况,选择具有明显上涨趋势的股票,以实现更好的投资收益。
通达信神奇九转选股公式
通达信神奇九转选股公式问:请高手把通达信的九转公式改成大智慧用,谢谢了LX:=Last(C<REF(C,4));LXG:=Last(C>REF(C,4));DRAWTEXT(LX=7,L*0.97,'D7',10);DRAWTEXT(LX=8,L*0.97,'D8');DRAWTEXT(LX=9,L*0.97,'D9');DRAWTEXT(LXG-7,H*1.03,'G7');DRAWTEXT(LXG=8,H*1.03,'G8');DRAWTEXT(LXG=9,H*1.03,'GG')X导入试试看问:求通达信突破平台选股公式XG:C/REF(C,1)>1.05 AND C>MAX(MA(C,5),MA(C,60)) AND REF(HHV(H,15)/LLV(L,15)<1.15,1) AND CROSS(C,REF(HHV(H,15),1));问:哪位高手给做个通达信选股公式?可以编写通达信选股公式效果如下图问:请高手把通达信的这个指标改成选股公式问题补充:买入红箭头为选股条件--------------------------------------------------------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(分水岭,操作线);问:哪位大哥能给我这个主力资金进出指标公式,非常感谢1如图主力资金进出指标公式通达信同花顺都可用VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:VAR5>REF(VAR5,1);STICKLINE(VAR5>REF(VAR5,1),0,VAR5,5,0 ),COLORRED;洗盘:STICKLINE(VAR5<REF(VAR5,1),0,-VAR5,5,0),COLORGREEN;问:谁有通达信中线主力资金指标公式N:=24;VAR1:= EMA(EMA(CLOSE,13),13);控盘指数: (VAR1-REF(VAR1,1))/REF(VAR1,1)*1000,POINTDOT,COLORFFCCCC;STICKLINE(控盘指数<0,控盘指数,0,2,0),COLORGRAY;无庄控盘: 控盘指数<0,LINETHICK0,COLORGRAY;STICKLINE(控盘指数>REF(控盘指数,1) AND 控盘指数>0 AND 控盘指数<3,控盘指数,0,2,1),COLORRED;STICKLINE(控盘指数>REF(控盘指数,1) AND 控盘指数>0 AND 控盘指数>3,控盘指数,0,2,1),COLORRED;STICKLINE(控盘指数>REF(控盘指数,1) AND 控盘指数>3,控盘指数,3,4,1),COLORFF00FF;主力控盘: 控盘指数>REF(控盘指数,1) AND 控盘指数>0,LINETHICK0,COLORRED;STICKLINE(控盘指数<REF(控盘指数,1) AND 控盘指数>0,控盘指数,0,2,0),COLOR00FF00;控盘减弱: 控盘指数<REF(控盘指数,1) AND 控盘指数>0,LINETHICK0,COLOR00FF00;VARA:= EMA(0.667*REF(控盘指数,1)+0.333*控盘指数,2);STICKLINE(控盘指数>VARA,控盘指数,VARA,2,0),COLORRED;B2:= 控盘指数>VARA;准备: B2>REF(B2,1) AND 控盘指数<(-2),COLORYELLOW;DRAWTEXT(准备,3,'准备'),COLORYELLOW;B1:= (控盘指数>REF(控盘指数,1) AND 控盘指数>0)=1;开始控盘: B1>REF(B1,1),COLORMAGENTA,LINETHICK3;A:=(3*C+L+O+H)/6;X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A, 4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF (A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*RE F(A,17)+2*REF(A,18)+REF(A,20))/210;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);CB:=EMA(X,13);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWICON(FILTER(买=1,5),L*0.11,1);DIFF:(EMA(CLOSE,12) - EMA(CLOSE,26))*20,COLORWHITE,LINETHICK1;DEA:EMA(DIFF,9),COLORYELLOW,LINETHICK1;MACD:2*(DIFF-DEA), COLORSTICK;MACD1:=2*(DIFF-DEA),COLORRED,NODRAW;MACD2:=EMA(MACD1,3),COLORCYAN,NODRAW;STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,2,0),COLORRED;STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,2,0),COLORYELLOW;STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORGREEN;S1:=MACD<0;S2:= (MACD>=0);S3:=BARSLAST(CROSS(DIFF,DEA));S4:=REF(S3,S3+1);S5:=DEA>REF(DEA,S4);S6:=DEA;上成立:=CROSS(DIFF,DEA) AND S5;下成立:=CROSS(DIFF,DEA) AND S6;L1:=(EMA(CLOSE,3) - EMA(CLOSE,13));L2:=EMA(L1,9);L3:=BARSLAST(CROSS(L1,L2));L4:=REF(L3,L3+1);L5:=L2;变盘:CROSS(L1,L2) AND L5,NODRAW,COLORD6FF9C;STICKLINE(变盘,5,0,0,1),COLORD6FF9C;LS:=IF(DIFF>DEA AND DIFF>0,1,0);加速上扬:IF(REF(LS=0,1) AND LS=1,0.1,0);XG1:CROSS(MACD1,MACD2) AND MACD1<0,NODRAW;XG2:CROSS(DIFF,DEA),NODRAW;M1:=MACD>REF(MACD,1) AND DIFF<DEA;绿柱短了:M1 AND COUNT(M1,10)=1 AND C>MA(C,55) AND COUNT(MACD<0,5)>=5,NODRAW;DRAWTEXT(绿柱短了,MACD,'买点来了');DIFL:=EMA(V,12)-EMA(V,26);DIF:=EMA(C,12)-EMA(C,26);BL:=DIFL>REF(DIFL,1) AND DIF<REF(DIF,1);四天: REF(BL,3)=1 AND REF(BL,2)=1 AND REF(BL,1)=1 AND BL;三天:REF(BL,2)=1 AND REF(BL,1)=1 AND BL;{VERTLINE(上成立,3),COLORYELLOW;VERTLINE(下成立,3),COLORRED;}IF(DIFF>DEA,DIFF,DRAWNULL),COLORFF11CC,LINETHICK1;IF(DIFF>DEA AND DIFF<0,DIFF,DRAWNULL),COLORRED,LINETHICK1;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);DRAWTEXT(FILTER(D>80,6),H*1.018,'D>80');DRAWTEXT(FILTER(CROSS(K,D) AND D<26,6),H*0.95,'KD低位金叉'),COLORFFCCCC;STICKLINE(FILTER(CROSS(K,D) AND D<26,6),H*0.97,H*0.95,4,0),COLORFFCCCC;DIFFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEAF :=EMA(DIFFF,9);MACDD:=2*(DIFFF-DEAF);DRAWTEXT(FILTER(CROSS(DIFFF,DEAF) AND DEAF<0,6),L-0.02,'MACD低位金叉'),COLORRED;STICKLINE(FILTER(CROSS(DIFFF,DEAF) AND DEAF<0,6),L-0.02,L-0.1,4,0),COLOR00FF00;DRAWTEXT(FILTER(CROSS(DIFFF,DEAF) AND DEAF>0,13),H+0.25,'MACD下拐点'),COLORYELLOW;STICKLINE(FILTER(CROSS(DIFFF,DEAF) AND DEAF>0,13),H+0.02,H+0.12,4,0),COLORBLUE;DRAWTEXT(FILTER(CROSS(MACDD,0),13),L*0.65,'MACD上拐点'),COLORRED;STICKLINE(FILTER(CROSS(MACDD,0),13),L*0.97,L*0.95,4,0),C OLORWHITE;ROC:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;DRAWTEXT(FILTER(CROSS(ROC,0),6),L-2.25,'骗线拐点'),COLORWHITE;STICKLINE(FILTER(CROSS(ROC,0),6),L-0.02,L-0.15,4,0),COLORFF00FF;我是用这个的。
通达信 指定板块的选股公式
通达信指定板块的选股公式
通达信是一款常用的股票软件,可以根据自定义的公式选取特定板块的股票。
下面是我为您提供的通达信指定板块的选股公式示例:
首先,在通达信的选股功能中,点击“自定义”按钮,进入公式编辑界面。
以下是一个示例公式,用于选取特定板块的股票:
```
市场=0
证券板块=1
板块代码=5 // 这里的5代表需要选取的板块代码,可以根据具体板块进行修
改
条件1=市场=0
条件2=板块代码=5
并且(条件1, 条件2)
```
在这个示例中,我们将市场设置为0代表A股市场,板块代码设置为5,表示
我们指定的板块。
您可以根据自己需要的板块修改板块代码。
使用这个公式可以筛选出符合条件的特定板块的股票。
您可以将公式保存后,
在通达信的选股功能中使用这个公式进行股票选取。
需要注意的是,具体的板块代码需要根据通达信软件提供的板块代码进行设置,确保代码的准确性。
希望上述信息能对您有所帮助,如果有其他问题,请随时追问。
通达信公式教程
N:9,1,10O
M1:3,2,40
M2:3,2,40
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
该公式绘制K、D、J三条指标线。RSV行是一个中间语句,计算当期收盘价与N天内最低价之差除以N内最高价与最低价之差的比值,再乘以系数100。K线为RSV的M1天移动平均线,D线为线K的M2天移动平均线,J线为K线与J线的差值。
B 跨周期引用指标数据:
a) 引用大盘数据:引用大盘数据时使用下列函数: INDEXC/NDEXV,等等!
b) 引用个股数据:引用个数据时使用下列格式:"股票代码$数据".在以上格式当中调用CLOSE,VOL,AMOUNT等等!例如"000002$VOL'表000002该股本周期的成交量。"999998$CLOSE"同样也可以表示为A股指数本周期的收盘价,此时的A股指数被视为一只个股。
〖公式编辑窗〗公式编辑窗用于书写分析方法的算法,是公式编辑器的核心部分。用户可以将自己的算法用公式语法书写到编辑窗中,关于公式语法请参见附录。公式编辑器在使用上十分灵活,支持丰富的键盘操作和鼠标操作。
股票公式指标怎么修改?
股票公式指标怎么修改?
每一个炒股软件都有指标公式的编辑与修改功能,在此我就以通达信软件为例来解释一下股票公式修改的方法
通达信软件里选择功能=>公式系统=>公式管理器,系统的快捷键为Ctrl F
进入公式管理器后,选择你需要修改的公式,这里分别“技术指标公式”、“条件选股公式”、“专家系统公式”和“五彩K线公式”,根据你需要修改的公式选择相应的公式列表。
选择好需要修改的公式后,点击右侧“修改”或者双击该指标即可进入到指标编辑修改界面
我选择的是修改MACD指标公式,进入MACD指标公式后,我们可以看到分别有三个参数:SHORT、LONG、MID,缺省栏下面的数量可以做相应的调整(主要是根据自己的喜好和要求)
若你需要自己来重新写一个公式,那么你就需要先选择指标公式的大类,再点击“新建”来新建相应的公式
一个全新的指标公式栏就会呈现在你的面前,你可以根据自己要求来编写相应的公式
最后,股票指标公式是一个非常实用的工具,你可以通过编写指标公式来提示自己的买卖点,也可以根据指标公式把符合自己选股条件的一些个股选择出来,解决了繁琐的选股工作。
如何将指标公式改编成选股公式或通达信指标改成同花顺等别软件上用
一,什么是指标公式改成选古预警公式:指标公式有主图指标或副图指标,他是用来看的,显示在主图或副图中的线或信号文字标志等。
比如图中,我觉得出现“买”字时比较有机会,想找出今天出现买字的个股出来,进一步参考。
那怎么办,就是指标改成选古预警公式,可以盘中快速选出或直接预警。
二,指标公式改成选古预警公式好处:比如图中“买”字,我想把今天出这信号个股都找到,总不能一个一个去翻吧,那多麻烦,4000多只股,你翻一遍起码一小时,而我弄成选古预警公式,3分钟左右就全选出来了。
是不是节省很多时间。
三,通达信指标改成同花顺等别软件上用比如我平时用惯的是同花顺,东方财富,可这个指标源码是通达信的,怎么办,可以将源码改编过去就可以用了。
四,如何改编成选古预警公式或改编别软件上使用这需要一定专业能力才可以弄,不然不要说代码通不过,改出来不是自已想要的,那更是得不偿失。
这方面上,我们有代编写公式指标、预警XG公式、预警公式、程序化交易模型,及不同软件间指标的改编写,如同花顺改编成通达信,大智慧改编成同花顺等。
( 只帮忙代编写代码,不出售)Q.&Q: 262069696徵&信:cxh99cxh99(选择一样连系方式就行加好友时请简单备注下您的需求,否则无法通过,谢谢您!)主要标准如下:(具体视难度及复杂度而定)通达信50园起步同花顺100园起步大智慧100园起步文华财经100园起步开拓者100园起步东方财富50园起步金字塔100园起步博易大师100园起步倚天版100园起步益盟操盘手100园起步飞狐大交易师100园起步注:上面没有标注的行情软件(如指南针,富远等),因为需要另行安装,因此起步介均在500以上。
即时,你只须将软件传给我们安装就可以帮您编写。
改编通达信选股指标公式
改编通达信选股指标公式通达信选股指标公式是股市投资者常用的一种技术分析工具,通过对历史行情数据进行计算和综合分析,帮助投资者识别潜在的投资机会。
然而,对于一些投资者来说,通达信提供的选股指标公式可能不太满足其个性化的投资需求。
因此,改编通达信选股指标公式成为一种普遍的需求。
改编通达信选股指标公式的目的是根据投资者的需求和偏好,对原有的选股指标公式进行调整或修改,以达到更符合个人投资策略的目标。
这样可以增加投资者在选股过程中的主动性和灵活性,提高选股的准确性和效果。
改编通达信选股指标公式的具体步骤包括以下几个方面:需要明确自己的投资目标和风险承受能力。
不同的投资目标和风险偏好需要采用不同的选股策略和指标。
比如,如果追求稳健的长期投资收益,可以选择相对稳定的指标公式;如果追求高风险高收益,可以选择更为激进的指标公式。
需要对通达信原有的选股指标公式进行分析和评估。
了解每个指标的计算方式、特点、适用范围和限制,以确定需要改编的方向和具体的调整需求。
然后,根据自己的需求和偏好,对选股指标公式进行改编。
可以通过增加、删除或调整指标的参数、权重、计算方法等方式,实现对指标公式的个性化定制。
进行验证和调整。
将改编后的选股指标公式应用于历史行情数据或实盘数据中,评估其效果和稳定性。
根据实际情况,对公式进行进一步的调整和优化,以达到更好的选股结果。
改编通达信选股指标公式是一项根据个人投资需求和偏好对原有指标公式进行调整和优化的任务。
通过定制化的指标公式,投资者可以更好地适应市场变化,提高选股的效果和成功率。
然而,在进行改编和应用时,投资者需要谨慎评估和验证,确保选股指标与自身的投资策略相符,以取得更好的投资结果。
通达信软件导入公式及条件选股
通达信软件导入公式及条件选股
一.指标导入
1.在通达信的界面下,ctrl+F-------公式管理器-----条件选股公式---其他类型
2.点“导入公式”,然后找到五线顺上第一阳.tni公式,选中并打开
二.条件选股1.通达信正常界面下
Ctrl+T ----条件选股
分两次把五线顺上和五线第一阳加入到选股条件列表然
后执行选股即可
最好下载日线数据,这样更好。
备注:指标参数自己可以设置,比如4线顺上5线第一阳全部条件相与的意思是同时满足两个选股条件才能被帅选出来
全部条件相或的意思是只要满足两个条件之一的都会被帅选出来
保存方案:可以自己设置选股条件组合,下次可以直接引入方案即可
帅选出来的股票池,在根据自己的炒股思路进一步优化处理为好。
五线顺上第一阳线举例。
通达信选股最全公式
1、通达信选股公式{MACD、KDJ、RSI底背离}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)<DIFFANDCROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>CANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3)ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>CANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI1"(6,12,24) ,"RSI.RSI2"(6,12,24));底背离:B1〉OORB2>0ORB3〉0;{集成了MACD、KDJ、RSI三个指标的底背离};2、老鼠仓AA1:=AMOUNT/VOL;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=VOL<MA(V,5)*1.5;老鼠仓:BB1ANDCC1ANDDD1ANDEE1;3、抄底高手{M153530N123227D185042}VAR1:=(CLOSE-MA(CLOSE,48))/MA(CLOSE,48)*100+M<0;VAR2:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+N<0;VAR3:=VAR1ANDVAR2;VAR4:=VAR1ANDVAR2ANDCOUNT(VAR3,2)=1ANDDATE>940101AND(CLOSE>OPENORCLOSE<OPEN)AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07AND(REF(OPEN,1)>REF(CLOSE,1)ORREF(OPEN,1)<REF(CLOSE,1))AND(REF(OPEN,2)>REF(CLOSE,2)ORREF(OPEN,2)<REF(CLOSE,2))AND(REF(OPEN,3)>REF(CLOSE,3)ORREF(OPEN,3)<REF(CLOSE,3))AND(REF(OPEN,4)>REF(CLOSE,4)ORREF(OPEN,4)<REF(CLOSE,4))AND(REF(OPEN,5)>REF(CLOSE,5)ORREF(OPEN,5)<REF(CLOSE,5));VAR5:=DMA(EMA(CLOSE,8),SUM(VOL,9)/2.8/CAPITAL);VAR6:=(CLOSE-VAR5)/VAR5*100;VAR7:=REF(VAR6,1)+D<0ANDVAR6>REF(VAR6,1)ANDREF(VAR6,1)<REF(VAR6,2)ANDVAR6-REF(VAR6,1)>1.8AND(HIGH>LOW)AND(REF(HIGH,1)>REF(LOW,1))AND(REF(HIGH,2)>REF(LOW,2))AND(REF(HIGH,3)>REF(LOW,3))AND (REF(HIGH,4)>REF(LOW,4))AND(REF(HIGH,5)>REF(LOW,5));VAR4ORVAR7;{K100140100}VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,33)/33);VAR3:=(CLOSE-VAR1)/VAR1*100<-11/K*100;VAR4:=(VAR1-VAR2)/VAR2*100<-22.3/K*100;VAR5:=VAR3ANDVAR4AND(OPEN>CLOSEOROPEN<CLOSE)AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.07AND(REF(CLOSE,1)>REF(OPEN,1)ORREF(CLOSE,1)<REF(OPEN,1))AND(REF(OPEN,2)>REF(CLOSE,2)ORREF(OPEN,2)<REF(CLOSE,2))AND(REF(OPEN,3)>REF(CLOSE,3)ORREF(OPEN,3)<REF(CLOSE,3))AND(REF(OPEN,4)>REF( CLOSE,4)ORREF(OPEN,4)<REF(CLOSE,4))AND(REF(OPEN,5)>REF(CLOSE,5)ORREF(OPEN,5)<REF(CLOSE,5))AND(REF (OPEN,6)>REF(CLOSE,6)ORREF(OPEN,6)<REF(CLOSE,6))AND(REF(OPEN,7)>REF(CLOSE,7)ORREF(OPEN,7)<REF(CLO SE,7));VAR6:=DMA(CLOSE,VOL/MA(VOL,3)/3);VAR7:=DMA(CLOSE,VOL/MA(VOL,33)/33);VAR8:=(CLOSE-VAR6)/VAR6*100<-5;VAR9:=(VAR6-VAR7)/VAR7*100<-18;VARA:=(INDEXC-LLV(INDEXL,250))/(HHV(INDEXH,250)-LLV(INDEXL,250))*100;VARB:=SMA(VARA,30,1); VARC:=SMA(VARB,50,1);VARD:=VAR8ANDVAR9AND(OPEN>CLOSEOROPEN<CLOSE)AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05AND(REF(CLOSE,1)>REF(OPEN,1)ORREF(CLOSE,1)<REF(OPEN,1));VARE:=VARDANDCOUNT(VARD,2)=1;VAR5ORVARE;4、逆势操作VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);VAR3:=(CLOSE-VAR1)/VAR1*100<-8;VAR4:=(VAR1-VAR2)/VAR2*100<-21;VAR5:=VAR3ANDVAR4AND(OPEN>CLOSEOROPEN<CLOSE)AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05AND(REF(CLOSE,1)>REF(OPEN,1)ORREF(CLOSE,1)<REF(OPEN,1))AND(REF(OPEN,2)>REF(CLOSE,2)ORREF(OPEN,2)<REF(CLOSE,2))AND(REF(OPEN,3)>REF(CLOSE,3)ORREF(OPEN,3)<REF(CLOSE,3))AND(REF(OPEN,4)>REF( CLOSE,4)ORREF(OPEN,4)<REF(CLOSE,4))AND(REF(OPEN,5)>REF(CLOSE,5)ORREF(OPEN,5)<REF(CLOSE,5))AND(REF(OPEN,6)>REF(CLOSE,6)ORREF(OPEN,6)<REF(CLOSE,6))AND(REF(OPEN,7)>REF(CLOSE,7) ORREF(OPEN,7)<REF(CLOSE,7));VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;VAR8:=SMA(VAR7,50,1);VAR9:=SMA(VAR8,40,1);VARA:=VAR6ANDVAR9<23ANDCOUNT(VAR6,2)=1AND(OPEN>CLOSEOROPEN<CLOSE)ANDOPEN/REF(CLOSE,1)>0.96;(VAR5ORVARA);5、成交量变异率VR买入WVR:=SUM((IF(CLOSE>OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),N)/SUM((IF(CLOSE<OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/ 2,0)),26)*100;VOL变异率VR买入:CROSS(LL,WVR);{LL080705};MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA120:=SMA(C,120,1);ZH520:=ABS(MA5-MA20)/MA20*100<=10;ZH530:=ABS(MA5-MA30)/MA30*100<=10;QSXS1:=MA5>REF(MA5,1);QSXS2:=MA20>REF(MA20,1);QSXS3:=MA30>REF(MA30,1);DTPL:=MA20>MA30ANDMA30>MA120;LYT:=DTPLANDQSXS2ANDQSXS3ANDCOUNT(QSXS1,4)<=1;GJHS:=C>MA5AND((QSXS1ANDNOT(REF(QSXS1,1)))ORC>REF(C,3));LYKK:=GJHSAND(ZH520ORZH530)ANDLYT;买:LYKKANDNOT(REF(LYKK,1));虚拟成交量〉昨日VOL的2倍的股VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);昨日V0L:=REF(V0L,l)*2.0;ABS(VVOL)-昨日VOL>=0;{大于昨日的2.0倍};成交量是昨日的1.8倍VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL);昨日VOL:=REF(VOL,1)*1.8;ABS(VVOL)-昨日VOL>=0;{大于昨日的1.8倍};6、PDI上穿三线选股公式源码:TR0:=SUM(MAX(MAX(HIGH-L0W,ABS(HIGH-REF(CL0SE,l))),ABS(L0W-REF(CL0SE,l))),14);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SUM(IF(HD>0ANDHD〉LD,HD,0),14);DMM:=SUM(IF(LD>0ANDLD〉HD,LD,0),14);PDI:=DMP*100/TR0,colorred;MDI:=DMM*100/TR0;ADX:=MA(ABS(MDI-PDI)/(MDI+PDI)*100,6);ADXR:=(ADX+REF(ADX,6))/2;CROSS(PDI,MDI)ANDCROSS(PDI,ADX)ANDCROSS(PDI,ADXR)今日量比昨放大1倍后三日股价不跌回当日收盘价的选股公式选股公式:{成交量比前一天放大1倍,后3天,股价没有跌破放量那天的收盘价}var1:=v>ref(v,1)*2;ref(var1,3)andcount(c>ref(c,3),3)=3;7、倍量柱加三天量减价升喇叭形的真黄金柱公式倍数:=1.9;倍量1:=REF(VOL,3)〉倍数*REF(V0L,4)ANDREF(C,3)〉=REF(O,3);价升量缩:=LLV(C,3)>=REF(L,3)ANDHHV(VOL,3)<=REF(VOL,3);连阳:=COUNT(C>=O,4)=4;选股:倍量1AND价升量缩AND连阳;8、“凹口起柱”理论编写的凹口指标王子老师的平台起柱、过顶起柱、凹口起柱理论真是了不得,十分佩服,这里我冒昧的加一个,那就是顶部起柱,经观察,股票起柱时是主力行为的表现,是主力意图的表现!是主力留下的痕迹!是量柱开口说话的语言!这个指标或许可以帮助朋友们看懂主力的行为意图,看出量柱的语言!T7:=REF(VOL,6)/REF(VOL,7)>=2;T6:=REF(VOL,5)/REF(VOL,6)>=2;T5:=REF(VOL,5)/REF(VOL,4)>=1.5;T4:=REF(VOL,4)/REF(VOL,3)>=1.5;T3:=REF(VOL,2)/REF(VOL,3)>=1.5;T1:=V/REF(VOL,1)〉2;TO:=C〉OANDC〉REF(C,1);选股:T7ANDT1ANDT0ORT6ANDT1ANDT0ORT5ANDT1ANDT0ORT4ANDT1ANDT0 ORT3ANDT1ANDT0;下载(53.76KB)2010-1-1221:299、倍量过左峰选股源码一通达信SRl:=REF(HIGH,10)=HHV(HIGH,2*10+l); SR2:=FILTER(SR1,1O);SR3:=BACKSET(SR2,10+l);HD:=FILTER(SR3,10);前高:=REF(H,BARSLAST(HD)); 8.60'^71:348664.00MV2:223049.20MV3:145995.53倍量:=VOL/REF(VOL,1)〉=2ANDCOUNT(CLOSE〉OPEN,1)ORLOW〉REF(HIGH,1)ANDCOUNT(OPEN〉CLOSE,1)ANDVOL/REF(VOL,1)>=2;突破前高:=CROSS(C,前高);XG:突破前高AND倍量;10、{MACD、KDJ、RSI底背离}DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>CANDREF(DIFF,A1+1)<DIFFANDCROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3)," KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>CANDREF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3)ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>CANDREF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24)ANDCROSS("RSI.RSI1"(6,12,24) ,"RSI.RSI2"(6,12,24));底背离:Bl〉0ORB2>0ORB3>0;{集成了MACD、KDJ、RSI三个指标的底背离};11、老鼠仓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;老鼠仓:BB1ANDCC1ANDDD1ANDEE1;12、主力进场VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);XG:(VAR5>REF(VAR5,1)ANDVAR5>0)OR(VAR5<REF(VAR5,1)ANDNOT(VAR5=0)=1);13、60日天量T1:=V=HHV(V,100);T2:=V/REF(VOL,1)>=3;选股:T1ANDT2;14、135均量线选股VOLUME:=VOL;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,35);MAVOL3:=MA(VOLUME,135);选股:CROSS(MAVOL1,MAVOL2)ORCROSS(MAVOL1,MAVOL3)ORCROSS(MAVOL2,MAVOL3);15、二次翻红DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);FH1:=REF(MACD,1)<REF(MACD,2)ANDREF(MACD,2)<REF(MACD,3)ANDREF(MACD,3)<REF(MACD,4);FH2:=MACD>=0ANDCOUNT(MACD>REF(MACD,1),1)=1;FH3:=FH1ANDFH2ANDEMA(C,13)>REF(EMA(C,13),1);FH4:=FH1ANDFH2ANDABS((DIF-DEA)/C)<0.018;FH5:=FH1ANDFH2ANDMACD<0.10;二次翻红:=(FH3ORFH4ORFH5);低买:=CROSS(DIF,DEA)ANDDIF〈O;加油:=CROSS(DIF,DEA)ANDDIF>0;XG:二次翻红OR低买OR加油;16、均量互换VOLUME:=VOL;MAVOL1:=MA(VOLUME,5);MAVOL2:=MA(VOLUME,35);MAVOL3:=MA(VOLUME,135);选股:CROSS(MAVOL2,MAVOL3);17、成交额均量互换AMO:=AMOUNT;MAAMO1:=MA(AMO,5);MAAMO2:=MA(AMO,10);MAAMO3:=MA(AMO,40);XG:CROSS(TJ1,TJ2)ANDCROSS(TJ1,TJ3)ORCROSS(MAAMO1,MAAMO2)ANDCROSS(MAAMO1,MAAMO3);18、凹口起柱T7:=REF(VOL,6)/REF(VOL,7)>=2;T6:=REF(VOL,5)/REF(VOL,6)>=2;T5:=REF(VOL,5)/REF(VOL,4)>=1.5;T4:=REF(VOL,4)/REF(VOL,3)>=1.5;T3:=REF(VOL,2)/REF(VOL,3)>=1.5;T1:=V/REF(VOL,1)>2;T0:=C>OANDC>REF(C,1);选股:T7ANDT1ANDTOORT6ANDT1ANDTOORT5ANDT1ANDTOORT4ANDT1ANDTOORT3ANDT1ANDT0;19、黄金柱选股VAR1:=V>REF(V,1)*2;REF(VAR1,3)ANDCOUNT(C>REF(C,3),3)=3;20、日成交量触及5日均量线M1:=MA(V,5);M2:V>M1;21、早盘量满个很管用的预警指标本指标描述的是上午10点前个股成交量与昨天基本相等(指标在上午10点以后就不工作了);这类股票往往是比较强势,只有在10点前成交量达到昨天水平才会预警;其中下跌的股票必须用肉眼给过滤掉。
通达信最全条件选股公式及设置安装方法介绍
通达信选股公式全集(最全面的选股公式)选股公式CYC5:=CYC(5);CYC13:=CYC(13);CYC34:=CYC(34);AA:=(HHV(H,55)-LLV(L,55))/LLV(L,55);建仓完毕:REF(AA,1)<0.25 AND AA>=0.25 AND CYC5>CYC13 AND CYC13>CYC34,COLORYELLOW;条件选股公式:MACD,RSI,KDJ 底背离选股公式:60分钟KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);买2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); 买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);买0:=买1+买2+买3;买:IF(买0>1,买0,0);{极品选股}Var1:=AMOUNT/(100*VOL);Var2:=MA(Var1,13);Var3:=MA(Var1,34);Var4:=DMA(CLOSE,VOL/CAPITAL);Var5:=(CLOSE-Var2)/Var2*100;Var6:=(CLOSE-Var3)/Var3*100;Var7:=(CLOSE-Var4)/Var4*100;亏损程度: IF(Var5<=-7,7,0),colorff00ff;IF(Var5<=-10,10,0),colorwhite;IF(Var5<=-16,16,0),color00ff00;IF(Var5<=-20,20,0),colorred;IF(Var5<=-25,25,0),colorffcccc;IF(Var5<=-30,30,0),colorblue;Var8:=COST(10)*0;Var9:=REF(HIGH,1)*1.1;VarA:=HIGH*1.1;VarB:=(VarA*VOL+Var9*(CAPITAL-VOL))/CAPITAL;VarC:=REF(LOW,1)*0.9;VarD:=LOW*0.9;VarE:=(VarD*VOL+VarC*(CAPITAL-VOL))/CAPITAL;VarF:=EMA(VarE,30);Var10:=EMA(VarB,30);Var11:=Var10-2;Var12:=IF(CLOSE<=VarF,Var11,Var10);超跌: Var12*2.5,color00ff00;Var13:=100*(1-WINNER(CLOSE));Var14:=1.1*CLOSE;Var15:=0.9*CLOSE;Var16:=100*(WINNER(Var14)-WINNER(Var15));筹码超跌: IF(Var16<10 AND Var13>90,30,0),colorblue;短中长线超跌: IF(Var5<-16 AND Var5>-100 AND Var6<-20 AND Var6>-100,40,0),color0099ff; IF(Var6<-20 AND Var6>-100 AND Var7<-30 AND Var7>-100,50,0),colorffcc66;反弹: Var11*2.5,colorred;风: IF(超跌=反弹 AND Var5<=-10 AND 筹码超跌=30,-30,0),colorwhite;云: IF(超跌=反弹 AND Var5<=-16 AND 筹码超跌=30 AND 短中长线超跌=40,-20,0),color888888;{●绝佳选股}MA20:=MA(CLOSE,20);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);RSV:=SMA(下档线,3,1);K:=SMA(RSV,3,1);D:=((3 * RSV) - (2 * K));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力位:=IF(CROSS(D24,D),HIGH,L);XG:(CROSS(MA20,压力位) AND (LOW <= MA20)) AND ((MA20 - REF(MA20,1))) > 0.02;通达信指标公式】选股公式-2010最新版{山东操盘手主图}MA5:MA(C,5),COLORYELLOW;MA10:MA(CLOSE,10),COLORFF00FF;MA30:MA(C,30),COLORRED,LINETHICK2;跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2; MA60:MA(CLOSE,60),COLORFFCC66;GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'白金'),COLORWHITE;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;DRAWTEXT(HUANGJIN1 AND HUANGJIN2,L-0.03,'黄金'),COLORYELLOW;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,'启动金三角'),COLORRED; ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2));ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0;DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,L-0.05,'震仓启点');AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA1:=AA AND BB;AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA2:=AA AND BB ;AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;AA3:=AAAA AND BAAA ;BB1:=REF(AA1,1);BB2:=REF(AA2,1);BB3:=REF(AA3,1);DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ;DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ;DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ;DRAWTEXT(DD1 OR DD2 OR DD3,L-0.02,'短线追涨'),COLORFF00FF;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;GW:=GJTJ1=100 AND GJTJ2=100;TXW:=COUNT(GW,2)=1;DRAWTEXT(AW AND BW AND EW AND FW AND TXW,L-0.03,'起涨首日');AQ:=GJTJ3=100;BQ:=GJTJ4<90;DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,L-0.02,'波启前兆');以下是全部条件选股公式部分!请根据需要选择使用!(建议配合本人发布的黑牛均线全部信号选股,合并使用,效果更佳!即“山东操盘手全部信号”AND "黑牛均线全部信号选股",寻找到同时发出信号的股票,分析研究!选股方法:在条件选股中,同时加入这两个条件)白金星星点灯选股公式:(20T 10% 100%)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;E:=GJTJ1>60 AND GJTJ4>70;ENTERLONG:A AND B AND E;黄金星星点灯选股公式:(20T 10% 94.05%)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;ENTERLONG:A AND B;启动金三角选股公式: (捉中线牛股起涨点)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;ENTERLONG:COUNT(XG,3)=1 AND XG;阶段震仓启动点选股公式:(黄金坑)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; B:=BARSLAST(CROSS(GJTJ4,GJTJ2));D:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;E:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; F:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;B1:=A>0 AND REF(A,1)=0 AND REF(A,2)>0;ENTERLONG:A AND B AND D AND E AND F;短线追涨选股公式: (高位横盘突破)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;A1:=A AND B;AA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1; BA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;A2:=AA AND BA ;AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;A3:=AAA AND BAA ;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=GJTJ1=100 AND GJTJ2=100 AND A1;D2:=GJTJ1=100 AND GJTJ2=100 AND A2;D3:=GJTJ1=100 AND GJTJ2=100 AND A3;ENTERLONG: D1 OR D2 OR D3;起涨首日选股公式: (精确定位起涨第一日)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=BARSLAST(CROSS(95,GJTJ1))<=2;B:=BARSLAST(CROSS(95,GJTJ2))<=2;E:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;F:=GJTJ2>50 AND GJTJ3>50;G:=GJTJ1=100 AND GJTJ2=100;TX:=COUNT(G,2)=1;ENTERLONG:A AND B AND E AND F AND TX;波启前兆选股公式: (波段启动前兆)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));A:=GJTJ3=100;B:=GJTJ4<90;ENTERLONG:COUNT(A,2) = 2 AND B;山东操盘手组合选股(黄金+启动金三角)GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2; BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3; HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;M2:=HUANGJIN1 AND HUANGJIN2;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);操盘手: M1 OR M2 OR M3;操盘手全部信号选股公式:GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;BAIJIN3:=GJTJ1>60 AND GJTJ4>70;M1:=BAIJIN1 AND BAIJIN2 AND BAIJIN3;HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;M2:=HUANGJIN1 AND HUANGJIN2;XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;M3:=COUNT(XG,3)=1 AND XG AND C>MA(C,20);A:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;B:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;A1:=A AND B;AA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;BA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;A2:=AA AND BA ;AAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;BAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;A3:=AAA AND BAA ;B1:=REF(A1,1);B2:=REF(A2,1);B3:=REF(A3,1);D1:=GJTJ1=100 AND GJTJ2=100 AND A1;D2:=GJTJ1=100 AND GJTJ2=100 AND A2;D3:=GJTJ1=100 AND GJTJ2=100 AND A3;AQ:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;BQ:=BARSLAST(CROSS(GJTJ4,GJTJ2));DQ:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;EQ:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;FQ:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;AW:=BARSLAST(CROSS(95,GJTJ1))<=2;BW:=BARSLAST(CROSS(95,GJTJ2))<=2;EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;FW:=GJTJ2>50 AND GJTJ3>50;G:=GJTJ1=100 AND GJTJ2=100;TX:=COUNT(G,2)=1;AE:=GJTJ3=100;BE:=GJTJ4<90;操盘手: M1 OR M2 OR M3 OR D1 OR D2 OR D3 OR (AQ AND BQ AND DQ AND EQ AND FQ) OR (AW AND BW AND EWAND FW AND TX) OR (COUNT(AE,2) = 2 AND BE);MACD底背离的通达信选股公式条件选股公式:macd背离的公式选股器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);FILTER(B1>0,5)条件选股公式:macd,RSi,kdj底背离KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);买2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); 买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);买0:=买1+买2+买3;买:IF(买0>1,买0,0);通达信百发百中{百发百中 K:100,120,105}VARA:=CLOSE/MA(CLOSE,48)*100<71*K/100;VARB:=CLOSE/MA(CLOSE,50)*100<70*K/100;VARC:=HIGH/LOW>1.078/K*100;VARD:=VARC AND COUNT(VARC,4)>2;VAR1:=CLOSE;VAR2:=MA(VAR1,6);VAR3:=MA(VAR1,24);VAR4:=MA(VAR1,32);VAR5:=MA(VAR1,62);VAR6:=MA(VAR1,105);百:=VAR5/VAR6*100;发:=VAR4/VAR2*100;中:=VAR3/VAR2*100;财:=VAR2/VAR1*100;入:=CLOSE/COST(8)*100;((发>110/K*100 AND 入<80*K/100) OR (VARD AND (VARA OR VARB)))AND (HIGH>LOW) AND (REF(HIGH,1)>REF(LOW,1)) AND(REF(HIGH,2)>REF(LOW,2)) AND (REF(HIGH,3)>REF(LOW,3)) AND(REF(HIGH,4)>REF(LOW,4)) AND (REF(HIGH,5)>REF(LOW,5));1)KDJ和RSI在20以下钝化一段时间;2)MACD绿线逐渐缩短,且DIF上穿DAE而DEA也向上运行;3)日线向SAR靠拢并交叉;4)ROC在超卖区上穿MROC并且MROC上行;5)BOLL开口放大;6)5日线走平并上穿10日线且10日线走平并向上。
通达信准确率90%以上选股公式
专买老鼠仓{老鼠仓}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.97),'老鼠仓'),COLOR4080FF;老鼠仓是个很不错的指标,信号发出一般都在一个波段的底部起涨之时。
根据本人的实践,使用指标时候要注意几点:1 该指标可以添加到任何一个主图里面去,比如MA均线什么的。
2 出现信号当天买进股票,第二天收阳继续持股,直到出阴为止。
3 第二天出阴考虑卖出,非常适合短线操作!老鼠仓(选股公式)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;老鼠仓:BB1 AND CC1 AND DD1 AND EE1;理想选股(选股公式)VAR1:=MA((LOW+HIGH+CLOSE)/3,5);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,2);VAR5:=LOW<HHV(VAR1,13) AND HIGH>HHV(VAR1,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR6:=VAR5 AND COUNT(VAR4,2);VAR7:=VAR6 AND NOT(REF(VAR6,1));VAR8:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR9:=EMA(MA(C,13),13);VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) ANDCROSS(VAR8,MA(VAR8,2)))=1,5);VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR12 OR VAR13) AND VAR10;买2:=(VAR12 OR VAR13) AND VAR3;买3:=(VAR12 OR VAR13) AND VAR2;买4:=(VAR2 AND VAR10) OR (VAR3 AND VAR10);买5:=(金叉AND VAR3) OR (金叉AND VAR2) OR (金叉AND VAR10);ST:=EXIST(C/REF(C,1)>1.06,50);输出:=(买1 OR 买2 OR 买3 OR 买4 OR 买5 OR VAR7) AND ST;MA5:=MA(C,5),COLORWHITE;X:=(3*C+L+O+H)/6;多空线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*RE F(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1;AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),CO LORYELLOW;CROSS(MA5,多空线) and CROSS(C,AB) and 输出;点石成金(选股公式)KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100);RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1);Var1:=CLOSE/MA(CLOSE,40)*100<76;Var2:=CLOSE/MA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.051;Var4:=Var3 AND COUNT(Var3,5)>1;Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=1.13 ANDCLOSE/REF(CLOSE,1)>=1.02;牛市绝底(选股公式)VAR1:=REF(CLOSE,1);VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100); VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) * 100);VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48));牛市绝底:VAR2 < 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 AND BARSCOUNT(CLOSE) > 47;通达信精准选股公式:条件选股公式源码:年认同价:=MA(C,240);价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239));箱顶:=价格中枢*1.2;箱底:=价格中枢*0.8;毛利润率:=FINANCE(21)/FINANCE(20);成长价值:=年认同价*(1+毛利润率);收益价值:=年认同价+FINANCE(33);回调认同:=EMA(EXPMA(C,20),13);多头:=(回调认同>REF(回调认同,1))AND(成长价值>REF(成长价值,1))AND(收益价值>REF(收益价值,1))AND(DYNAINFO(7)>0);回调条件:=COUNT(C<回调认同,5)>=3;回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C>回调认同)AND(回调条件)AND 多头; 成长条件:=COUNT(C<成长价值,5)>=3;成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND 多头; 收益条件:=COUNT(C<收益价值,5)>=3;收益突破:=(REF(C,1)<=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND 多头; 箱底条件:=COUNT(C<箱底,5)>=3;箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底条件)AND 多头;价格条件:=COUNT(C<价格中枢,5)>=3;价格突破:=(REF(C,1)<=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND 多头; 箱顶条件:=COUNT(C<箱顶,5)>=3;箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND 多头;突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破);飞弹一号(选股公式)var1:=c/ma(c,40)*100<78;var2:=c/ma(c,60)*100<74;var3:=h>=l*1.051;var4:=var3 and count(var3,5)>=2;xg:var4 and (var1 or var2) and count(h=l and c=o and c<ref(c,1),3)=0and hhv(v/capital,30)<0.8;牛魔无双(选股公式)A4:=(HIGH-LOW)/HIGH*100+(C-REF(C,1))/REF(C,1)*100;B4:=EMA(MA(A4,50),5);c4:=B4>LLV(B4,5)*1.01 AND REF(B4,1)<REF(LLV(B4,5),1)*1.01AND LLV(B4,50)=LLV(B4,5);d4:=LLV(LOW,5)=LLV(LOW,50) AND LLV(LOW,5)<HHV(LOW,70)*0.5;xg:c4 AND d4;火牛神功(选股公式)Var1:=DMA(CLOSE,VOL/SUM(VOL,34));Var2:=DMA(CLOSE,VOL/SUM(VOL,13));Var3:=(CLOSE-Var1)/Var1*100;Var4:=(CLOSE-Var2)/Var2*100;Var4<=-12 AND Var3<=-19 ;跟庄建仓(选股公式)A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var3:=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(Var3,3)-10;机构建仓区:=(A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50));Var7:=LLV(LOW,30);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:=EMA(IF(LOW<=Var7 AND 趋势<40,(Var11+Var12),0),3)/618;选股:火焰山>0 AND 机构建仓区>0 AND 趋势>REF(趋势,1) AND REF(趋势,1)<REF(趋势,2);跟庄建仓源码A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(S MA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);Var2:=EMA(Var1,8);Var3:=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(Var3,3)-10;STICKLINE(趋势>80,趋势,80,5,0);DRAWICON(CROSS(趋势,0),0,1);STICKLINE((A09 > 0 AND (趋势<20 OR 趋势>REF(趋势,1)AND 趋势<50)),0,A09,6,0),colorFFff00;机构建仓区:0,LINETHICK0,colorFFFF00;Var4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;STICKLINE(趋势<=13,0,20,3,0),colorcc9900;DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),colorcc9900;STICKLINE(趋势<=13 AND Var4>13,0,50,2,0),color0099ff;Var5:=FILTER((趋势<=13 AND Var4>13),10);DRAWTEXT(Var5,60,'买入'),color0099ff;STICKLINE(趋势>=90 AND Var4,0,30,3,0),colorgray;Var6:=FILTER((趋势>=90 AND Var4),10);DRAWTEXT(Var6,40,'清仓'),colorgray;Var7:=LLV(LOW,30);Var8:=HHV(HIGH,30);Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;STICKLINE(Var9>90,100,105,3,2),COLORRED;Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,'险'),Color00FF00; DRAWICON(CROSS(90,Var9),95,9);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:EMA(IF(LOW<=Var7 AND 趋势<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趋势线: 趋势,colorff0000;Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200;Var17:=EMA(Var16,5);波浪峰:Var17,stick,colorff00ff;STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;Var18:=MA(趋势线,8);if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;DRAWTEXT(CROSS(趋势线,Var2)AND 趋势线>REF(趋势线,1)AND 趋势线<50,50,'追涨'),COLORff00ff;风险区:IF(趋势>80,趋势,80),colorff00ff;双信号"全仓"选股(选股公式)FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND CROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR04;买3:=(VAR14 OR VAR15) AND VAR02;买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);买5:=(金叉AND VAR04) OR (金叉AND VAR02) OR (金叉AND VAR11);TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;{以下波浪理论浪底重叠"买底"选股原码}PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;{以下二者结合共同选股}XG:=XG11 OR XG22;W18:EXIST(XG,1);涨停板敢死队(选股公式)Lx1:=(EMA((AMOUNT/10000000),1) /3);Lx2:=(WINNER(C)/0.3);Lx3:=IF(c<0,Lx1,V);Lx4:=IF(c<0,Lx2,V);Lx5:=IF((BARSCOUNT(C)>100),Lx3,Lx4);量:=Lx5/1000;动量:=(EMA(量,13)*1.5);A01:=IF((量>动量),量,0);A02:=BARSLAST((A01>0));A03:=REF(量,A02);趋势:=IF((量<=A01),量,A03);突破:=IF(((((量=趋势) and (C>REF(C,1))) and (量>REF(量,1))) and(REF(A02,2)>0)),888,0);量价突破:FILTER(突破,5 )*6;通达信选股公式:超级牛魔VAR3:=1;VAR4:=MA(CLOSE,5);VAR5:=MA(CLOSE,10);VAR6:=MA(CLOSE,30);VAR7:=MA(CLOSE,60);VAR8:=EMA(COST(85),7);VAR9:=EMA(COST(15),7);VARA:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VARB:=INTPART(VARA*100)/100;VARC:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARD:=INTPART(VARC*100)/100;VARE:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARF:=INTPART(VARE*100)/100;短线趋势:=EMA(CLOSE,5)-EMA(CLOSE,10);中线趋势:=EMA(短线趋势,30);VAR10:=-100*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100; VAR11:=-100*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100; VAR12:=-100*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100; VAR13:=-100*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100; VAR14:=REF(中线趋势,1);VAR15:=中线趋势;VAR16:=VAR15-VAR14;VAR17:=REF(短线趋势,1);VAR18:=短线趋势;VAR19:=VAR18-VAR17;VAR1A:=OPEN;VAR1B:=CLOSE;超级牛魔王:IF(VAR1A<=VAR4 AND VAR1A<=VAR5 AND VAR1A<=VAR6 ANDVAR1B>=VAR4 AND VAR1B>=VARF AND VAR16>0 AND VAR19>0 ANDVAR3=1,0.5,0);盘中参考VAR3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2 *SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2* SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1); VAR27:=VAR3<REF(VAR4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1); 关注:VAR27 AND COUNT(VAR27,30)=1;初升介入1V1:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;V2:=SMA(V1,20,1);V3:=SMA(V2,15,1);V4:=(3*V2+2*V3)/4;V5:= REF(V4,1);RSA:=SMA(MAX(V4-V5,0),2,1)/SMA(ABS(V4-V5),2,1)*100;RSB:=MA(RSA,10);AA:=VOL/REF(VOL,1)>2;BB:=CLOSE/REF(CLOSE,1)>1.07;初升介入:IF(AA AND BB,CROSS(RSA,RSB),DRAWNULL);主力介入VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR4:=(VAR1+2*VAR2+3*VAR3)/6;VAR5:=MA(VAR4,3)-STD(VAR4,3);VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(VARA,3,1),COLORYELLOW;VARB:=SMA(K,3,1);J:=3*K-2*VARB,COLORGREEN;主力介入: CROSS(J,VARB) AND COUNT(VAR5<-16,4)>=1,COLORWHITE;旺狗出击旺狗出击:CROSS(C,MA(CLOSE,55) + 2*STD(CLOSE,55)) AND C>OAND VOL>1.6*REF(VOL,1) AND VOL>=2*MA(VOL,60) ANDEMA(WINNER(C)*70,3)>EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3)AND VOL>=1.6*MA(VOL,5) ;五线选股AVR1:=EMA(CLOSE,10);AVR2:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36;AVR3:=MA(CLOSE,9);AVR4:=MA(CLOSE,20);五线选股:IF(CROSS(AVR1,AVR4) AND CROSS(AVR3,AVR4) ANDCROSS(AVR4,AVR2),1,0);狂牛启动1VARE:=(C-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;SOLE:=SMA(SMA(VARE,3,1),3,1);BUY:=3*SMA(VARE,3,1)-2*SOLE;SCCOUNT:=COUNT(BARSLAST(CROSS(SOLE,BUY)),BARSLAST(CROSS(SOLE,BUY )));选股1:BUY>SOLE AND REF(BUY,1)<REF(SOLE,1);狂牛启动2VARE:=(C-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;SOLE:=SMA(SMA(VARE,3,1),3,1);BUY:=3*SMA(VARE,3,1)-2*SOLE;SCCOUNT:=COUNT(BARSLAST(CROSS(SOLE,BUY)),BARSLAST(CROSS(SOLE,BUY )));选股2:CROSS(BUY,SOLE) AND REF(SOLE,1)/REF(BUY,1)<=1.5 AND SOLE<64 AND SCCOUNT=1;狂牛启动3VAR2:=1;VAR3:=REF(HIGH,1)*1.1;VAR4:=HIGH*1.1;VAR5:=(VAR4*VOL+VAR3*(CAPITAL-VOL))/CAPITAL;VAR6:=REF(LOW,1)*0.9;VAR7:=LOW*0.9;VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;VAR9:=EMA(VAR8,30);VARA:=EMA(VAR5,30);VARB:=VARA-2;VARC:=IF(C<=VAR9,VARB,VARA);VARD:=MA(C,80)-MA(C,10)/17;准备:=STICKLINE(VARC-VARB=0 AND VAR2 ANDCROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-RE F(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)),50,0,5,0);选股3: FILTER(VARC-VARB=0 ANDCROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA( EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1 ))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)),4);短线通道VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=3*VAR2-2*VAR3;VAR5:=LLV(LOW,5);VAR6:=HHV(HIGH,5);VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);VAR9:=3*VAR7-2*VAR8;VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VARB:=POW(MA(LOW,5),2)+MA(LOW,5);VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;VARE:=SMA(VARD,3,1)*1.5-100;VARF:=SMA(VARE,3,1);VAR10:=3*VARE-2*VARF;VAR11:=(HIGH+LOW+CLOSE*2)/4;VAR12:=EMA(VAR11,13);VAR13:=STD(VAR11,13);VAR14:=(VAR11-VAR12)*100/VAR13;VAR15:=EMA(VAR14,5);VAR16:=EMA(VAR15,13);VAR17:=EMA(VAR15,13)+200-100;VAR18:=EMA(VAR17,10);VAR19:=3*VAR17-2*VAR18;VAR1A:=VAR2+VAR7+VARE+VAR17;VAR1B:=VAR3+VAR8+VARF+VAR18;VAR1C:=VAR4+VAR9+VAR10+VAR19;VAR1D:=(HIGH+LOW+CLOSE)/3;VAR1E:=AMOUNT/VOL/100;VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34)); VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;VAR23:=EMA(VAR22,24);VAR24:=STD(VAR22,24);VAR25:=(VAR22-VAR23)/VAR24*100;VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24)); VAR27:=EMA(VAR25,5);VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21)); VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90)); VAR2A:=((VAR29+VAR28+VAR27+VAR26+VAR20)/5+165)/4; VAR2B:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;VAR2C:=(VAR2A+VAR2B)/2/1.1;短线:=VAR2C;MID:=MA(短线,26);UPPER:=MID+2*STD(短线,26);LOWER:=MID-2*STD(短线,26);{LCJ2:=IF(短线>MID,MID,短线); }{买点: DRAWICON(CROSS(短线,MID),MID*0.97,1); } {DRAWICON(CROSS(短线,LOWER),LOWER*0.97,3); }{卖点: DRAWICON(CROSS(UPPER,短线),UPPER*0.97,2);MID, , COLORYELLOW;}{多头买入} ENTERLONG:CROSS(短线,MID) AND UPPER-MID>50;出手就赢1RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1);D:=SMA(K,3,1);CROSS(K,D) AND D<30;出手就赢2RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);CROSS(K,D) AND D<80;套利狐狸VAR1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);VAR2:=REF(HIGH,10)/CLOSE>1.35;V3: (CLOSE-VAR1)/VAR1*100<-30 AND VAR2;乘胜追击1VAR1:=WINNER(CLOSE)-WINNER(OPEN);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),5,1)/SMA(ABS(CLOSE-VAR2),5,1)*100;VAR4:=CLOSE/MA(CLOSE,3)>=1.05;VAR5:=MA(VOL,8)/MA(VOL,45)>=2.5;VAR6:=WINNER(CLOSE)-WINNER(OPEN);VAR7:=REF(CLOSE,1);VAR8:=SMA(MAX(CLOSE-VAR7,0),5,1)/SMA(ABS(CLOSE-VAR7),5,1)*100;VAR9:=VAR6>=0.3 AND MA(VOL,6)/MA(VOL,26)>=1.9 AND VOL>REF(VOL,1) AND COUNT(VAR8<20,20)>=1 AND CLOSE/MA(CLOSE,3)>=1.07;VARA:=VAR1>=0.4 AND VAR5 AND COUNT(VAR3<20,20)>=1 AND VAR4 AND CLOSE>MA(CLOSE,85) AND VOL>REF(VOL,1);(VARA OR VAR9);逆势操作1VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);VAR3:=(CLOSE-VAR1)/VAR1*100<-8;VAR4:=(VAR1-VAR2)/VAR2*100<-21;VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) ORREF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) ORREF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) ORREF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) ORREF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) ORREF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) ORREF(OPEN,7)<REF(CLOSE,7));VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;VAR8:=SMA(VAR7,50,1);VAR9:=SMA(VAR8,40,1);VARA:=VAR6 AND VAR9<23 AND COUNT(VAR6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1) >0.96 ;(VAR5 OR VARA) ;牛市专利1VAR1:=REF(CLOSE,3)*0.844;VAR2:=REF(CLOSE,13)*0.767;VAR3:=INDEXC;VAR4:=INDEXV;VAR5:=MIN(VAR1,VAR2);VAR6:=100*VOL/CAPITAL;VAR7:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;VAR8:=(CLOSE-VAR5)/CLOSE<0.07 AND SUM(VAR6,3)/3<2.345 ANDVAR3>MA(VAR3,450) AND MA(VAR4,61)/MA(VAR4,80)>0.923 ANDCLOSE>MA(CLOSE,190);VAR9:=VAR3>MA(VAR3,450) AND VAR7<-16.5 AND MA(VAR4,61)/MA(VAR4,80)>0.92 AND CLOSE>MA(CLOSE,215) AND (REF(OPEN,1)>REF(CLOSE,1) ORREF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) ORREF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) ORREF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) ORREF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) ORREF(OPEN,5)<REF(CLOSE,5)) AND VOL/CAPITAL<0.075;(VAR8 OR VAR9);同时金叉DIF:=EMA(CLOSE,9)-EMA(CLOSE,17);DEA:=EMA(DIF,8);MACD:=(DIF-DEA)*2;RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI3:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;选股:CROSS(DIF,DEA) AND CROSS(J,D) AND CROSS(RSI1,RSI3);带量突破VAR1:=EMA(COST(80),10);COUNT(CROSS(CLOSE,VAR1),2)>=1 AND VOL/CAPITAL>=0.1;攻击箱顶VAR1:=HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58);BETWEEN(CLOSE,VAR1*1.001,VAR1) AND REF(VAR1,3)=VAR1 ANDVOL>REF(VOL,2);果断介入VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;VAR4:=(VAR1+2*VAR2+3*VAR3)/6;VAR5:=MA(VAR4,3)-STD(VAR4,3);VAR6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR7:=SMA(VAR6,3,1);VAR8:=SMA(VAR7,3,1);VAR9:=3*VAR7-2*VAR8;CROSS(VAR9,VAR8) AND COUNT(VAR5<-12 AND VAR5>-14,3)>=1;暴裂旋风VAR1:=ABS(HIGH-LOW);SUM(VAR1,7)/CLOSE>0.5 AND SUM(VAR1,7)/CLOSE<0.8 AND CLOSE>7 AND CLOSE<11;稳赢剑VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA( SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);VAR5:=CROSS(VAR4,10) AND VAR3<N;抄底:VAR5;领头羊白色:=SMA(HIGH,21,2)*1.05,;黄色:=SMA(LOW,21,2)*0.95;粉色:=SMA(LOW,5,1);绿色:=SMA(CLOSE,2,1),;波段买入:=IF(CROSS(绿色,粉色),白色*1.05,粉色);领头羊:=IF(CROSS(绿色,白色),白色*1.10,黄色);领头羊>黄色OR 波段买入>粉色;天星踏浪VARC:=(2*CLOSE+HIGH+LOW)/4;VARD:=LLV(LOW,34);VARE:=HHV(HIGH,34);VARF:=LLV(LOW,13);VAR10:=HHV(HIGH,13);VAR11:=EMA((VARC-VARF)/(VAR10-VARD)*100,5);VAR12:=EMA((VARC-VARD)/(VARE-VARD)*100,8);金浪:= VAR11;AA:=EMA(VAR11,7);海浪:= VAR12;IF(CROSS(金浪,AA) AND AA<=25 ,1,0);黑马绝技EMA13:=EMA(C,13);EMA30:=EMA(C,30);EMA60:=EMA(C,60);EMA90:=EMA(C,90);EMA120:=EMA(C,120);EMA250:=EMA(C,250);F1:=EMA30-EMA60<130/1000 AND EMA30-EMA90<230/1000 ANDEMA30-EMA120<330/1000;F2:=EMA60-EMA30<130/1000 AND EMA60-EMA90<230/1000 ANDEMA60-EMA120<330/1000;F3:=EMA90-EMA30<130/1000 AND EMA90-EMA60<230/1000 ANDEMA90-EMA120<330/1000;F4:=EMA120-EMA30<130/1000 AND EMA120-EMA60<230/1000 AND EMA120-EMA90<330/1000;F5:=EMA30-EMA60<100/1000 AND EMA30-EMA90<200/1000;FF1:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA30,EMA60);FF2:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA(C,13),EMA30);FF3:=F5 AND C>EMA250 AND CROSS(EMA30,EMA60);G1:=EMA60-EMA90<220/1000 AND EMA60-EMA120<320/1000 ANDEMA60-EMA250<420/1000;G2:=EMA90-EMA30<220/1000 AND EMA90-EMA60<320/1000 ANDEMA90-EMA250<420/1000;G3:=EMA120-EMA60<220/1000 AND EMA120-EMA90<320/1000 AND EMA120-EMA250<420/1000;G4:=EMA250-EMA60<220/1000 AND EMA250-EMA90<320/1000 AND EMA250-EMA120<420/1000;GG1:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA13,EMA30);GG2:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA30,EMA60);FF1 OR FF2 OR FF3 OR GG1 OR GG2;黑马起步A1:=VOL=HHV(VOL,120);A2:=CLOSE/OPEN>1.05;TJ:=A1 AND A2;TJ AND (REF(BARSLAST(TJ),1)>80 OR BARSSINCE(TJ)=0);三底背离DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); 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) ANDCROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));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) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));底背离:B1>0 OR B2>0 OR B3>0;蓄势待发V0:=EMA(C,5);EMA10:=EMA(C,10);EMA20:=EMA(C,20);EMA30:=EMA(C,30);EMA60:=EMA(C,60);M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975;M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980;M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985;M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10);M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30);T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990;T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990;T3:=T1 AND T2 AND CROSS(V0,EMA10);T4:=T1 AND T2 AND CROSS(V0,EMA30);M4 OR M5 OR T3 OR T4;突破指标{一是突破盘整;二是突破前高;三是突破平台}W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W4 AND COUNT(W4,5)=1;四线粘合V0:=EMA(C,5);V1:=EMA(C,10);V2:=EMA(C,15);V3:=EMA(C,30);V4:=EMA(C,60);M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975;M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980;M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985;M4:=M1 AND M2 AND M3 AND CROSS(V0,V1);M5:=M1 AND M2 AND M3 AND CROSS(V0,V3);M4 OR M5;拉升在即ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/ 25000,2);M1:=EMA(ABV,12);M2:=EMA(ABV,26);MTM:=CLOSE-REF(CLOSE,1);MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));A:=((VOL)/(CAPITAL))*(100);S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));X:=1;拉升在即:S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y);顶天立地VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR21:=SMA(VAR1F,3,1);趋势:=SMA(VAR21,3,1);人气:=SMA(趋势,3,1);出击:CROSS(趋势,人气) AND (趋势<30);{短卖:IF(CROSS(人气,趋势) AND (人气>75),85,100),COLOR008000,LINETHICK2; };主力进出ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/ 25000,2);M1:=EMA(ABV,12);M2:=EMA(ABV,26);MTM:=CLOSE-REF(CLOSE,1);。
【通达信】请求将QSDD指标的一个思路改写成选股公式
【通达信】请求将QSDD指标的一个思路改写成选股公式QSDD源码:80,COLOR996699;20,COLORGREEN;10,COLORCC6633,LINETHICK2;90,COLOR9966FF,LINETHICK2;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+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( {见顶OR} 顶部,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;[本帖最后由阿明选股于 2016-8-18 09:42 编辑]。
通达信公式 125个选股公式
通达信公式125个选股公式,解决选股难题!(为大家节约时间)125个简单的选股指标公式1,30个交易日内,股价跌幅达到一半的股票:xg:(hhv(c,30)-c)/hhv(c,30)>0.5;2,今天的量是5天平均的2倍以上xg:v>ma(v,5)*2;缩量vol/ma(vol,10)<0.3;3,两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4,股价是25天以来新低.xg:c<ref(llv(c,25),1);5,选股:EXPMA5日与10日金叉并且第二天的收盘价在EXPMA的5日线以上.cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6,请编买入公式:1. 将BIAS指标的参数设置为24日,将KD指标的参数设置为9;3;3。
2. BIAS指标要小于-6,这只是确认该股超跌的初选条件。
3. KD指标产生黄金交叉,K线上穿D线。
4. KD交叉同时,KD指标中的D值要小于16。
BIAS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100,colorff00ff;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;xg:BIAS3<-6 and cross(k,d) and d<16;7,要求是量大、换手率达到3左右,涨幅>7个点。
xg:v/capital*100>3 and (c/ref(c,1)>1.07;8,个股分时图上都有一条黄线,叫做均价线a/capital*100;9,"阴转阳"的公式(也就是昨天收阴线,今天收阳线)xg:ref(c,1)<ref(o,1) and c>o;10,股价回抽20日均线选股公式xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);11,一根大阳线,至少有5个点以上,再连着出现二根振幅不大于5的十字星或是小K线xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l<0.05,2)=2;12,行情信息里的“涨幅”的原码(c-ref(c,1))/c*100;13,kdj的J从上向下穿越O轴发出信号RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;xg:cross(0,j);14,股价4天中有两天在10日线上count(c>ma(c,10),4)=2;15,选出10天内出现了涨停的个股count(c/ref(c,1)>1.1,10)>0;又:今涨停:=C/REF(C,1)>1.09;选股:count(今涨停,n);16,一阳上穿10,20,30日线,量能是前一天3倍。
通达信选股公式
1、通达信选股公式{MACD、KDJ、RSI底背离}DIFF:=EMACLOSE,12 - EMACLOSE,26;DEA:=EMADIFF,9;A1:=BARSLASTREFCROSSDIFF,DEA,1;B1:=REFC,A1+1>C AND REFDIFF,A1+1<DIFF AND CROSSDIFF,DEA;A2:=BARSLASTREFCROSS""9,3,3,""9,3,3,1;B2:=REFC,A2+1>C AND REF""9,3,3,A2+1<""9,3,3 AND CROSS""9,3,3,""9,3,3;A3:=BARSLASTREFCROSS""6,12,24,""6,12,24,1;B3:=REFC,A3+1>C AND REF""6,12,24,A3+1<""6,12,24 AND CROSS""6,12,24,""6,12,24;底背离:B1>0 OR B2>0 OR B3>0;{集成了MACD、KDJ、RSI三个指标的底背离};2、老鼠仓AA1:=AMOUNT/VOL;BB1:=L< AA1;CC1:=C-REFC,1/REFC,1100> ;DD1:=L< MAC,5;EE1:=VOL< MAV,5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1;3、抄底高手{M 15 35 30N 12 32 27D 18 50 42}VAR1:=CLOSE-MACLOSE,48/MACLOSE,48100+M<0;VAR2:=CLOSE-MACLOSE,70/MACLOSE,70100+N<0;VAR3:=VAR1 AND VAR2;VAR4:=VAR1 AND VAR2 AND COUNTVAR3,2=1 AND DATE>940101 AND CLOSE>OPEN OR CLOSE<OPEN AND OPEN-REFCLOSE,1/REFCLOSE,1> AND REFOPEN,1>REFCLOSE,1 OR REFOPEN,1<REFCLOSE,1 ANDREFOPEN,2>REFCLOSE,2 OR REFOPEN,2<REFCLOSE,2 AND REFOPEN,3>REFCLOSE,3 OR REFOPEN,3<REFCLOSE,3 AND REFOPEN,4>REFCLOSE,4 OR REFOPEN,4<REFCLOSE,4 AND REFOPEN,5>REFCLOSE,5 OR REFOPEN,5<REFCLOSE,5;VAR5:=DMAEMACLOSE,8,SUMVOL,9/CAPITAL;VAR6:=CLOSE-VAR5/VAR5100;VAR7:=REFVAR6,1+D<0 AND VAR6>REFVAR6,1 AND REFVAR6,1<REFVAR6,2 AND VAR6-REFVAR6,1> AND HIGH>LOW AND REFHIGH,1>REFLOW,1 ANDREFHIGH,2>REFLOW,2 AND REFHIGH,3>REFLOW,3 AND REFHIGH,4>REFLOW,4 AND REFHIGH,5>REFLOW,5;VAR4 OR VAR7;3、短线黑马{K 100 140 100}VAR1:=DMACLOSE,VOL/MAVOL,4/4;VAR2:=DMACLOSE,VOL/MAVOL,33/33;VAR3:=CLOSE-VAR1/VAR1100<-11/K100;VAR4:=VAR1-VAR2/VAR2100<K100;VAR5:=VAR3 AND VAR4 AND OPEN>CLOSE OR OPEN<CLOSE ANDOPEN-REFCLOSE,1/REFCLOSE,1> ANDREFCLOSE,1>REFOPEN,1 OR REFCLOSE,1<REFOPEN,1 ANDREFOPEN,2>REFCLOSE,2 OR REFOPEN,2<REFCLOSE,2 AND REFOPEN,3>REFCLOSE,3 OR REFOPEN,3<REFCLOSE,3 AND REFOPEN,4>REFCLOSE,4 OR REFOPEN,4<REFCLOSE,4 AND REFOPEN,5>REFCLOSE,5 OR REFOPEN,5<REFCLOSE,5 AND REFOPEN,6>REFCLOSE,6 OR REFOPEN,6<REFCLOSE,6 AND REFOPEN,7>REFCLOSE,7 OR REFOPEN,7<REFCLOSE,7;VAR6:=DMACLOSE,VOL/MAVOL,3/3;VAR7:=DMACLOSE,VOL/MAVOL,33/33;VAR8:=CLOSE-VAR6/VAR6100<-5;VAR9:=VAR6-VAR7/VAR7100<-18;VARA:=INDEXC-LLVINDEXL,250/HHVINDEXH,250-LLVINDEXL,250100; VARB:=SMAVARA,30,1;VARC:=SMAVARB,50,1;VARD:=VAR8 AND VAR9 AND OPEN>CLOSE OR OPEN<CLOSE ANDOPEN-REFCLOSE,1/REFCLOSE,1> ANDREFCLOSE,1>REFOPEN,1 OR REFCLOSE,1<REFOPEN,1;VARE:=VARD AND COUNTVARD,2=1 ;VAR5 OR VARE;4、逆势操作VAR1:=DMACLOSE,VOL/MAVOL,4/4;VAR2:=DMACLOSE,VOL/MAVOL,32/32;VAR3:=CLOSE-VAR1/VAR1100<-8;VAR4:=VAR1-VAR2/VAR2100<-21;VAR5:=VAR3 AND VAR4 AND OPEN>CLOSE OR OPEN<CLOSE AND OPEN-REFCLOSE,1/REFCLOSE,1> ANDREFCLOSE,1>REFOPEN,1 OR REFCLOSE,1<REFOPEN,1 AND REFOPEN,2>REFCLOSE,2 OR REFOPEN,2<REFCLOSE,2 AND REFOPEN,3>REFCLOSE,3 OR REFOPEN,3<REFCLOSE,3 AND REFOPEN,4>REFCLOSE,4 OR REFOPEN,4<REFCLOSE,4 AND REFOPEN,5>REFCLOSE,5 OR REFOPEN,5<REFCLOSE,5 AND REFOPEN,6>REFCLOSE,6 OR REFOPEN,6<REFCLOSE,6 AND REFOPEN,7>REFCLOSE,7 OR REFOPEN,7<REFCLOSE,7;VAR6:=CLOSE-MACLOSE,70/MACLOSE,70100<-23;VAR7:=INDEXC-LLVINDEXL,275/HHVINDEXH,275-LLVINDEXL,275100;VAR8:=SMAVAR7,50,1;VAR9:=SMAVAR8,40,1;VARA:=VAR6 AND VAR9<23 AND COUNTVAR6,2=1 AND OPEN>CLOSE OR OPEN<CLOSE AND OPEN/REFCLOSE,1> ;VAR5 OR VARA ;5、成交量变异率VR买入WVR := SUMIFCLOSE>OPEN,VOL,0+IFCLOSE=OPEN,VOL/2,0,N/SUMIFCLOSE<OPEN,VO L,0+IFCLOSE=OPEN,VOL/2,0,26100;VOL变异率VR买入:CROSSLL,WVR;{N 5 100 26 5}{LL 0 80 70 5};MA5:=MAC,5;MA10:=MAC,10;MA20:=MAC,20;MA30:=MAC,30;MA120:=SMAC,120,1;ZH520:=ABSMA5-MA20/MA20100<=10;ZH530:=ABSMA5-MA30/MA30100<=10;QSXS1:=MA5>REFMA5,1;QSXS2:=MA20>REFMA20,1;QSXS3:=MA30>REFMA30,1;DTPL:=MA20>MA30 AND MA30>MA120;LYT:=DTPL AND QSXS2 AND QSXS3 AND COUNTQSXS1,4<=1;GJHS:=C>MA5 AND QSXS1 AND NOTREFQSXS1,1 OR C>REFC,3;LYKK:=GJHS AND ZH520 OR ZH530 AND LYT;买:LYKK AND NOTREFLYKK,1;虚拟成交量>昨日VOL的2倍的股VVOL:=IFCURRBARSCOUNT=1 AND PERIOD=5,VOL240/FROMOPEN,DRAWNULL;昨日VOL:=REFVOL,1;ABSVVOL-昨日VOL>=0;{大于昨日的倍};成交量是昨日的倍VVOL:=IFCURRBARSCOUNT=1 AND PERIOD=5,VOL240/FROMOPEN,DRAWNULL;昨日VOL:=REFVOL,1;ABSVVOL-昨日VOL>=0;{大于昨日的倍};6、PDI上穿三线选股公式源码:TR0:= SUMMAXMAXHIGH-LOW,ABSHIGH-REFCLOSE,1,ABSLOW-REFCLOSE,1,1 4;HD := HIGH-REFHIGH,1;LD := REFLOW,1-LOW;DMP:= SUMIFHD>0 AND HD>LD,HD,0,14;DMM:= SUMIFLD>0 AND LD>HD,LD,0,14;PDI:=DMP100/TR0,colorred;MDI:=DMM100/TR0;ADX:=MAABSMDI-PDI/MDI+PDI100,6;ADXR:=ADX+REFADX,6/2;CROSSPDI,MDI AND CROSSPDI,ADX AND CROSSPDI,ADXR今日量比昨放大1倍后三日股价不跌回当日收盘价的选股公式选股公式:{成交量比前一天放大1倍,后3天,股价没有跌破放量那天的收盘价}var1:=v>refv,12;refvar1,3 and countc>refc,3,3=3;7、倍量柱加三天量减价升喇叭形的真黄金柱公式倍数:=;倍量1:=REFVOL,3>倍数REFVOL,4 AND REFC,3>=REFO,3;价升量缩:= LLVC,3>=REFL,3 AND HHVVOL,3<=REFVOL,3;连阳:= COUNTC>=O,4=4;选股:倍量1 AND 价升量缩 AND 连阳;8、“凹口起柱”理论编写的凹口指标王子老师的平台起柱、过顶起柱、凹口起柱理论真是了不得,十分佩服,这里我冒昧的加一个,那就是顶部起柱,经观察,股票起柱时是主力行为的表现,是主力意图的表现是主力留下的痕迹是量柱开口说话的语言这个指标或许可以帮助朋友们看懂主力的行为意图,看出量柱的语言T7:=REFVOL,6/REFVOL,7>=2;T6:=REFVOL,5/REFVOL,6>=2;T5:=REFVOL,5/REFVOL,4>=;T4:=REFVOL,4/REFVOL,3>=;T3:=REFVOL,2/REFVOL,3>=;T1:=V/REFVOL,1>2;T0:=C>O AND C>REFC,1;选股:T7 AND T1 AND T0 OR T6 AND T1 AND T0 OR T5 AND T1 AND T0 OR T4 AND T1 AND T0OR T3 AND T1 AND T0 ;KB2010-1-12 21:299、倍量过左峰选股源码--通达信SR1:=REFHIGH,10=HHVHIGH,210+1; SR2:=FILTERSR1,10;SR3:=BACKSETSR2,10+1;HD:=FILTERSR3,10;前高:=REFH,BARSLASTHD;倍量:=VOL/REFVOL,1>=2 AND COUNTCLOSE>OPEN,1 OR LOW>REFHIGH,1 AND COUNTOPEN>CLOSE,1 AND VOL/REFVOL,1>=2;突破前高:=CROSSC,前高;XG:突破前高 AND 倍量;10、{MACD、KDJ、RSI底背离}DIFF:=EMACLOSE,12 - EMACLOSE,26;DEA:=EMADIFF,9;A1:=BARSLASTREFCROSSDIFF,DEA,1;B1:=REFC,A1+1>C AND REFDIFF,A1+1<DIFF AND CROSSDIFF,DEA;A2:=BARSLASTREFCROSS""9,3,3,""9,3,3,1;B2:=REFC,A2+1>C AND REF""9,3,3,A2+1<""9,3,3 AND CROSS""9,3,3,""9,3,3;A3:=BARSLASTREFCROSS""6,12,24,""6,12,24,1;B3:=REFC,A3+1>C AND REF""6,12,24,A3+1<""6,12,24 AND CROSS""6,12,24,""6,12,24;底背离:B1>0 OR B2>0 OR B3>0;{集成了MACD、KDJ、RSI三个指标的底背离};11、老鼠仓AA1:=AMOUNT/V;BB1:=L<AA1;CC1:=C-REFC,1/REFC,1100>;DD1:=L<MAC,5;EE1:=V<MAV,5;老鼠仓:BB1 AND CC1 AND DD1 AND EE1;12、主力进场VAR1:=REFLOW+OPEN+CLOSE+HIGH/4,1;VAR2:=SMAABSLOW-VAR1,13,1/SMAMAXLOW-VAR1,0,10,1;VAR3:=EMAVAR2,10;VAR4:=LLVLOW,33;VAR5:=EMAIFLOW<=VAR4,VAR3,0,3;XG:VAR5>REFVAR5,1 AND VAR5>0 OR VAR5<REFVAR5,1 AND NOTVAR5=0=1;13、60日天量T1:=V=HHVV,100;T2:=V/REFVOL,1>=3;选股:T1 AND T2;14、135均量线选股VOLUME:=VOL;MAVOL1:=MAVOLUME,5;MAVOL2:=MAVOLUME,35;MAVOL3:=MAVOLUME,135;选股:CROSSMAVOL1,MAVOL2OR CROSSMAVOL1,MAVOL3 OR CROSSMAVOL2,MAVOL3;15、二次翻红DIF:=EMACLOSE,12 - EMACLOSE,26;DEA:=EMADIF,9;MACD:=2DIF-DEA;FH1:=REFMACD,1<REFMACD,2 AND REFMACD,2<REFMACD,3 AND REFMACD,3<REFMACD,4;FH2:=MACD>=0 AND COUNTMACD>REFMACD,1,1=1;FH3:=FH1 AND FH2 AND EMAC,13>REFEMAC,13,1;FH4:=FH1 AND FH2 AND ABSDIF-DEA/C<;FH5:=FH1 AND FH2 AND MACD<;二次翻红:=FH3 OR FH4 OR FH5;低买:=CROSSDIF,DEA AND DIF<0;加油:=CROSSDIF,DEA AND DIF>0;XG:二次翻红 OR 低买 OR 加油;16、均量互换VOLUME:=VOL;MAVOL1:=MAVOLUME,5;MAVOL2:=MAVOLUME,35;MAVOL3:=MAVOLUME,135;选股:CROSSMAVOL2,MAVOL3;17、成交额均量互换AMO:=AMOUNT;MAAMO1:=MAAMO,5;MAAMO2:=MAAMO,10;MAAMO3:=MAAMO,40;X G:CROSSTJ1,TJ2AND CROSSTJ1,TJ3OR CROSSMAAMO1,MAAMO2AND CROSSMAAMO1,MAAMO3;18、凹口起柱T7:=REFVOL,6/REFVOL,7>=2;T6:=REFVOL,5/REFVOL,6>=2;T5:=REFVOL,5/REFVOL,4>=;T4:=REFVOL,4/REFVOL,3>=;T3:=REFVOL,2/REFVOL,3>=;T1:=V/REFVOL,1>2;T0:=C>O AND C>REFC,1;选股:T7 AND T1 AND T0 OR T6 AND T1 AND T0 OR T5 AND T1 AND T0 OR T4 AND T1 AND T0OR T3 AND T1 AND T0;19、黄金柱选股VAR1:=V>REFV,12;REFVAR1,3 AND COUNTC>REFC,3,3=3;20、日成交量触及5日均量线M1:=MAV,5;M2:V > M1;21、早盘量满--一个很管用的预警指标本指标描述的是上午10点前个股成交量与昨天基本相等指标在上午10点以后就不工作了;这类股票往往是比较强势,只有在10点前成交量达到昨天水平才会预警;其中下跌的股票必须用肉眼给过滤掉.这个指标只能用在通达信上,其它软件无法改用早盘量满:CROSSVOL,REFVOL,1 AND FROMOPEN<30 ;指标解释:CROSSVOL,R EFVOL,1--就是今天的成交量超过昨天成交量; FROMOPEN<30 --就是开盘后30分内有效,那么我们可以根据自己的需要进行改进. 比如可以设在10:00点钟开始预警,到10:30分结束,那么就写成FROMOPEN>30 and FROMOPEN<60.关于指标我认为必须先搞懂市场含义,才能再去使用指标.网上的指标很多,不泛有大量的好指标,当我们不懂其市场含义时我们不要贸然去用它.22、天地量A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;VAR2:=1AMOUNT;三十日地量:VAR2=LLVVAR2,30 AND VAR2=0 AND BARSCOUNTC>30;六十日地量:VAR2=LLVVAR2,60 AND VAR2=0 AND BARSCOUNTC>60;一百日地量:VAR2=LLVVAR2,100 AND VAR2=0 AND BARSCOUNTC>100;一年地量:VAR2=LLVVAR2,250 AND VAR2=0 AND BARSCOUNTC>250;三十日天量:VAR2=HHVVAR2,30 AND VAR2=0 AND BARSCOUNTC>30;六十日天量:VAR2=HHVVAR2,60 AND VAR2=0 AND BARSCOUNTC>60;一百日天量:VAR2=HHVVAR2,100 AND VAR2=0 AND BARSCOUNTC>100;一年天量:VAR2=HHVVAR2,250 AND VAR2=0 AND BARSCOUNTC>250;23、AAA量线选股CV:=CLOSE;BBIBOLL:=MACV,3+MACV,6+MACV,12+MACV,24/4;UPR:=BBIBOLL+6STDBBIBOLL,11;QJJ:=VOL/HIGH-LOW2-ABSCLOSE-OPEN;XVL:=IFCLOSE>OPEN,QJJHIGH-LOW,IFCLOSE<OPEN,QJJHIGH-OPEN+CLOSE-L OW,VOL/2+IFCLOSE>OPEN,0-QJJHIGH-CLOSE+OPEN-LOW,IFCLOSE<OPEN,0-Q JJHIGH-LOW,0-VOL/2;HSL:=XVL/3/;攻击:=HSL+REFHSL,1+REFHSL,2;LLJX:=EMA攻击,3;B1:=IFSUMLLJX,1>REFMASUMLLJX,1,1,1,SUMLLJX,1,DRAWNULL;B2:=IFSUMLLJX,2>REFMASUMLLJX,2,1,1,SUMLLJX,2,DRAWNULL;B3:=IFSUMLLJX,3>REFMASUMLLJX,3,1,1,SUMLLJX,3,DRAWNULL;B4:=IFSUMLLJX,4>REFMASUMLLJX,4,1,1,SUMLLJX,4,DRAWNULL;B5:=IFSUMLLJX,5>REFMASUMLLJX,5,1,1,SUMLLJX,5,DRAWNULL;B6:=IFSUMLLJX,6>REFMASUMLLJX,6,1,1,SUMLLJX,6,DRAWNULL;B7:=IFSUMLLJX,7>REFMASUMLLJX,7,1,1,SUMLLJX,7,DRAWNULL;B8:=IFSUMLLJX,8>REFMASUMLLJX,8,1,1,SUMLLJX,8,DRAWNULL;B9:=IFSUMLLJX,9>REFMASUMLLJX,9,1,1,SUMLLJX,9,DRAWNULL;B10:=IFSUMLLJX,10>REFMASUMLLJX,10,1,1,SUMLLJX,10,DRAWNULL;XG:B1 AND B2 AND B3 AND B4 AND B5 AND B6 AND B7 AND B8 AND B9 AND B10AND CLOSE-OPEN>=UPR-BBIBOLL AND V/REFV,1>=;低量+倍量W3:=REFVOL,1<REFLLVVOL,10,2;W4:=VOL/REFVOL,1>;W5:W3 AND W4;说明:其中的值10,代表10天最低量, 值 ,为倍量,均可按选股苛刻程度适当修改连续缩倍量W1:=VOL/REFVOL,1<=;W2:=VOL/REFVOL,2<=;W3:W1 AND W2 AND DYNAINFO17=0;说明:其中可按选股苛刻程度适当修改。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
通信达改指标不求人:将公式改为选股公式
步骤一 . 将所有的显示式 ":", 改为不显示式 ":="
选股条件的基本要求为只能输出 1个条件式 , 故要先将公式中所有的显示式 ":" 改为不显示
式":=",
如果原来显示式后面接有线型描述(颜色. 对齐.. 等), 也一并删除
例如 :
ma1:ma(c,5),colorred;
ma2:ma(c,10),colorgreen,POINTDOT;
先改为
ma1:=ma(c,5);
ma2:=ma(c,10);
步骤二 .找出选股条件 , 并写成选股式引用 :
条件的寻找方法 ,依不同目的 , 大致可分以下几种
1. ' 字'选股如:' 买' 选股
方法:先找出公式中出现有’字’的地方,该式开头会以DRAW..TEXT开头,
DRAWTEXT DRAWTEXTEX DRAWYITEXT DRAWFLAGTEXT DRAWMOVETEXT
找到后,该函数(条件,,' 字')后面括号内的第 1个即为条件,将该条件复制出来并加上分
号
即可
例如:
{ 求 '5 日均 >10 日均 ' 选股 }
ma1:=ma(c,5);
ma2:=ma(c,10);
DRAWTEXT(ma1>ma2,ma1,'5日均 >10 日均');
[解]
ma1:=ma(c,5);
ma2:=ma(c,10);
ma1>ma2;
2. 图标选股如: 笑脸选股
方法 :
先依不同软件 , 找出该图标的代号 ,
再找出公式中出现 DRAWICO函数(条件,,图标代号)的式子,对照图标的代号(括号内的第3
个), 如果该图标代号为所求代号 ,
该函数后面括号内的第 1 个即为条件 , 将该条件复制出来并加上分号即可
例如 :
{求图标 1 选股}
ma1:=ma(c,5);
ma2:=ma(c,10);
DRAWicon(ma1>ma2,ma1,1);
[解]
ma1:=ma(c,5);
ma2:=ma(c,10);
ma1>ma2;
3. A线上穿(下穿)B线选股{上穿--金叉,下穿--死叉}
方法 :A 线上穿 B 线: cross(A,B);
A 线下穿
B 线: cross(B,A);
例如 :
{求ma1上穿ma2选股}
ma1:ma(c,5);
ma2:ma(c,10);
[解]
ma1:=ma(c,5);
ma2:=ma(c,10);
cross(ma1,ma2);
{求ma1下穿ma2选股} ma1:ma(c,5);
ma2:ma(c,10);
[解]
ma1:=ma(c,5);
ma2:=ma(c,10);
cross(ma2,ma1);
4.线A上拐(下拐)选股
方法:线A上拐:cross(A,ma(A,2)); 或cross(A,ref(A,1))
;
线A下拐:cross(ma(A,2),A); 或
cross(ref(A,1) ,A)
例如:
{ 求改成 ma1 上拐 } ma1:ma(c,5);
[解]
ma1:=ma(c,5); cross(ma1,ma(ma1,2));
或
cross(ma1,ref(ma1,1));
{ 求改成 ma1 下拐 }
ma1:ma(c,5);
[解]
ma1:=ma(c,5);
cross(ma(ma1,2),ma1);
或
ma1:=ma(c,5);
cross(ref(ma1,1),ma1);
5. 第 1 次出现条件 A 选股
方法 :先找出条件 A,
再利用 cross(A,0.5);
例如 :
{求改成出现图标1选股 }
ma1:=ma(c,5);
ma2:=ma(c,10);
DRAWicon(ma1>ma2,ma1,1);
[解 1]
ma1:=ma(c,5);
ma2:=ma(c,10);
A:=ma1>ma2;
cross(A,0.5);
[解2--直接将条件 A写入]
ma2:=ma(c,10);
cross(ma1>ma2,0.5);
6. 线变色选股如: 黄线变红色选股 ( 指标线为黄线 ,再利用函数变红色线 )
方法 : 先依不同软件 , 找出条件 A,
再用 cross(A,0.5);
(1) 飞狐
条件在PARTLINE(条件A, ),colorred; 括号内的第1个即为条件,将该条件复制出来并加上分号即
可
例如 :
{ 求黄线变红色选股飞狐 }
ma1:ma(c,5),coloryellow;
PARTLINE(ma1>REF(ma1,1),ma1),colorred;
[解]
ma1:=ma(c,5);
A:=ma1>REF(ma1,1);
cross(A,0.5);
(2) 大智慧 L2. 分析家
条件在 PARTLINE( , 条件 A,rgb(255,0,0), , ...);
括号内为 rgb(255,0,0) 的前 1 个即为条件 , 将该条件复制出来并加上分号即可
例如 :
{ 求黄线变红色选股大智慧 L2. 分析家 }
ma1:=ma(c,5);
PARTLINE(ma1,ma1>REF(ma1,1),rgb(255,0,0),1,rgb(255,255,0));
[解]
ma1:=ma(c,5);
A:=ma1>REF(ma1,1);
cross(A,0.5);
(3) 通达信
条件在 IF( 条件 A, ,DRAWNULL),colorred; 括号内的第 1 个即为条件 ,将该条件复制出来并加上分
号即可
例如 :
{ 求黄线变红色选股通达信 }
MA1:MA(C,5),COLORYELLOW;
IF(MA1>REF(MA1,1),MA1,DRAWNULL),COLORRED;
[解]
MA1:=MA(C,5);
A:=MA1>REF(MA1,1);
CROSS(MA1>REF(MA1,1),0.5);
7. 颜色柱选股
方法:先找出公式中出现有 STICKLINE函数的地方,
找到后 , 核对该函数后面的颜色 , 是否为所求颜色 ,
若颜色相同,则括号内的第1个即为条件A,将该条件复制出来并加上分号即可
例如:
{ 求红色柱选股 }
STICKLINE(c>o,h,l,0.8,1),colorred;
[解]
A:c>o;
{ 求第 1 次红色柱选股 }
STICKLINE(c>o,h,l,0.8,1),colorred;
[解]
A:=c>o;
cross(A,0.5);
步骤三.最后将所有绘图函数及单一输出值(如 0; k; if(,,); )全删除,使公式只
剩 1 个选股式输出即成,
(若有 2 个以上条件 , 条件同时成立时 , 可在条件间用 "and" 连接 ;
若有 2 个以上条件 , 允许条件不同时成立时 , 可在条件间用 "or" 连接);
欢迎您的下载,
资料仅供参考!
致力为企业和个人提供合同协议,策划案计划书,学习资料等等
打造全网一站式需求。