顶部反转预判指标公式源码[其他软件公式]
这个公式的思路是通过比较PDI和MDI的大小和变化来判断股票的强弱和买卖信号。一般来说,当PDI大于MDI时,表示股票处于上涨趋势,可以考虑买入或持有;当PDI小于MDI时,表示股票处于下跌趋势,可以考虑卖出或观望。
此外,这个公式还设置了一些特殊情况来识别股票的反转、背离、小心等信号。例如,当MDI突然增大而PDI下降时,可能预示着股票即将反转下跌;当股价创新高而PDI没有创新高时,可能存在着顶部背离的风险;当PDI低于一定阈值时,可能需要小心股价的回调等等。
具体操作建议如下:
当出现“巨反转”或“反转”的信号时,应该及时止盈或止损,并观察后续走势。
当出现“小心”或“背离”的信号时,应该谨慎操作,并注意风险控制。
当出现“上”或“?上”的信号时,可以适当加仓或开仓,并跟随趋势。
当没有明显信号时,可以按照PDI和MDI的相对大小和变化来调整仓位。
TR1 := SUM(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(L-REF(C,1))),N);
HD := H-REF(H,1);
LD := REF(L,1)-L;
DMP:= SUM(IF(HD>0 ,HD,0),N);
DMM:= SUM(IF(LD>0 ,LD,0),N);
PDI: DMP*100/TR1,colorwhite;
MDI: DMM*100/TR1,coloryellow;
反转:=ref(MDI,1)=0 and ref(MDI,2)<3 and MDI>1 and close>ref(close,1) and PDI<ref(PDI,1) and ref(PDI,1)>ref(PDI,2) and PDI<60 and PDI>45;
巨反转:=if(ref(MDI,1)=0 and ref(mdi,2)=0 AND MDI>3 AND PDI>60 and close>ref(close,1) and pdi<ref(pdi,1) and ref(close,1)>ref(close,2),1,0);
小心:=if(ref(MDI,1)<2.5 and (MDI-ref(MDI,1))>2 and close>ref(close,1) and pdi<ref(pdi,1) and 40<PDI,1,0);
背离:=if(close>ref(close,1) and pdi<ref(pdi,1) and ref(pdi,1)>ref(PDI,2) and ref(pdi,1)>60,1,0);
F:=if(close>ref(close,1) and pdi<ref(pdi,1) and ref(close,2)<ref(close,1),if((PDI-10)>0,PDI-10,0),0);
e:=if(ref(MDI,1)=0,10,0)+if(ref(MDI,1)<3,10,0)+if(ref(MDI,2)=0,10,0)+if(ref(MDI,2)<4,15,0)+if(ref(MDI,3)=0,15,0)+if(ref(MDI,3)<5,20,0)+if(MDI=0,5,0)+if(MDI<5,5,0)+F+if(F>0,ref(f,1),0);
小心指数:IF(E>100,100,E);
DRAWTEXT(巨反转=1,20,'巨反转' ),colorred;
DRAWTEXT(巨反转=0 and 反转=1,20,'反转' ),colorred;
DRAWTEXT(反转=0 and 小心=1,20,'小心' ),colorred;
DRAWTEXT(背离=1,80,'背离'),colorred;
DRAWTEXT(背离=0 and close>ref(close,1) and pdi<ref(pdi,1) {and ref(pdi,1)>ref(PDI,2)} and ref(pdi,1)>50,70,'背'),colorred;
DRAWTEXT(ref(PDI,1)<2.5 and (PDI-ref(PDI,1))>1.5 and close<ref(close,1) and Mdi<ref(Mdi,1),20,'上' ),colorred;
DRAWTEXT(ref(PDI,1)<5 and ref(PDI,1)<ref(pdi,2) and (PDI-ref(PDI,1))>1.5 and close>ref(close,1) and Mdi<ref(Mdi,1),20,'?上' ),colorred;
顶部预判-自以为是精品的指标
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
TR1 := SUM(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(L-REF(C,1))),N);
HD := H-REF(H,1);
LD := REF(L,1)-L;
DMP:= SUM(IF(HD>0 ,HD,0),N);
DMM:= SUM(IF(LD>0 ,LD,0),N);
PDI: DMP*100/TR1,colorwhite;
MDI: DMM*100/TR1,coloryellow;
反转:=ref(MDI,1)=0 and ref(MDI,2)<3 and MDI>1 and close>ref(close,1) and PDI<ref(PDI,1) and ref(PDI,1)>ref(PDI,2) and PDI<60 and PDI>45;
巨反转:=if(ref(MDI,1)=0 and ref(mdi,2)=0 AND MDI>3 AND PDI>60 and close>ref(close,1) and pdi<ref(pdi,1) and ref(close,1)>ref(close,2),1,0);
小心:=if(ref(MDI,1)<2.5 and (MDI-ref(MDI,1))>2 and close>ref(close,1) and pdi<ref(pdi,1) and 40<PDI,1,0);
背离:=if(close>ref(close,1) and pdi<ref(pdi,1) and ref(pdi,1)>ref(PDI,2) and ref(pdi,1)>60,1,0);
F:=if(close>ref(close,1) and pdi<ref(pdi,1) and ref(close,2)<ref(close,1),if((PDI-10)>0,PDI-10,0),0);
e:=if(ref(MDI,1)=0,10,0)+if(ref(MDI,1)<3,10,0)+if(ref(MDI,2)=0,10,0)+if(ref(MDI,2)<4,15,0)+if(ref(MDI,3)=0,15,0)+if(ref(MDI,3)<5,20,0)+if(MDI=0,5,0)+if(MDI<5,5,0)+F+if(F>0,ref(f,1),0);
小心指数:IF(E>100,100,E);
DRAWTEXT(巨反转=1,20,'巨反转' ),colorred;
DRAWTEXT(巨反转=0 and 反转=1,20,'反转' ),colorred;
DRAWTEXT(反转=0 and 小心=1,20,'小心' ),colorred;
DRAWTEXT(背离=1,80,'背离'),colorred;
DRAWTEXT(背离=0 and close>ref(close,1) and pdi<ref(pdi,1) {and ref(pdi,1)>ref(PDI,2)} and ref(pdi,1)>50,70,'背'),colorred;
DRAWTEXT(ref(PDI,1)<2.5 and (PDI-ref(PDI,1))>1.5 and close<ref(close,1) and Mdi<ref(Mdi,1),20,'上' ),colorred;
DRAWTEXT(ref(PDI,1)<5 and ref(PDI,1)<ref(pdi,2) and (PDI-ref(PDI,1))>1.5 and close>ref(close,1) and Mdi<ref(Mdi,1),20,'?上' ),colorred;
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容