短线吧二维码

短线吧:最齐全的短线炒股资料站!

首页 > 股票公式 > 好用的顶底背离提示指标

好用的顶底背离提示指标

会员等级:普通会员及以上会员

资料大小:11.98 KB

更新时间:2021-05-14 08:25:16

相关内容:金钻指标 抄底指标 底背离 顶背离

百度云提取码:

  • 软件介绍

  • 网友评论
  • 下载地址



指标说明


在各类技术指标中,指标的顶底背离还是比较好用的,当然,不能简单的出现一次背离就确定买卖点,比如MACD多周期顶底背离和多重顶底背离的准确率还是比较高的,60分钟目前背离,30分钟目前也背离,那么股票的背离比较有效,今天找到一个好用的顶底背离指标,导入后,能显示MACD、RSI、DMI的顶底背离,而且文字提示,方便大家确定。


指标截图


好用的顶底背离指标.png_oss.png


好用的顶底背离指标.png_oss.png


指标源码


{公式名称: 结构背离

公式描述: 

无参数

公式类型: 技术指标公式-其他类型

画线方法: 副图

公式版本: 0

显示小数: 缺省位数

坐标线位置: 自动

额外Y轴分界: 无


参数精灵:无

用法注释:无

公式源码:}

DIF:100*(EMA(CLOSE,12)-EMA(CLOSE,26));

DEA:EMA(DIF,9);

MACD:(DIF-DEA)*2,COLORSTICK;

X_1:=CROSS(DEA,DIF);

X_2:=BARSLAST(X_1);

X_3:=REF(BARSLAST(X_1),X_2+1);

X_4:=REF(BARSLAST(X_1),X_3+X_2+2);

X_5:=LLV(CLOSE,X_2+1);

X_6:=LLV(DIF,X_2+1);

X_7:=REF(X_5,X_2+1);

X_8:=REF(X_6,X_2+1);

X_9:=REF(X_7,X_2+1);

X_10:=REF(X_8,X_2+1);

X_11:=IF(X_8>0,INTPART(LOG(X_8))-1,INTPART(LOG(-X_8))-1);

X_12:=INTPART(X_8/POW(10,X_11));

X_13:=IF(X_10>0,INTPART(LOG(X_10))-1,INTPART(LOG(-X_10))-1);

X_14:=INTPART(X_10/POW(10,X_13));

X_15:=INTPART(DIF/POW(10,X_11));

X_16:=INTPART(DIF/POW(10,X_13));

X_17:=X_5<X_7 AND X_15>X_12 AND (MACD<0 AND REF(MACD,1)<0) AND X_15<=REF(X_15,1);

X_18:=X_5<X_9 AND X_9<X_7 AND X_16>X_14 AND (MACD<0 AND REF(MACD,1)<0) AND X_16<=REF(X_16,1);

X_19:=X_17 OR X_18;

X_20:=(X_15>REF(X_15,1))*REF(X_17,1) OR (X_16>REF(X_16,1))*REF(X_18,1);

X_21:=REF(X_17,1) AND X_6<=X_8 OR (REF(X_18,1) AND X_6<=X_10);

STICKLINE(X_19 OR X_20,DIF,DEA,8,0),COLORRED;

DRAWTEXT(X_19 AND COUNT(X_19,2)=1,DIF*1.5,'钝化'),COLORYELLOW;

DRAWTEXT(FILTER(X_20,10),DIF*1.5,'结构形成'),COLORMAGENTA;

DRAWTEXT(FILTER(X_21,10),DIF+MACD,'消失'),COLORGREEN;

STICKLINE(X_20,0,DIF+DEA,5,0),COLORRED;

X_22:=CROSS(DIF,DEA);

X_23:=BARSLAST(X_22);

X_24:=REF(BARSLAST(X_22),X_23+1);

X_25:=REF(BARSLAST(X_22),X_24+X_23+2);

X_26:=HHV(CLOSE,X_23+1);

X_27:=HHV(DIF,X_23+1);

X_28:=REF(X_26,X_23+1);

X_29:=REF(X_27,X_23+1);

X_30:=REF(X_28,X_23+1);

X_31:=REF(X_29,X_23+1);

