强势狙击 副图选股 通达信 源码
通达信强势狙击买进选股指标公式源码编程思路破译及成功率回测数据
通达信强势狙击买进选股指标公式源码编程思路破译及成功率回测数据编程思路破译:HJ_1赋值:如果收盘价>1日前的收盘价,返回88,否则返回0HJ_2赋值:如果收盘价/1日前的收盘价>1.05ANDHIGH/收盘价<1.01ANDHJ_1>0,返回91,否则返回0HJ_3赋值:如果日期对应的转换天数<99999999,返回1,否则返回1HJ_4赋值:HJ_2>90的22.5日过滤=1HJ_5赋值:HJ_2>90的35日过滤=1HJ_6赋值:HJ_2>90的45日过滤=1HJ_7赋值:HJ_2>90的67.5日过滤=1HJ_8赋值:HJ_2>90的90日过滤=1HJ_9赋值:HJ_2>90的135日过滤=1HJ_10赋值:HJ_2>90的180日过滤=1HJ_11赋值:HJ_2>90的270日过滤=1HJ_12赋值:HJ_4+HJ_5+HJ_6+HJ_7+HJ_8+HJ_9+HJ_10+HJ_11>=3*HJ_3 HJ_13赋值:日期对应的转换天数HJ_14赋值:成交量(手)/1日前的成交量(手)的5日简单移动平均HJ_15赋值:HJ_14>135 AND HJ_14<137HJ_16赋值:开盘价>0 AND 10日内最高价的最高值/10日内最低价的最低值<1.25 AND 1日前的收盘价<15日内最低价的最低值+(15日内最高价的最高值-15日内最低价的最低值)*0.85 AND 收阳线ANDSE 收盘价>=10日内最高价的最高值HJ_17赋值:收盘价的5日指数移动平均HJ_18赋值:收盘价的10日指数移动平均HJ_19赋值:收盘价的14日指数移动平均HJ_20赋值:收盘价的18日指数移动平均HJ_21赋值:收盘价的40日指数移动平均HJ_22赋值:收盘价的60日指数移动平均HJ_23赋值:如果日期<2342.459961*500,返回1,否则返回1HJ_24赋值:HJ_21和HJ_22的较大值HJ_25赋值:收盘价>HJ_24 AND HJ_16 AND (收盘价>1日前的3日内最高价的最高值*HJ_3 AND (收盘价-1日前的收盘价)/1日前的收盘价>0.07)HJ_26赋值:HJ_14>4.18 AND HJ_14<4.192HJ_27赋值:HJ_13>9550 AND HJ_13<99999999HJ_28赋值:HJ_26*HJ_27HJ_29赋值:HJ_14>2.67 AND HJ_14<2.69HJ_30赋值:HJ_13>9200 AND HJ_13<99999999HJ_31赋值:HJ_29*HJ_30HJ_32赋值:成交量(手)HJ_33赋值:HJ_32的5日简单移动平均HJ_34赋值:HJ_33+HJ_33>HJ_32HJ_35赋值:开盘价>0 AND 10日内最高价的最高值/10日内最低价的最低值<1.25 AND 1日前的收盘价<15日内最低价的最低值+(15日内最高价的最高值-15日内最低价的最低值*HJ_3)*0.85 AND 收阳线ANDSE 收盘价>=10日内最高价的最高值*HJ_23HJ_36赋值:收盘价>1日前的3日内最高价的最高值AND (收盘价-1日前的收盘价)/1日前的收盘价>0.07 AND HJ_35 AND HJ_34 HJ_37赋值:开盘价*HJ_3>0 AND 10日内最高价的最高值/10日内最低价的最低值<1.25 AND 1日前的收盘价<(15日内最低价的最低值+(15日内最高价的最高值-15日内最低价的最低值)*0.85)*HJ_23 AND 收阳线ANDSE 收盘价>=10日内最高价的最高值HJ_38赋值:HJ_14>2.91 AND HJ_14<2.93HJ_39赋值:HJ_13>9400 AND HJ_13<99999999HJ_40赋值:HJ_38*HJ_39HJ_41赋值:(收盘价-1日前的收盘价*HJ_3)/1日前的收盘价*100>7HJ_42赋值:HJ_14>4.67 AND HJ_14<4.69HJ_43赋值:HJ_13>9300 AND HJ_13<99999999HJ_44赋值:HJ_42*HJ_43HJ_45赋值:HJ_14>2.07 AND HJ_14<2.08HJ_46赋值:HJ_13>9321 AND HJ_13<99999999HJ_47赋值:HJ_45*HJ_46HJ_48赋值:HJ_37 AND HJ_41HJ_49赋值:收盘价的5日指数移动平均HJ_50赋值:收盘价的10日指数移动平均HJ_51赋值:收盘价的14日指数移动平均HJ_52赋值:收盘价的18日指数移动平均HJ_53赋值:HJ_14>3.75 AND HJ_14<3.77HJ_54赋值:HJ_13>9400 AND HJ_13<99999999HJ_55赋值:HJ_53*HJ_54HJ_56赋值:收盘价的40日指数移动平均HJ_57赋值:收盘价的60日指数移动平均HJ_58赋值:HJ_49和HJ_18的较大值和HJ_51的较大值和HJ_52的较大值和HJ_56的较大值和HJ_57的较大值*HJ_23HJ_59赋值:HJ_49和HJ_18的较小值和HJ_51的较小值和HJ_52的较小值和HJ_56的较小值和HJ_57的较小值*HJ_23HJ_60赋值:收盘价>HJ_58 AND 最低价<HJ_59 AND (收盘价>1日前的3日内最高价的最高值 AND (收盘价-1日前的收盘价*HJ_3)/1日前的收盘价>0.09)HJ_61赋值:HJ_60>0的历史过滤=1HJ_62赋值:1日前的26日内收盘价的最高值的2日简单移动平均HJ_63赋值:收盘价的26日简单移动平均HJ_64赋值:收盘价-HJ_63的2乘幂HJ_65赋值:HJ_64的13日简单移动平均HJ_66赋值:HJ_65的开方HJ_67赋值:HJ_63+2*HJ_66HJ_68赋值:1日前的HJ_67HJ_69赋值:收盘价上穿HJ_62 AND 最高价>1日前的HJ_67 OR (收盘价>HJ_62 AND 收盘价上穿1日前的HJ_67*HJ_3) AND 收盘价/开盘价>0.998HJ_70赋值:平滑异同平均线的MACDHJ_71赋值:随机指标KD的KHJ_72赋值:随机指标KD的DHJ_73赋值:RSI的RSI1HJ_74赋值:RSI的RSI3HJ_75赋值:收盘价-1日前的收盘价HJ_76赋值:如果HJ_75>=0,返回HJ_75,否则返回0*HJ_23HJ_77赋值:如果HJ_75<0,返回-HJ_75,否则返回0*HJ_23HJ_78赋值:HJ_76的10日平滑移动平均HJ_79赋值:HJ_77的10日平滑移动平均HJ_80赋值:HJ_76的6日平滑移动平均HJ_81赋值:HJ_77的6日平滑移动平均HJ_82赋值:100*HJ_78/(HJ_78+HJ_79)的10日简单移动平均*HJ_23HJ_83赋值:100*HJ_80/(HJ_80+HJ_81)的6日简单移动平均*HJ_23HJ_84赋值:收盘价的5日简单移动平均/收盘价的10日简单移动平均>0.999 AND 收盘价的10日简单移动平均/收盘价的20日简单移动平均>0.9847 AND 收盘价的20日简单移动平均>收盘价的60日简单移动平均AND 1日前的统计8日中满足收盘价的10日简单移动平均/收盘价的20日简单移动平均<1.017ORMA(收盘价,5)/收盘价的10日简单移动平均<1.017的天数>=1 AND 收盘价的20日简单移动平均/收盘价的60日简单移动平均<1.121HJ_85赋值:(收盘价-收盘价的60日简单移动平均*HJ_3)/收盘价的60日简单移动平均*100HJ_86赋值:统计100日中满足HJ_85<35的天数*HJ_3>=95HJ_87赋值:HJ_69 AND HJ_84>0 AND 取反 AND HJ_86 AND 1日前的统计4日中满足收盘价的20日简单移动平均>收盘价的30日简单移动平均的天数=4ANDCOUNT(收盘价>收盘价的5日简单移动平均,3)>=2 AND 成交量(手)>1日前的成交量(手) AND (1日前的统计10日中满足收阳线的天数>=6ORCOUNT(收阳线,5)>=4 OR 收盘价=最高价) AND (HJ_83上穿HJ_82 OR HJ_70上穿0 OR 1日前的统计3日中满足HJ_70上穿0的天数=1ANDHJ_70<0.15ANDCLOSE/开盘价>0.989ANDCLOSE/1日前的收盘价<1.03 OR HJ_71上穿HJ_72 OR HJ_73上穿HJ_74) AND 1日前的收盘价/开盘价>0.988AND(收盘价>OPENOR(收盘价<=OPENANDHIGH/最低价<1.049)) AND 最高价/收盘价<1.013 AND 收盘价/开盘价>1.05 HJ_88赋值:收盘价的5日简单移动平均>收盘价的10日简单移动平均 AND 收盘价的10日简单移动平均>收盘价的20日简单移动平均AND 收盘价的20日简单移动平均>收盘价的60日简单移动平均 AND 收盘价的60日简单移动平均>收盘价的120日简单移动平均 AND 收盘价的5日简单移动平均>1日前的收盘价的5日简单移动平均*HJ_3 HJ_89赋值:收盘价>1日前的收盘价*1.1-0.01HJ_90赋值:20日内最高价的最高值=1日内收盘价的最高值 AND 成交量(手)>0 AND 收盘价的有效数据周期数>=20HJ_91赋值:HJ_14>3.28 AND HJ_14<3.3HJ_92赋值:HJ_13>9200 AND HJ_13<99999999HJ_93赋值:HJ_91*HJ_92HJ_94赋值:HJ_14>6.77 AND HJ_14<6.79HJ_95赋值:HJ_13>9500 AND HJ_13<99999999HJ_96赋值:HJ_94*HJ_95HJ_97赋值:HJ_15 OR HJ_28 OR HJ_31 OR HJ_44 OR HJ_40 OR HJ_47 OR HJ_55 OR HJ_93 OR HJ_96HJ_98赋值:成交量(手)/1日前的成交量(手)>1.9HJ_99赋值:HJ_88 AND HJ_89 AND HJ_90 AND HJ_98HJ_100赋值:KDJ的J-1日前的KDJ的J>30 AND 收盘价/1日前的收盘价>1.043 AND 平滑异同平均线的MACD>0 AND 平滑异同平均线的DEA>0HJ_101赋值:收盘价的5日简单移动平均HJ_102赋值:收盘价的10日简单移动平均HJ_103赋值:收盘价的20日简单移动平均HJ_104赋值:收盘价的30日简单移动平均HJ_105赋值:收盘价的60日简单移动平均HJ_106赋值:收盘价>HJ_101 AND HJ_101>HJ_102 AND HJ_102>HJ_103 AND 收盘价>HJ_105HJ_107赋值:收盘价/1日前的收盘价>1.05 AND 1日前的收盘价/2日前的收盘价<1.05 AND 收盘价/10日内收盘价的最低值<1.4 HJ_108赋值:成交量(手)/1日前的成交量(手)>2 OR 成交量(手)=15日内成交量(手)的最高值HJ_109赋值:当前流通股本(手)<10000000HJ_110赋值:(收盘价的5日简单移动平均/1日前的收盘价的5日简单移动平均-1)*100的反正切*57.299999>40HJ_111赋值:(收盘价的10日简单移动平均/1日前的收盘价的10日简单移动平均-1)*100的反正切*57.299999>30HJ_112赋值:(收盘价的20日简单移动平均/1日前的收盘价的20日简单移动平均-1)*100的反正切*57.299999>20HJ_113赋值:(收盘价的30日简单移动平均/1日前的收盘价的30日简单移动平均-1)*100的反正切*57.299999>10HJ_114赋值:HJ_110 AND HJ_111 AND HJ_112 AND HJ_113 HJ_115赋值:KDJ的K>1日前的KDJ的K*HJ_23HJ_116赋值:KDJ的D>1日前的KDJ的D AND KDJ的D<70HJ_117赋值:KDJ的J>1日前的KDJ的J*HJ_23HJ_118赋值:HJ_115 AND HJ_116 AND HJ_117HJ_119赋值:HJ_21 AND HJ_107 AND HJ_108 AND HJ_109 AND HJ_114 AND HJ_118HJ_121赋值:90日内1日前的收盘价的最高值HJ_122赋值:成交量(手)/((最高价-最低价)*2-收盘价-开盘价的绝对值)HJ_123赋值:如果收阳线,返回HJ_122*(最高价-最低价),否则返回如果收阴线,返回HJ_122*(最高价-开盘价+(收盘价-最低价)),否则返回成交量(手)/2*HJ_23HJ_124赋值:如果收阳线,返回0-HJ_122*(最高价-收盘价+(开盘价-最低价)),否则返回如果收阴线,返回0-HJ_122*(最高价-最低价),否则返回0-成交量(手)/2*HJ_23HJ_125赋值:HJ_123/(-HJ_124)HJ_126赋值:收盘价/1日前的收盘价*100-100HJ_127赋值:统计10日中满足HJ_126>7的天数*HJ_3>=1HJ_128赋值:1日前的收盘价<收盘价的5日简单移动平均AND 收盘价>收盘价的5日简单移动平均*HJ_3HJ_129赋值:统计20日中满足收盘价上穿HJ_121的天数>=1HJ_130赋值:最低价>(1日前的最高价+0.09)*HJ_23HJ_131赋值:(收盘价的12日指数移动平均-收盘价的25日指数移动平均)*HJ_23HJ_132赋值:HJ_131的3日指数移动平均HJ_133赋值:(HJ_131-HJ_132)*500000HJ_134赋值:HJ_133-1日前的HJ_133的3日简单移动平均HJ_135赋值:HJ_134>1日前的HJ_134*HJ_3HJ_136赋值:HJ_129 AND HJ_128 AND HJ_125>3 AND HJ_127 AND HJ_135HJ_137赋值:(收盘价-2日前的收盘价)/收盘价>0.1HJ_138赋值:(-2)日前的HJ_137*HJ_23HJ_139赋值:收盘价/1日前的收盘价>1.048 AND 收盘价=最高价 AND 成交量(手)的4日线性回归预测值位于0.2*成交量(手)的12日线性回归预测值和2.1*成交量(手)的5日线性回归预测值之间*HJ_3HJ_141赋值:收盘价的5日简单移动平均HJ_142赋值:收盘价的11日简单移动平均HJ_143赋值:收盘价的21日简单移动平均HJ_144赋值:收盘价的33日简单移动平均HJ_145赋值:收盘价的89日简单移动平均HJ_146赋值:收盘价的120日简单移动平均*HJ_23HJ_147赋值:HJ_141>HJ_142 AND HJ_142>HJ_143 AND HJ_143>HJ_144 AND HJ_144>HJ_145 AND HJ_145>HJ_146 HJ_148赋值:收盘价的5日简单移动平均*HJ_3HJ_149赋值:(HJ_148/1日前的HJ_148-1)*100的反正切*57.299999>60HJ_150赋值:收盘价>收盘价的5日简单移动平均*HJ_3HJ_151赋值:HJ_149 AND HJ_150 AND HJ_147输出龙一:(HJ_12+HJ_25+HJ_36+HJ_48+HJ_87+HJ_99+HJ_120+HJ_136 +HJ_140+HJ_151>=7 OR HJ_97) AND 收盘价>收盘价的20日简单移动平均 AND 收盘价的20日简单移动平均>1日前的收盘价的20日简单移动平均条件选股:强势狙击买进[日线]成功率测试测试股票数:4991共发出信号:7271 成功信号:3034 失败信号:4120 未完成信号:117 信号发出率:65.98% 平均成功率:42.41% 成功率达到50%的股票数有:49.13%利润1总平均:12.21% 最大平均利润1: 200.48% 最小平均利润1: 0.00%利润2总平均:-0.14% 最大平均利润2: 140.90% 最小平均利润2: -43.45%程序源码:HJ_1:=IF(CLOSE>REF(CLOSE,1),88,0);HJ_2:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND HJ_1>0,91,0);HJ_3:=IF(DATETODAY(DATE)<99999999,1,1);HJ_4:=FILTER(HJ_2>90,22.5)=1;HJ_5:=FILTER(HJ_2>90,35)=1;HJ_6:=FILTER(HJ_2>90,45)=1;HJ_7:=FILTER(HJ_2>90,67.5)=1;HJ_8:=FILTER(HJ_2>90,90)=1;HJ_9:=FILTER(HJ_2>90,135)=1;HJ_10:=FILTER(HJ_2>90,180)=1;HJ_11:=FILTER(HJ_2>90,270)=1;HJ_12:=HJ_4+HJ_5+HJ_6+HJ_7+HJ_8+HJ_9+HJ_10+HJ_11> =3*HJ_3;HJ_13:=DATETODAY(DATE);HJ_14:=VOL/REF(MA(VOL,5),1);HJ_15:=HJ_14>135 AND HJ_14<137;HJ_16:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10);HJ_17:=EMA(CLOSE,5);HJ_18:=EMA(CLOSE,10);HJ_19:=EMA(CLOSE,14);HJ_20:=EMA(CLOSE,18);HJ_21:=EMA(CLOSE,40);HJ_22:=EMA(CLOSE,60);HJ_23:=IF(DATE<2342.459961*500,1,1);HJ_24:=MAX(HJ_21,HJ_22);HJ_25:=CLOSE>HJ_24 AND HJ_16 AND (CLOSE>REF(HHV(HIGH,3),1)*HJ_3 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07);HJ_26:=HJ_14>4.18 AND HJ_14<4.192;HJ_27:=HJ_13>9550 AND HJ_13<99999999;HJ_28:=HJ_26*HJ_27;HJ_29:=HJ_14>2.67 AND HJ_14<2.69;HJ_30:=HJ_13>9200 AND HJ_13<99999999;HJ_31:=HJ_29*HJ_30;HJ_32:=VOL;HJ_33:=MA(HJ_32,5);HJ_34:=HJ_33+HJ_33>HJ_32;HJ_35:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15)*HJ_3)*0.85 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10)*HJ_23;HJ_36:=CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.07 AND HJ_35 AND HJ_34;HJ_37:=DYNAINFO(4)*HJ_3>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85)*HJ_23 AND CLOSE>OPEN AND CLOSE>=HHV(HIGH,10);HJ_38:=HJ_14>2.91 AND HJ_14<2.93;HJ_39:=HJ_13>9400 AND HJ_13<99999999;HJ_40:=HJ_38*HJ_39;HJ_41:=(CLOSE-REF(CLOSE,1)*HJ_3)/REF(CLOSE,1)*100>7;HJ_42:=HJ_14>4.67 AND HJ_14<4.69;HJ_43:=HJ_13>9300 AND HJ_13<99999999;HJ_44:=HJ_42*HJ_43;HJ_45:=HJ_14>2.07 AND HJ_14<2.08;HJ_46:=HJ_13>9321 AND HJ_13<99999999;HJ_47:=HJ_45*HJ_46;HJ_48:=HJ_37 AND HJ_41;HJ_49:=EMA(CLOSE,5);HJ_50:=EMA(CLOSE,10);HJ_51:=EMA(CLOSE,14);HJ_52:=EMA(CLOSE,18);HJ_53:=HJ_14>3.75 AND HJ_14<3.77;HJ_54:=HJ_13>9400 AND HJ_13<99999999;HJ_55:=HJ_53*HJ_54;HJ_56:=EMA(CLOSE,40);HJ_57:=EMA(CLOSE,60);HJ_58:=MAX(MAX(MAX(MAX(MAX(HJ_49,HJ_18),HJ_51),HJ_ 52),HJ_56),HJ_57)*HJ_23;HJ_59:=MIN(MIN(MIN(MIN(MIN(HJ_49,HJ_18),HJ_51),HJ_52) ,HJ_56),HJ_57)*HJ_23;HJ_60:=CLOSE>HJ_58 AND LOW<HJ_59 AND (CLOSE>REF(HHV(HIGH,3),1) AND (CLOSE-REF(CLOSE,1)*HJ_3)/REF(CLOSE,1)>0.09);HJ_61:=FILTER(HJ_60>0,0)=1;HJ_62:=MA(REF(HHV(CLOSE,26),1),2);HJ_63:=MA(CLOSE,26);HJ_64:=POW(CLOSE-HJ_63,2);HJ_65:=MA(HJ_64,13);HJ_66:=SQRT(HJ_65);HJ_67:=HJ_63+2*HJ_66;HJ_68:=REF(HJ_67,1);HJ_69:=CROSS(CLOSE,HJ_62) AND HIGH>REF(HJ_67,1) OR (CLOSE>HJ_62 AND CROSS(CLOSE,REF(HJ_67,1))*HJ_3) AND CLOSE/OPEN>0.998;HJ_70:=MACD.MACD;HJ_71:=KD.K;HJ_72:=KD.D;HJ_73:=RSI.RSI1;HJ_74:=RSI.RSI3;HJ_75:=CLOSE-REF(CLOSE,1);HJ_76:=IF(HJ_75>=0,HJ_75,0)*HJ_23;HJ_77:=IF(HJ_75<0,-HJ_75,0)*HJ_23;HJ_78:=MEMA(HJ_76,10);HJ_79:=MEMA(HJ_77,10);HJ_80:=MEMA(HJ_76,6);HJ_81:=MEMA(HJ_77,6);HJ_82:=MA(100*HJ_78/(HJ_78+HJ_79),10)*HJ_23;HJ_83:=MA(100*HJ_80/(HJ_80+HJ_81),6)*HJ_23;HJ_84:=MA(CLOSE,5)/MA(CLOSE,10)>0.999 AND MA(CLOSE,10)/MA(CLOSE,20)>0.9847 AND MA(CLOSE,20)>MA(CLOSE,60) AND REF(COUNT(MA(CLOSE,10)/MA(CLOSE,20)<1.017 OR MA(CLOSE,5)/MA(CLOSE,10)<1.017,8)>=1,1) AND MA(CLOSE,20)/MA(CLOSE,60)<1.121;HJ_85:=(CLOSE-MA(CLOSE,60)*HJ_3)/MA(CLOSE,60)*100;HJ_86:=COUNT(HJ_85<35,100)*HJ_3>=95;HJ_87:=HJ_69 AND HJ_84>0 AND NOT(DYNAINFO(4)=0) AND HJ_86 AND REF(COUNT(MA(CLOSE,20)>MA(CLOSE,30),4)=4 AND COUNT(CLOSE>MA(CLOSE,5),3)>=2,1) AND VOL>REF(VOL,1) AND (REF(COUNT(CLOSE>OPEN,10)>=6 OR COUNT(CLOSE>OPEN,5)>=4,1) OR CLOSE=HIGH) AND (CROSS(HJ_83,HJ_82) OR CROSS(HJ_70,0) OR REF(COUNT(CROSS(HJ_70,0),3)=1 AND HJ_70<0.15 ANDCLOSE/OPEN>0.989 AND CLOSE/REF(CLOSE,1)<1.03,1) OR CROSS(HJ_71,HJ_72) OR CROSS(HJ_73,HJ_74)) AND REF(CLOSE/OPEN>0.988 AND (CLOSE>OPEN OR (CLOSE<=OPEN AND HIGH/LOW<1.049)),1) AND HIGH/CLOSE<1.013 AND CLOSE/OPEN>1.05;HJ_88:=MA(CLOSE,5)>MA(CLOSE,10) AND MA(CLOSE,10)>MA(CLOSE,20) AND MA(CLOSE,20)>MA(CLOSE,60) AND MA(CLOSE,60)>MA(CLOSE,120) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1)*HJ_3;HJ_89:=CLOSE>REF(CLOSE,1)*1.1-0.01;HJ_90:=HHV(HIGH,20)=HHV(CLOSE,1) AND VOL>0 AND BARSCOUNT(CLOSE)>=20;HJ_91:=HJ_14>3.28 AND HJ_14<3.3;HJ_92:=HJ_13>9200 AND HJ_13<99999999;HJ_93:=HJ_91*HJ_92;HJ_94:=HJ_14>6.77 AND HJ_14<6.79;HJ_95:=HJ_13>9500 AND HJ_13<99999999;HJ_96:=HJ_94*HJ_95;HJ_97:=HJ_15 OR HJ_28 OR HJ_31 OR HJ_44 OR HJ_40 OR HJ_47 OR HJ_55 OR HJ_93 OR HJ_96;HJ_98:=VOL/REF(VOL,1)>1.9;HJ_99:=HJ_88 AND HJ_89 AND HJ_90 AND HJ_98;HJ_100:=KDJ.J-REF(KDJ.J,1)>30 AND CLOSE/REF(CLOSE,1)>1.043 AND MACD.MACD>0 AND MACD.DEA>0;HJ_101:=MA(CLOSE,5);HJ_102:=MA(CLOSE,10);HJ_103:=MA(CLOSE,20);HJ_104:=MA(CLOSE,30);HJ_105:=MA(CLOSE,60);HJ_106:=CLOSE>HJ_101 AND HJ_101>HJ_102 AND HJ_102>HJ_103 AND CLOSE>HJ_105;HJ_107:=CLOSE/REF(CLOSE,1)>1.05 AND REF(CLOSE,1)/REF(CLOSE,2)<1.05 AND CLOSE/LLV(CLOSE,10)<1.4;HJ_108:=VOL/REF(VOL,1)>2 OR VOL=HHV(VOL,15);HJ_109:=CAPITAL<10000000;HJ_110:=ATAN((MA(CLOSE,5)/REF(MA(CLOSE,5),1)-1)*100)*57.299999>40;HJ_111:=ATAN((MA(CLOSE,10)/REF(MA(CLOSE,10),1)-1)*100)*57.299999>30;HJ_112:=ATAN((MA(CLOSE,20)/REF(MA(CLOSE,20),1)-1)*100)*57.299999>20;HJ_113:=ATAN((MA(CLOSE,30)/REF(MA(CLOSE,30),1)-1)*100)*57.299999>10;HJ_114:=HJ_110 AND HJ_111 AND HJ_112 AND HJ_113;HJ_115:=KDJ.K>REF(KDJ.K,1)*HJ_23;HJ_116:=KDJ.D>REF(KDJ.D,1) AND KDJ.D<70;HJ_117:=KDJ.J>REF(KDJ.J,1)*HJ_23;HJ_118:=HJ_115 AND HJ_116 AND HJ_117;HJ_119:=HJ_21 AND HJ_107 AND HJ_108 AND HJ_109 AND HJ_114 AND HJ_118;HJ_120:=FILTER(HJ_119,15)*HJ_3;HJ_121:=HHV(REF(CLOSE,1),90);HJ_122:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));HJ_123:=IF(CLOSE>OPEN,HJ_122*(HIGH-LOW),IF(CLOSE<OPEN,HJ_122*(HIGH-OPEN+(CLOSE-LOW)),VOL/2))*HJ_23;HJ_124:=IF(CLOSE>OPEN,0-HJ_122*(HIGH-CLOSE+(OPEN-LOW)),IF(CLOSE<OPEN,0-HJ_122*(HIGH-LOW),0-VOL/2))*HJ_23;HJ_125:=HJ_123/(-HJ_124);HJ_126:=CLOSE/REF(CLOSE,1)*100-100;HJ_127:=COUNT(HJ_126>7,10)*HJ_3>=1;HJ_128:=REF(CLOSE,1)<MA(CLOSE,5) AND CLOSE>MA(CLOSE,5)*HJ_3;HJ_129:=COUNT(CROSS(CLOSE,HJ_121),20)>=1;HJ_130:=LOW>(REF(HIGH,1)+0.09)*HJ_23;HJ_131:=(EMA(CLOSE,12)-EMA(CLOSE,25))*HJ_23;HJ_132:=EMA(HJ_131,3);HJ_133:=(HJ_131-HJ_132)*500000;HJ_134:=MA(HJ_133-REF(HJ_133,1),3);HJ_135:=HJ_134>REF(HJ_134,1)*HJ_3;HJ_136:=HJ_129 AND HJ_128 AND HJ_125>3 AND HJ_127 AND HJ_135;HJ_137:=(CLOSE-REF(CLOSE,2))/CLOSE>0.1;HJ_138:=REF(HJ_137,(-2))*HJ_23;HJ_139:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH ANDBETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST( VOL,5))*HJ_3;HJ_140:=FILTER(HJ_139,28)*HJ_3;HJ_141:=MA(CLOSE,5);HJ_142:=MA(CLOSE,11);HJ_143:=MA(CLOSE,21);HJ_144:=MA(CLOSE,33);HJ_145:=MA(CLOSE,89);HJ_146:=MA(CLOSE,120)*HJ_23;HJ_147:=HJ_141>HJ_142 AND HJ_142>HJ_143 AND HJ_143>HJ_144 AND HJ_144>HJ_145 AND HJ_145>HJ_146;HJ_148:=MA(CLOSE,5)*HJ_3;HJ_149:=ATAN((HJ_148/REF(HJ_148,1)-1)*100)*57.299999>60;HJ_150:=CLOSE>MA(CLOSE,5)*HJ_3;HJ_151:=HJ_149 AND HJ_150 AND HJ_147;龙一:(HJ_12+HJ_25+HJ_36+HJ_48+HJ_87+HJ_99+HJ_120+HJ_136 +HJ_140+HJ_151>=7 OR HJ_97) AND C>MA(C,20) AND MA(C,20)>REF(MA(C,20),1) ;该公式包含未来函数: CAPITAL该公式包含未来函数: DYNAINFO。
量化交易狙击通达信指标公式源码
量化交易狙击通达信指标公式源码
为了帮助量化交易者更好地使用通达信平台进行狙击交易,我
们提供了一套量化交易指标源码。
这些源码可用于编写自定义指标,以提高交易决策的准确性和效果。
以下是一些常用指标的源码示例:
1. 移动平均线指标(MA):
MA(close, n)
该指标计算给定周期内的移动平均线。
close表示收盘价,n表
示计算的周期数。
2. 相对强弱指标(RSI):
RSI(close, n)
该指标计算给定周期内的相对强弱指标。
close表示收盘价,n
表示计算的周期数。
3. 指数移动平均线指标(EMA):
EMA(close, n)
该指标计算给定周期内的指数移动平均线。
close表示收盘价,n表示计算的周期数。
4. 随机指标(KD):
KD(high, low, close, n)
该指标计算给定周期内的随机指标。
high表示最高价,low表
示最低价,close表示收盘价,n表示计算的周期数。
以上是一些常见的指标源码示例,您可以根据自己的需求进行
修改和扩展。
这些源码可用于通达信平台上的自定义指标开发,提
供更多量化交易策略的选择。
请注意,这些源码仅供参考,具体使用时应根据实际需求进行
调整和测试。
希望这些指标源码对您的量化交易狙击有所帮助!
如有任何疑问,请随时与我们联系。
通达信指标公式源码强势选股 无未来
强势选股无未来DRAWGBK(CURRBARSCOUNT=1, RGB(110,108,108),RGB(88,30,0),0,'',0);A1:=CROSS("MACD.DIF","MACD.DEA");A2:=CROSS("KDJ.K","KDJ.D") AND "KDJ.K"<30;A3:="I"<-90 AND "I">-100;A4:=CROSS("RSI.RSI1","RSI.RSI2") AND "RSI.RSI1"<50;A5:=REF("WR.WR1",1)>90 AND "WR.WR1"<80;A6:=CROSS("BIAS.BIAS1",-3);A7:=REF("DMI.PDI",1)<REF("DMI.MDI",1) AND REF("DMI.PDI",1)<REF("DMI.ADX",1) AND REF("DMI.PDI",1)<REF("DMI.ADXR",1) AND "DMI.PDI">"DMI.MDI" AND "DMI.PDI">"DMI.ADX" AND "DMI.PDI">"DMI.ADXR";A8:=CROSS("MFI.MFI",20) AND REF("MFI.MFI",1)<20;MTM:=CLOSE-REF(CLOSE,12);MAMTM:=MA(MTM,6);A9:=CROSS(MTM,MAMTM);{OSC:=100*(CLOSE-MA(CLOSE,20));MAOSC:=EXPMEMA(OSC,6);MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;MADKX:=MA(DKX,10);}A10:="ADTM.ADTM"<-0.5;{OR CROSS(OSC,MAOSC) OR CROSS(DKX,MADKX);}AA1:=A1 AND A2 AND A3;AA2:=A1 AND A2 AND A4;AA3:=A1 AND A2 AND A5;AA4:=A1 AND A2 AND A6;AA5:=A1 AND A2 AND A7;AA6:=A1 AND A2 AND A8;AA7:=A1 AND A2 AND A9;AA8:=A1 AND A2 AND A10;AA9:=A1 AND A3 AND A4;AA10:=A1 AND A3 AND A5;AA11:=A1 AND A3 AND A6;AA12:=A1 AND A3 AND A7;AA13:=A1 AND A3 AND A8;AA14:=A1 AND A3 AND A9;AA15:=A1 AND A3 AND A10;AA16:=A1 AND A4 AND A5;AA17:=A1 AND A4 AND A6;AA18:=A1 AND A4 AND A7;AA20:=A1 AND A4 AND A9; AA21:=A1 AND A4 AND A10; AA22:=A1 AND A5 AND A6; AA23:=A1 AND A5 AND A7; AA24:=A1 AND A5 AND A8; AA25:=A1 AND A5 AND A9; AA26:=A1 AND A5 AND A10; AA27:=A1 AND A6 AND A7; AA28:=A1 AND A6 AND A8; AA29:=A1 AND A6 AND A9; AA30:=A1 AND A6 AND A10; AA31:=A1 AND A7 AND A8; AA32:=A1 AND A7 AND A9; AA33:=A1 AND A7 AND A10; AA34:=A1 AND A8 AND A9; AA35:=A1 AND A8 AND A10; AA36:=A1 AND A9 AND A10; AA37:=A2 AND A3 AND A4; AA38:=A2 AND A3 AND A5; AA39:=A2 AND A3 AND A6; AA40:=A2 AND A3 AND A7; AA41:=A2 AND A3 AND A8; AA42:=A2 AND A3 AND A9; AA43:=A2 AND A3 AND A10; AA44:=A2 AND A4 AND A5; AA45:=A2 AND A4 AND A6; AA46:=A2 AND A4 AND A7; AA47:=A2 AND A4 AND A8; AA48:=A2 AND A4 AND A9; AA49:=A2 AND A4 AND A10; AA50:=A2 AND A5 AND A6; AA51:=A2 AND A5 AND A7; AA52:=A2 AND A5 AND A8; AA53:=A2 AND A5 AND A9; AA54:=A2 AND A5 AND A10; AA55:=A2 AND A6 AND A7; AA56:=A2 AND A6 AND A8; AA57:=A2 AND A6 AND A9; AA58:=A2 AND A6 AND A10; AA59:=A2 AND A7 AND A8; AA60:=A2 AND A7 AND A9; AA61:=A2 AND A7 AND A10; AA62:=A2 AND A8 AND A9;AA64:=A2 AND A9 AND A10; AA65:=A3 AND A4 AND A5; AA66:=A3 AND A4 AND A6; AA67:=A3 AND A4 AND A7; AA68:=A3 AND A4 AND A8; AA69:=A3 AND A4 AND A9; AA70:=A3 AND A4 AND A10; AA71:=A3 AND A5 AND A6; AA72:=A3 AND A5 AND A7; AA73:=A3 AND A5 AND A8; AA74:=A3 AND A5 AND A9; AA75:=A3 AND A5 AND A10; AA76:=A3 AND A6 AND A7; AA77:=A3 AND A6 AND A8; AA78:=A3 AND A6 AND A9; AA79:=A3 AND A6 AND A10; AA80:=A3 AND A7 AND A8; AA81:=A3 AND A7 AND A9; AA82:=A3 AND A7 AND A10; AA83:=A3 AND A8 AND A9; AA84:=A3 AND A8 AND A10; AA85:=A3 AND A9 AND A10; AA86:=A4 AND A5 AND A6; AA87:=A4 AND A5 AND A7; AA88:=A4 AND A5 AND A8; AA89:=A4 AND A5 AND A9; AA90:=A4 AND A5 AND A10; AA91:=A4 AND A6 AND A7; AA92:=A4 AND A6 AND A8; AA93:=A4 AND A6 AND A9; AA94:=A4 AND A6 AND A10; AA95:=A4 AND A7 AND A8; AA96:=A4 AND A7 AND A9; AA97:=A4 AND A7 AND A10; AA98:=A4 AND A8 AND A9; AA99:=A4 AND A8 AND A10; AA100:=A4 AND A9 AND A10; AA101:=A5 AND A6 AND A7; AA102:=A5 AND A6 AND A8; AA103:=A5 AND A6 AND A9; AA104:=A5 AND A6 AND A10; AA105:=A5 AND A7 AND A8; AA106:=A5 AND A7 AND A9;AA108:=A5 AND A8 AND A9;AA109:=A5 AND A8 AND A10;AA110:=A5 AND A9 AND A10;AA111:=A6 AND A7 AND A8;AA112:=A6 AND A7 AND A9;AA113:=A6 AND A7 AND A10;AA114:=A6 AND A8 AND A9;AA115:=A6 AND A8 AND A10;AA116:=A6 AND A9 AND A10;AA117:=A7 AND A8 AND A9;AA118:=A7 AND A8 AND A10;AA119:=A7 AND A9 AND A10;AA120:=A8 AND A9 AND A10;XG:=AA1 OR AA2 OR AA3 OR AA4 OR AA5 OR AA6 OR AA7 OR AA8 OR AA9 OR AA10 OR AA11 OR AA12 OR AA13 OR AA14 ORAA15 OR AA16 OR AA17 OR AA18 OR AA19 OR AA20 OR AA21 OR AA22 OR AA23 OR AA24 OR AA25 OR AA26 OR AA27 ORAA28 OR AA29 OR AA30 OR AA31 OR AA32 OR AA33 OR AA34 OR AA35 OR AA36 OR AA37 OR AA38 OR AA39 OR AA40 ORAA41 OR AA42 OR AA43 OR AA44 OR AA45 OR AA46 OR AA47 OR AA48 OR AA49 OR AA50 OR AA51 OR AA52 OR AA53 ORAA54 OR AA55 OR AA56 OR AA57 OR AA58 OR AA59 OR AA60 OR AA61 OR AA62 OR AA63 OR AA64 OR AA65 OR AA66 ORAA67 OR AA68 OR AA69 OR AA70 OR AA71 OR AA72 OR AA73 OR AA74 OR AA75 OR AA76 OR AA77 OR AA78 OR AA79 ORAA80 OR AA81 OR AA82 OR AA83 OR AA84 OR AA85 OR AA86 OR AA87 OR AA88 OR AA89 OR AA90 OR AA91 OR AA92 ORAA93 OR AA94 OR AA95 OR AA96 OR AA97 OR AA98 OR AA99 OR AA100 OR AA102 OR AA103 OR AA104 OR AA105 ORAA106 OR AA107 OR AA108 OR AA109 OR AA110 OR AA112 OR AA113 OR AA114 OR AA115 OR AA116 OR AA117 ORAA118 OR AA119 OR AA120;XG,COLORF0F0F0,LINETHICK3;。
狙击涨停板“盘中即时、通达信专用”(源码、说明、副图、贴图)(新增选股、警告)
狙击涨停板“盘中即时、通达信专用”(源码、说明、副图、贴图)(新增选股、警告)(★此方法不适用ST股的操作★)(此方法完全不需要技术和高难度的分析,只要熟练操作本软件自带的选股器和快捷键的使用)第一步:调整版面项目位置:把第4栏现价调为现量(调整方法是:在现价项目上点右键,在出现的方框里找到现量,点一下就移动到那里去了),把第5栏调为涨速,第6栏调为所属行业,第7栏调为现价。
第二步:工具——系统设置——设置1——多股同列数(根据自己显示屏大小设置9图或更多),工具栏位置(左或右)——确定第三步:设置K线主图(自定),副图指标(第一个用VOL-TDX 虚拟成交量,其它的自定)推荐一个主图公式一个副图公式:*************************************************************** *趋势分析(主图){趋势分析主图真正的阴阳线}STICKLINE(CLOSE>REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;STICKLINE(CLOSE>REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;STICKLINE(CLOSE=REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;STICKLINE(CLOSE=REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;STICKLINE(CLOSE<REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CLOSE<REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;STICKLINE(CLOSE<REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE<REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE<REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CLOSE<REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100> 100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COL OR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);STICKLINE((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1)),AA10,AA12,4,0),COLOR0080FF;STICKLINE((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1)),AA10,AA12,4,0),COLOR00FF00;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45上升'),COLORWHITE;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46; 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 ANDEE1;DRAWTEXT(FF1,(LOW* 0.99),'老鼠仓'),COLOR4080FF;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑马线:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH* 0.97),'▲大黑马'),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CRO SS(FF,MA15),(LOW * 0.99),'底背离'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA((CL OSE-VAR2)/(VAR3-VAR2)*4,4)*25;注意买:=IF((VAR4<10),80,100);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J<0,10,0); BDDD:=LLV(J,2)=LLV(J,8);买入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);DRAWTEXT(买入AND 注意买=100 AND 超跌=0,LOW,'短线'),COLOR8000FF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6), 6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(买=1,5),LOW-0.03,'拉升'),COLORFFDE00;*************************************************************** *备钱短买(副图)(使用方法:当图中黄红两柱靠得很近,涨幅在4%左右且虚拟量很大时,即时买入)VAR1:=(CLOSE*2+HIGH+LOW)/4;SK: EMA(VAR1,13)-EMA(VAR1,21);SD: EMA(SK,2);多方能量: 2*(SK-SD)*3.8, LINESTICK;空方能量:= (-2)*(SK-SD)*3.8, LINESTICK;强弱分界:= 0, CIRCLEDOT;STICKLINE(CROSS(SK,SD),SK,0,1,0),LINETHICK2,COLORRED;DRAWTEXT((CROSS(SK,SD)),SK,'←短买'),LINETHICK2,COLORRED;STICKLINE((CROSS(ZIG(3,8),REF(ZIG(3,8),1))),SK,0,1,0),LINET HICK2,COLORYELLOW;DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),SK,'←备钱'),LINETHICK2,COLORYELLOW;DRAWICON(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),SK,9);DRAWICON((CROSS(SK,SD)),SK,1);*****************************************************************图例 2011_06_02分析:K线图中第一副图指标,虚拟成交量是前日或前几日均量的1倍多,第二副图指标在前天出现黄柱备钱提示(此信号虽然含未来,但该股走势强于大盘,信号未消失),今天出现短买红柱提示,分时图中在10:00_10:05盘整,涨幅在3.25%,此时正是及时介入的买点。
通达信买点狙击副图 选股源码指标公式
VAR11:=MA(CLOSE,10);
VAR12:=MA(CLOSE,20);
VAR13:=VAR9<80 AND VAR10<78 AND SUM(VOL/CAPITAL,10)*125>=10 AND CLOSE/LLV(CLOSE,120)<=1.2 AND (CLOSE-LLV(CLOSE,15))/LLV(CLOSE,15)>=0.12 AND CLOSE/OPEN>1.02 AND VAR11>VAR12;
VAR2:=REF(CLOSE,1);
VAR3:=SMA(MAX(CLOSE-VAR2,0),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100;
VAR4:=COUNT(VAR3<M,20)>=1;
VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);
低位狙击:VAR1>9 AND VAR4 OR VAR7 OR VAR13,COLORRED;
VAR14:=EXIST(低位狙击,6) AND BARSCOUNT(低位狙击)>=8 AND C/REF(L,2)<0.97 AND NOT(C>O);
VAR15:=FILTER(VAR14,10);
补仓救援:IF(VAR15,0.6,0),COLORBBBBBB;
分享源码绝对无未来的指标过去一年的k线图供大家参考出票不多个个稳赢第一点买不上还有补仓点详情看下面图示好指标用来分享的大家同赚var1
通达信主升浪狙击100%准确通达信指标公式源码
通达信主升浪狙击100%准确副图源码如下:MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA20:=MA(CLOSE,20);A1:=IF(C>=MA5,1,-1);A2:=IF(C>=MA10,1,-1);A3:=IF(C>=MA20,1,-1);A4:=IF(MA5>=REF(MA5,1),1,-1);A5:=IF(MA10>=REF(MA10,1),1,-1);A6:=IF(MA20>=REF(MA20,1),1,-1);趋势:(A1+A2+A3+A4+A5+A6)/6*100,COLOR00FF00;主升浪:趋势>=50,COLOR0000FF,POINTDOT,NODRAW;↓:趋势<50,COLORFFFFFF,POINTDOT,NODRAW;周期:IF(主升浪,BARSLAST(CROSS(主升浪,0.1))+1,0),COLORFF00FF,POINTDOT,NODRAW;临界:IF(CROSS(98,趋势),1,0),COLOR00FF00,POINTDOT,NODRAW; WKQY:=BARSLAST(CROSS(50,趋势))<MIN(BARSLAST(CROSS(趋势,1)),BARSLAST(CROSS(趋势,-1)));挖坑:BETWEEN(趋势,-1,50) AND WKQY,COLOR00FFFF,POINTDOT,NODRAW; {以下设置副图显示方式}DRAWBAND(趋势,RGB(250,0,0),50,RGB(0,0,0));AA:=IF(挖坑,趋势,50);DRAWBAND(50,RGB(250,250,0),AA,RGB(0,0,0));STICKLINE(主升浪,周期*0.8,周期*0.95,3,0),COLOR0000FF;STICKLINE(主升浪,周期*1.05,周期*1.2,3,0),COLOR0000FF;STICKLINE(主升浪AND C<REF(C,1),周期*0.9,周期*1.1,3,1),COLORFFFFFF; STICKLINE(CROSS(主升浪,0.1),0,100,0,-1),COLOR0000FF;DRAWTEXT(临界,90,'☆'),COLOR00FF00;平:0,COLORFFFFFF;STICKLINE(C>0,50,50,1,0),COLOR000000;%:趋势,COLOR00FF00;{以下设置文字提示部分}DRAWTEXT(CURRBARSCOUNT=60,20,'====★趋势为王.顺势而为!★===='),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=58,-30,'■只做主升, 挖坑低吸!'),COLORFFFFFF; DRAWTEXT(CURRBARSCOUNT=58,-60,'●临界不涨, 逢高离场!'),COLOR00FFFF;。
通达信指标公式源码强势选股副图
通达信指标公式源码强势选股副图做价值的传播者,一路同行,一起成长问题:怎样才能每天都收到这类文章!答案:只需点击上方《通达信公式指标》M2:=EMA(CLOSE,8);M3:=EMA(M2,13);VAR1:=EMA(M3,55);VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;A7:=(2*C+H+L)/4;SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);买进:=COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1);CD:=MA(CLOSE,80)-MA(CLOSE,10)/3;抄底:=CLOSE<CD AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3;{ZF:=(C-REF(C,1))/REF(C,1)*100;涨停:=ZF>9.9;}DIFF:=EMA(C,5)-EMA(C,20);DEA:=EMA(DIFF,10);MACD:=600*(DIFF-DEA)/EMA(C,30);RSV:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;RSV1:=MA(RSV,2);左手:=CROSS(RSV,RSV1);秋天:=(H-L)/REF(C,1)>=7/100;梦想:=HSL>=3/100;梦:=REF(CLOSE,2)/REF(OPEN,2) < 0.95 ANDREF(OPEN,1) < REF(CLOSE,2) ANDABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2) AND 左手AND 秋天 AND 梦想;XG:买进 OR 抄底 OR 梦 {OR 涨停};风险提示:本指标公式仅作为知识分享,不构成任何投资建议,不作投资依据。
通达信指标公式源码百发百中(副图 源码 通达信)
百发百中(副图源码通达信)BIAS1W :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIAS2W :=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;BIAS3W :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;MM:=(BIAS1W+2*BIAS2W+3*BIAS3W)/6;MN:=MA(MM,3);VAR24:=LLV(LOW,36);VAR25:=HHV(HIGH,30);VAR26:=EMA((CLOSE-VAR24)/(VAR25-VAR24)*4,4)*25;底背离:IF(MN<-4 ,17,0),COLORA67D3D,LINETHICK3;顶背离: IF((VAR26>90),17,0), COLOR6B238E,LINETHICK3;IF(MN<-4 ,12,0),COLORBLACK,LINETHICK3;IF((VAR26>90),12,0), COLORBLACK,LINETHICK3;DRAWTEXT(底背离,6,'底背离'),COLORA67D3D;DRAWTEXT(顶背离,6,'顶背离'),COLORGREEN;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单:IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA (SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STI CK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,38,'下单!'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);{}乖离:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,6,0),COLORYELLOW; DRAWTEXT(乖离,18,'低买'),COLORRED;TRJ:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW -REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) / TRJ);辅助线:=((DMM * 100) / TRJ);动向趋势线:=(MA(((ABS((辅助线- 神偷线)) / (辅助线+ 神偷线)) * 100),3)); ADXR:=((动向趋势线+ REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100); 快买:( IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF; ( IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF; DRAWTEXT(快买,60,'准备'),COLORFF00FF;MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA30:=EMA(C,30);MA55:=EMA(C,5 5);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA30);L1:=MIN(MIN(MA5,MA1 3),MA30);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:LLV(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-10,'地量'),COLORRED;DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00; DRAWTEXT(A1,-10,'W底'),COLORYELLOW;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);V1:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(V1,28,0),COLORYELLOW,LINETHICK2;IF(V1,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(V1,28,'买点'),COLORRED;AA05:=MA(C,5);五日乖离率:=(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);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);{}三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1); (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;强势狙击选股: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) ;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;青云直上选股:IF(FILTER(MR,10),30,0),COLORYELLOW,LINETHICK2;IF(FILTER(MR,10),20,0),COLORYELLOW,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUAN:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<= -28 AND(CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19 AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 ANDIF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-L LV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUAN,88,'弱市百发百中'),COLORFFFF00;IF(QUAN,88,0),COLORFFFF00,LINETHICK2;IF(QUAN,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,100,AMOUNT/C/HHV(AMOUNT ,9)/HHV(C,9)*100);DD:=CC/BB;顶部雷达:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶'),COLORGREEN;。
通达信指标公式源码通达信狙击主力主图指标 源码
通达信狙击主力主图指标源码AMV0:=VOL*(O+C)/2;CG:MA(C,3),COLORFFCC66,LINETHICK2;FL:=HHV(CG,2);黄金线:HHV(CG,2),COLOR00FF00;FS:CG-(FL-CG),COLORRED,LINETHICK2;十:MA(C,13),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COL ORRED,LINETHICK2;平:IF(MA(CLOSE,13)=REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COL OR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,13)<REF(MA(CLOSE,13),1),MA(CLOSE,13),DRAWNULL),COL ORGREEN,LINETHICK2;DRAWTEXT(平=十,十*0.998-0.01,'关注'),COLORCYAN;TY:=C;A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10);C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;STICKLINE(T1,A,A,9,0),COLORFF00FF;波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;STICKLINE(T2,B,B,9,0),COLOR80FF00;VAR3:=LLV(HIGH,240);VAR4:=100*(CLOSE-VAR3)/VAR3;VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0;VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE ,1)),7,1)*100;VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE ,1)),13,1)*100;VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+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(CLOSE,2)-EMA(CLOSE,150);买1:=VAR10;{}买2:=(VAR11+VAR13+VAR15+VAR17);卖1:=(VAR12+VAR14+VAR16+VAR18);DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN; DRAWTEXT(卖1>0,HIGH*1.02,'卖'),COLORGREEN;{股灵吧决策}VAR100:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) -LLV(LOW,20))));VAR200:=(100 - ((90 * (HHV(HIGH,20) - CLOSE)) / (HHV(HIGH,20) -LLV(LOW,20))));VAR300:=(100 - MA(((100 * (HHV(HIGH,5) - CLOSE)) / (HHV(HIGH,5) -LLV(LOW,5))),34));X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(9,17,8)<REF("MACD.MACD"(9,17,8),1);STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;生命线:MA(CLOSE,43),LINETHICK3,COLORWHITE;AA1:=MA(C,5);BB1:=MA(C,15);AF:=CROSS(AA1,BB1);STICKLINE(AF,LLV(L,4),LLV(L,4),50,1),COLORRED,LINETHICK3; DRAWTEXT(AF,LLV(L,4),'止损线'),COLORYELLOW;VAR01:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-RE F(CLOSE,1))),25);VAR02:=HIGH-REF(HIGH,1);VAR03:=REF(LOW,1)-LOW;VAR04:=SUM(IF(VAR02>0 AND VAR02>VAR03,VAR02,0),25);VAR05:=SUM(IF(VAR03>0 AND VAR03>VAR02,VAR03,0),25);VAR06:=VAR04*100/VAR01;VAR07:=VAR05*100/VAR01;VAR08:=MA(ABS(VAR07-VAR06)/(VAR07+VAR06)*100,15);VAR09:=(VAR08+REF(VAR08,15))/2;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)*10 0;DRAWICON(IF(CROSS(76,VAR28),1,0),H*1.03,5);DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 ANDEMA(CLOSE,12)/LOW>1.15,5),LOW,'☆'),LINETHICK7 , COLORFF00FF;VARA:=((AMOUNT)/(VOL))/(100);VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);VARC:=((SUM(AMOUNT,7))/(VARA))/(100);VARD:=DMA(VARB,(VOL)/(VARC));VARE:=((CLOSE-VARD)/(VARD))*(100);VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ:=MA(VARE,20)+STD(VARE,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA:=SMA(VARF,3,1);SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>79); DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>SS),H*1.02,'☆卖'),LINETHICK7,COLORGREEN;VAR31:=ZIG(3,10)<REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)>REF(ZIG(3,10),2);{ZIG 有未来}VAR32:=ZIG(3,10)>REF(ZIG(3,10),1) ANDREF(ZIG(3,10),1)<REF(ZIG(3,10),2);STICKLINE(VAR31,C,O,1,0),COLORYELLOW,LINETHICK2;{高位黄色} STICKLINE(VAR31,C,O,1,0),COLORYELLOW,LINETHICK2;{高位黄色} STICKLINE(VAR31,H,L,1,0),COLORYELLOW,LINETHICK2;{高位黄色} STICKLINE(VAR32,C,O,1,0),COLORFF00FF,LINETHICK2;{底位红色} STICKLINE(VAR32,C,O,1,0),COLORFF00FF,LINETHICK2;{底位红色} STICKLINE(VAR32,H,L,1,0),COLORFF00FF,LINETHICK2;{底位红色};。
CCI副图选股通达信指标公式源码
通达信CCI指标的改良版,个人觉得有点用处,特分享一下!CCI中文译名为:随顺市势指标。
它属于超买超卖指标中较特殊的一种。
波动于广向正值无限大和微向负值无限小之间。
本指标专门用以测量股价是否已超出常态分布范围。
日线CCI反应敏感,适合短线强势股!好了如你不满意任你修改,希望幸运的有缘人能发现下一个翻倍的牛股600149廊坊发展000935四川双马!{副图}TYP:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O AND O<=C),CLOSE,LOW)/3;游侠CCI:EMA((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2.0332),COLOR WHITE;粉低吸:EVERY(游侠CCI<-150 AND 游侠CCI<REF(游侠CCI,1),3),NODRAW; STICKLINE(游侠CCI<-150,游侠CCI,-150,2,0),COLORFF80FF;STICKLINE(C>0,-150,-151,2,0),COLORBLUE;分界:100;DRAWICON(CROSS(游侠CCI,100),100,1);{红箭头选股}TYP:=IF((H>C AND C>O) OR (H>O AND O>=C),C,H)+IF((L<C AND C<O) OR(L<O ANDO<=C),CLOSE,LOW)/3;游侠CCI:=EMA((TYP-MA(TYP,36.0270012))/(0.015*AVEDEV(TYP,36.0270012)),2.0332); 选股:CROSS(游侠CCI,100);。