X_32:=IF(X_29>0,INTPART(LOG(X_29))-1,INTPART(LOG(-X_29))-1);

X_33:=INTPART(X_29/POW(10,X_32));

X_34:=IF(X_31>0,INTPART(LOG(X_31))-1,INTPART(LOG(-X_31))-1);

X_35:=INTPART(X_31/POW(10,X_34));

X_36:=INTPART(DIF/POW(10,X_32));

X_37:=INTPART(DIF/POW(10,X_34));

X_38:=X_26>X_28 AND X_36<X_33 AND (MACD>0 AND REF(MACD,1)>0) AND X_36>=REF(X_36,1);

X_39:=X_26>X_30 AND X_30>X_28 AND X_37<X_35 AND (MACD>0 AND REF(MACD,1)>0) AND X_37>=REF(X_37,1);

X_40:=X_38 OR X_39;

X_41:=(X_36<REF(X_36,1))*REF(X_38,1) OR (X_37<REF(X_37,1))*REF(X_39,1);

X_42:=REF(X_38,1) AND X_27>=X_29 OR (REF(X_39,1) AND X_27>=X_31);

STICKLINE(X_41,0,DIF+DEA,5,0),COLORGREEN;

STICKLINE(X_40 OR X_41,DIF,DEA,8,0),COLORGREEN;

DRAWTEXT(FILTER(X_41,20),DIF*1.4,'371'),COLORMAGENTA;

DRAWTEXT(FILTER(X_42,20),DIF+MACD,'消失'),COLORGREEN;

底:(-50);

顶:50;

X_43:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);

X_44:=HIGH-REF(HIGH,1);

X_45:=REF(LOW,1)-LOW;

X_46:=SUM(IF(X_44>0 AND X_44>X_45,X_44,0),14);

X_47:=SUM(IF(X_45>0 AND X_45>X_44,X_45,0),14);

X_48:=X_46*100/X_43;

X_49:=X_47*100/X_43;

X_50:=BARSLAST(REF(CROSS(MACD.DIF(12,26,9),MACD.DEA(12,26,9)),1));

X_51:=REF(CLOSE,X_50+1)>CLOSE AND REF(MACD.DIF(12,26,9),X_50+1)<MACD.DIF(12,26,9) AND CROSS(MACD.DIF(12,26,9),MACD.DEA(12,26,9));

X_52:=BARSLAST(REF(CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3)),1));

X_53:=REF(CLOSE,X_52+1)>CLOSE AND REF(KDJ.K(9,3,3),X_52+1)<KDJ.K(9,3,3) AND CROSS(KDJ.K(9,3,3),KDJ.D(9,3,3));

X_54:=BARSLAST(REF(CROSS(RSI.RSI1(6,12,24),RSI.RSI2(6,12,24)),1));

X_55:=REF(CLOSE,X_54+1)>CLOSE AND REF(RSI.RSI1(6,12,24),X_54+1)<RSI.RSI1(6,12,24) AND CROSS(RSI.RSI1(6,12,24),RSI.RSI2(6,12,24));

X_56:=BARSLAST(REF(CROSS(MACD.DEA(12,26,9),MACD.DIF(12,26,9)),1));

X_57:=REF(CLOSE,X_56+1)<CLOSE AND REF(MACD.DIF(12,26,9),X_56+1)>MACD.DIF(12,26,9) AND CROSS(MACD.DEA(12,26,9),MACD.DIF(12,26,9));

X_58:=BARSLAST(REF(CROSS(KDJ.D(9,3,3),KDJ.K(9,3,3)),1));

X_59:=REF(CLOSE,X_58+1)<CLOSE AND REF(KDJ.K(9,3,3),X_58+1)>KDJ.K(9,3,3) AND CROSS(KDJ.D(9,3,3),KDJ.K(9,3,3));

X_60:=BARSLAST(REF(CROSS(RSI.RSI2(6,12,24),RSI.RSI1(6,12,24)),1));

X_61:=REF(CLOSE,X_60+1)<CLOSE AND REF(RSI.RSI1(6,12,24),X_60+1)>RSI.RSI1(6,12,24) AND CROSS(RSI.RSI2(6,12,24),RSI.RSI1(6,12,24));

X_62:=BARSLAST(REF(CROSS(X_49,X_48),1));

X_63:=REF(CLOSE,CLOSE+1)<CLOSE AND REF(X_49,X_62+1)>X_49 AND CROSS(X_49,X_48);

X_64:=BARSLAST(REF(CROSS(X_48,X_49),1));

X_65:=REF(CLOSE,X_64+1)>CLOSE AND REF(X_48,X_64+1)<X_48 AND CROSS(X_48,X_49);

DMI底背:IF(X_65>0,(-50),0),POINTDOT,COLOR0099FF;

DRAWTEXT(X_65>0,(-5),'DMI底背'),COLOR0099FF;

DMI顶背:IF(X_63>0,50,0),POINTDOT,COLORBLUE;

DRAWTEXT(X_63>0,15,'265'),COLORBLUE;

MACD底背:IF(X_51>0,(-50),0),POINTDOT,COLORRED;

DRAWTEXT(X_51>0,(-15),'266'),COLORRED;

KDJ底背:IF(X_53>0,(-50),0),POINTDOT,COLORMAGENTA;

DRAWTEXT(X_53>0,(-25),'267'),COLORMAGENTA;

RSI底背:IF(X_55>0,(-50),0),POINTDOT,COLORYELLOW;

DRAWTEXT(X_55>0,(-35),'RSI底背'),COLORYELLOW;

MACD顶背:IF(X_57>0,50,0),POINTDOT,COLORGREEN;

DRAWTEXT(X_57>0,25,'MACD顶背'),COLORGREEN;

KDJ顶背:IF(X_59>0,50,0),POINTDOT,COLORFFCC66;

DRAWTEXT(X_59>0,35,'270'),COLORFFCC66;

RSI顶背:IF(X_61>0,50,0),POINTDOT,COLORWHITE;

DRAWTEXT(X_61>0,45,'RSI背离'),COLORWHITE;

STICKLINE(X_51>0,(-50),0,0,0),COLORRED;

STICKLINE(X_53>0,(-50),0,0,0),COLORMAGENTA;

STICKLINE(X_55>0,(-50),0,0,0),COLORYELLOW;

STICKLINE(X_57>0,50,0,0,0),COLORGREEN;

STICKLINE(X_59>0,50,0,0,0),COLORFFCC66;

STICKLINE(X_61>0,50,0,0,0),COLORWHITE;

STICKLINE(X_65>0,(-50),0,0,0),COLOR0099FF;

STICKLINE(X_63>0,50,0,0,0),COLORBLUE;

MA6:MA(CLOSE,6),NODRAW,COLORYELLOW,LINETHICK2;

操作均线:EMA(CLOSE,20),NODRAW,COLORYELLOW;

红升:IF(操作均线>REF(操作均线,1),操作均线,DRAWNULL),NODRAW,COLORRED,LINETHICK4;

绿降:IF(操作均线<REF(操作均线,1),操作均线,DRAWNULL),NODRAW,COLORCYAN,LINETHICK4;

趋势线:EMA(CLOSE,50),NODRAW,COLORYELLOW,LINETHICK2;

红升2:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),POINTDOT,COLORRED,LINETHICK4;

绿降2:IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),POINTDOT,COLORCYAN,LINETHICK4;

买:IF(MA6>REF(MA6,1),MA6,DRAWNULL),NODRAW,COLORRED,LINETHICK2;

卖:IF(MA6<REF(MA6,1),MA6,DRAWNULL),NODRAW,COLORCYAN,LINETHICK2;

X_66:=240/FROMOPEN;

X_67:=X_66;

X_68:=EMA(CLOSE,12)-EMA(CLOSE,26);

X_69:=EMA(X_68,9);

X_70:=X_68-X_69;

X_71:=IF(X_70,LLV(LOW,21),DRAWNULL);

X_72:=HHV(HIGH,80)*0.99;

X_73:=CONST(X_72);

X_74:=LLV(X_71,80);

X_75:=CONST(X_74);

X_76:=MA(CLOSE,20);

X_77:=CLOSE>MA(CLOSE,5);

X_78:=MA(CLOSE,5)>MA(CLOSE,10);

X_79:=CLOSE>MA(CLOSE,10);

X_80:=MA(CLOSE,5)>MA(CLOSE,20);

X_81:=CLOSE>MA(CLOSE,20);

X_82:=REF(X_76,1);

X_83:=X_76>X_82;

X_84:=IF(X_77,10,0-10)+IF(X_78,10,0-10)+IF(X_79,10,0-10)+IF(X_80,10,0-10)+IF(X_81,10,0-10)+IF(X_83,10,0-10);

X_85:=CLOSE/INDEXC;

X_86:=MA(X_85,5);

X_87:=MA(X_85,10);

X_88:=MA(VOL,5);

X_89:=MA(VOL,10);

X_90:=CONST(IF(X_84>0,200,100));

X_91:=CONST(IF(X_84>0,0,100));

X_92:=CONST(IF(X_84>0,100,100));

X_93:=X_73;

X_94:=X_75;

X_95:=X_73;

X_96:=CONST(IF(CROSS(X_84,1) AND X_88>=X_89 AND X_85>=X_86,1,0));

X_97:=CONST(IF(CROSS(X_84,1) AND X_88<X_89 AND X_85>=X_86,1,0));

X_98:=CONST(IF(CROSS(X_84,1) AND X_88>X_89 AND X_85<X_86,1,0));

X_99:=CONST(IF(CROSS(X_84,1) AND X_88<=X_89 AND X_85<X_86,1,0));

X_100:=CONST(IF(CROSS(1,X_84) AND X_88>=X_89 AND X_85>=X_86,1,0));

X_101:=CONST(IF(CROSS(1,X_84) AND X_88<X_89 AND X_85>=X_86,1,0));

X_102:=CONST(IF(CROSS(1,X_84) AND X_88>=X_89 AND X_85<X_86,1,0));

X_103:=CONST(IF(CROSS(1,X_84) AND X_88<X_89 AND X_85<X_86,1,0));

X_104:=CONST(IF(X_84>=1 AND REF(X_84,1)>0 AND X_88>=X_89 AND X_85>=X_86,1,0));

X_105:=CONST(IF(X_84>=1 AND REF(X_84,1)>0 AND X_88<X_89 AND X_85>=X_86,1,0));

X_106:=CONST(IF(X_84>=1 AND REF(X_84,1)>0 AND X_88>=X_89 AND X_85<X_86,1,0));

X_107:=CONST(IF(X_84>=1 AND REF(X_84,1)>0 AND X_88<X_89 AND X_85<X_86,1,0));

X_108:=CONST(IF(X_84<1 AND REF(X_84,1)<0 AND X_88>=X_89 AND X_85>=X_86,1,0));

X_109:=CONST(IF(X_84<1 AND REF(X_84,1)<0 AND X_88<X_89 AND X_85>=X_86,1,0));

X_110:=CONST(IF(X_84<1 AND REF(X_84,1)<0 AND X_88>=X_89 AND X_85<X_86,1,0));

X_111:=CONST(IF(X_84<1 AND REF(X_84,1)<0 AND X_88<X_89 AND X_85<X_86,1,0));

X_112:=CONST(IF(CROSS(X_84,1) AND X_88>=X_89,1,0));

X_113:=CONST(IF(CROSS(X_84,1) AND X_88<X_89,1,0));

X_114:=CONST(IF(CROSS(1,X_84) AND X_88>=X_89,1,0));

X_115:=CONST(IF(CROSS(1,X_84) AND X_88<X_89,1,0));

X_116:=CONST(IF(X_84>=1 AND REF(X_84,1)>0 AND X_88>=X_89,1,0));

X_117:=CONST(IF(X_84>=1 AND REF(X_84,1)>0 AND X_88<X_89,1,0));

X_118:=CONST(IF(X_84<1 AND REF(X_84,1)<0 AND X_88>=X_89,1,0));

X_119:=CONST(IF(X_84<1 AND REF(X_84,1)<0 AND X_88<X_89,1,0));

X_120:=(HIGH-LOW)*1000000/(VOL*X_67);

X_121:=X_120>=REF(X_120,1) AND VOL*X_67>=REF(VOL,1);

X_122:=CONST(X_121);

X_123:=X_120<REF(X_120,1) AND VOL*X_67<REF(VOL,1);

X_124:=CONST(X_123);

X_125:=X_120>=REF(X_120,1) AND VOL*X_67<REF(VOL,1);

X_126:=CONST(X_125);

X_127:=X_120<REF(X_120,1) AND VOL*X_67>=REF(VOL,1);

X_128:=CONST(X_127);

X_129:=(HIGH+LOW+CLOSE)/3;

X_130:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));

X_131:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-X_129);

X_132:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);

X_133:=IF(HIGH=LOW,1,X_129-MIN(CLOSE,OPEN));

X_134:=VOL/IF(HIGH=LOW,4,HIGH-LOW);

X_135:=X_130*X_134;

X_136:=X_131*X_134;

X_137:=X_132*X_134;

X_138:=X_133*X_134;

X_139:=DYNAINFO(23)*X_67;

X_140:=DYNAINFO(22)*X_67;

X_141:=IF(ISLASTBAR AND CLOSE>300,(X_138+X_137)*X_66,X_138+X_137);

X_142:=IF(ISLASTBAR AND CLOSE>300,(X_135+X_136)*X_66,X_135+X_136);

X_143:=IF(ISLASTBAR AND PERIOD=5 AND CLOSE<300,X_139,X_141);

X_144:=IF(ISLASTBAR AND PERIOD=5 AND CLOSE<300,X_140,X_142);

X_145:=(X_144+X_143)/REF(VOL,1)>2;

X_146:=CONST(X_145);

X_147:=REF(VOL,1)/(X_144+X_143)>1.5;

X_148:=CONST(X_147);

X_149:=(X_144-X_143)/X_143>0.4;

X_150:=CONST(X_149);

X_151:=(X_143-X_144)/X_144>0.4;

X_152:=CONST(X_151);

X_153:=IF(X_96=1,0.06+0.06,0.06);

X_154:=IF(X_97=1,X_153+0.06,X_153);

X_155:=IF(X_98=1,X_154+0.06,X_154);

X_156:=IF(X_99=1,X_155+0.06,X_155);

X_157:=IF(X_100=1,X_156+0.06,X_156);

X_158:=IF(X_101=1,X_157+0.06,X_157);

X_159:=IF(X_102=1,X_158+0.06,X_158);

X_160:=IF(X_103=1,X_159+0.06,X_159);

X_161:=IF(X_104=1,X_160+0.06,X_160);

X_162:=IF(X_105=1,X_161+0.06,X_161);

X_163:=IF(X_106=1,X_162+0.06,X_162);

X_164:=IF(X_107=1,X_163+0.06,X_163);

X_165:=IF(X_108=1,X_164+0.06,X_164);

X_166:=IF(X_109=1,X_165+0.06,X_165);

X_167:=IF(X_110=1,X_166+0.06,X_166);

X_168:=IF(X_111=1,X_167+0.06,X_167);

X_169:=IF(X_112=1,X_168+0.06,X_168);

X_170:=IF(X_113=1,X_169+0.06,X_169);

X_171:=IF(X_114=1,X_170+0.06,X_170);

X_172:=IF(X_115=1,X_171+0.06,X_171);

X_173:=IF(X_116=1,X_172+0.06,X_172);

X_174:=IF(X_117=1,X_173+0.06,X_173);

X_175:=IF(X_118=1,X_174+0.06,X_174);

X_176:=IF(X_119=1,X_175+0.06,X_175);

X_177:=IF(X_122=1,X_176+0.06,X_176);

X_178:=IF(X_124=1,X_177+0.06,X_177);

X_179:=IF(X_126=1,X_178+0.06,X_178);

X_180:=IF(X_128=1,X_179+0.06,X_179);

X_181:=IF(X_146=1,X_180+0.03,X_180);

X_182:=IF(X_148=1,X_181+0.03,X_181);

X_183:=IF(X_150=1,X_182+0.03,X_182);

X_184:=IF(X_152=1,X_183+0.03,X_183);

DRAWTEXT_FIX(X_96=1,0.1,0,0,'373'),COLORMAGENTA;

DRAWTEXT_FIX(X_97=1,0.1,0,0,'374'),COLORMAGENTA;

DRAWTEXT_FIX(X_98=1,0.1,0,0,'375'),COLORMAGENTA;

DRAWTEXT_FIX(X_99=1,0.1,0,0,'376'),COLORMAGENTA;

DRAWTEXT_FIX(X_100=1,0.1,0,0,'377'),COLORYELLOW;

DRAWTEXT_FIX(X_101=1,0.1,0,0,'378'),COLORYELLOW;

DRAWTEXT_FIX(X_102=1,0.1,0,0,'379'),COLORWHITE;

DRAWTEXT_FIX(X_103=1,0.1,0,0,'380'),COLORCYAN;

DRAWTEXT_FIX(X_104=1,0.1,0,0,'该股形态良好,强势明显,量能充足,可以维续持有'),COLORYELLOW;

DRAWTEXT_FIX(X_105=1,0.1,0,0,'93'),COLORYELLOW;

DRAWTEXT_FIX(X_106=1,0.1,0,0,'381'),COLORWHITE;

DRAWTEXT_FIX(X_107=1,0.1,0,0,'382'),COLORCYAN;

DRAWTEXT_FIX(X_108=1,0.1,0,0,'总势趋势不明:注意成交量变化,目前暂不适宜进场。'),COLORCYAN;

DRAWTEXT_FIX(X_109=1,0.1,0,0,'384'),COLORCYAN;

DRAWTEXT_FIX(X_110=1,0.1,0,0,'385'),COLORCYAN;

DRAWTEXT_FIX(X_111=1,0.1,0,0,'386'),COLORWHITE;

DRAWTEXT_FIX(X_112,0.1,0.05,0,'387'),COLORGREEN;

DRAWTEXT_FIX(X_113,0.1,0.05,0,'388'),COLORMAGENTA;

DRAWTEXT_FIX(X_114,0.1,0.05,0,'389'),COLORAAAAAA;

DRAWTEXT_FIX(X_115,0.1,0.05,0,'390'),COLORWHITE;

DRAWTEXT_FIX(X_116,0.1,0.05,0,'总势走势良好,量能理想,可继续持有或加仓强势股。'),COLORYELLOW;

DRAWTEXT_FIX(X_117,0.1,0.05,0,'392'),COLORGREEN;

DRAWTEXT_FIX(X_118,0.1,0.05,0,'总势趋势不明:注意成交量变化,目前暂不适宜进场。'),COLORWHITE;

DRAWTEXT_FIX(X_119,0.1,0.05,0,'394'),COLORWHITE;

DRAWTEXT_FIX(X_122,0.1,0.1,0,'395'),COLORWHITE;

DRAWTEXT_FIX(X_124,0.1,0.1,0,'[衰退]实计交易量减少。MFI促进指数减少。'),COLORGREEN;

DRAWTEXT_FIX(X_126,0.1,0.1,0,'[伪装] 实计交易里减少。MFI促进指数增加 。'),COLORGREEN;

DRAWTEXT_FIX(X_128,0.1,0.1,0,'398'),COLORYELLOW;

DRAWTEXT_FIX(X_146,0.1,0.15,0,'399'),COLORGREEN;

DRAWTEXT_FIX(X_148,0.1,0.15,0,'★今天比昨天的成交里缩量一半以上。'),COLORYELLOW;

DRAWTEXT_FIX(X_150,0.1,0.2,0,'401'),COLORGREEN;

DRAWTEXT_FIX(X_152,0.1,0.2,0,'该股今天买入重大于卖出童40%以上。'),COLORYELLOW;

DRAWTEXT_FIX(1,0.00,0.00,0,'短线吧,更多精品短线公式登陆 137110.CN 下载'),COLORRED;


注意事项


1、如果下载后,不知道如何导入此指标,点这里查看《通达信公式导入教程》。

2、技术指标的准确率尽管极高,但并不等于100%成功。

3、本股票指标完全不包括未来函数,信号不消失。

4、不管什么样票,必须设定止损点!


你喜欢这个资料么?

已有 人觉得有帮助

去收藏

  •  下载地址

万0.85免5开户送会员
下载地址3

分类导航

  • 热门标签