分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]MACD背离公式 源码[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:7.00 KB
官方主页:Home Page
更新时间:2018-11-17 01:17:44
软件简介:

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
HJ_1:=FINDLOW(MACD,BARSLAST(REF(MACD,1)<0 AND MACD>0)+1,10,1);
HJ_2:=FINDLOW(LOW,BARSLAST(REF(MACD,1)<0 AND MACD>0)+1,10,1);
HJ_3:=FINDLOW(DIF,BARSLAST(REF(MACD,1)<0 AND MACD>0)+1,10,1);
HJ_4:=REF(MACD,1)>HJ_1 AND MACD<0 AND MACD>REF(MACD,1);
钝化:HJ_4 AND LOW<HJ_2 AND DIF>HJ_3,NODRAW,COLORWHITE;
DRAWTEXT(钝化>0,MACD,16),COLORMAGENTA;
结构形成70%:钝化 AND MACD>REF(MACD,2) AND DIF>REF(DIF,1),NODRAW,COLORRED;
DRAWICON(结构形成70%>0,0,1);
HJ_5:=FINDHIGH(MACD,BARSLAST(REF(MACD,1)>0 AND MACD<0)+1,10,1);
HJ_6:=FINDHIGH(CLOSE,BARSLAST(REF(MACD,1)>0 AND MACD<0)+1,10,1);
HJ_7:=FINDHIGH(DIF,BARSLAST(REF(MACD,1)>0 AND MACD<0)+1,10,1);
HJ_8:=MACD<HJ_5 AND MACD>0 AND MACD<REF(MACD,1);
HJ_9:=HJ_8 AND CLOSE>HJ_6 AND DIF<HJ_7;
DRAWTEXT(HJ_9>0,MACD,16),COLORGREEN;
顶部结构70%:HJ_9 AND MACD<REF(MACD,2) AND DIF<REF(DIF,1),NODRAW,COLORGREEN;
DRAWICON(顶部结构70%>0,0,2);{www.70822.com}
HJ_10:=BARSLAST(REF(CROSS(DIF,DEA),1));
HJ_11:=REF(CLOSE,HJ_10+1)>CLOSE AND DIF>REF(DIF,HJ_10+1) AND CROSS(DIF,DEA);
底背1:DRAWLINE(HJ_10=0,DEA,HJ_11,DEA,0),COLORRED,LINETHICK2;
HJ_12:=BARSLAST(REF(CROSS(DEA,DIF),1));
HJ_13:=REF(CLOSE,HJ_10+1)<CLOSE AND REF(DIF,HJ_10+1)>DIF AND CROSS(DEA,DIF);
顶背1:DRAWLINE(HJ_10=0,DEA,HJ_13,DEA,0),COLORGREEN,LINETHICK2;
HJ_14:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
HJ_15:=EMA(CLOSE,12)-EMA(CLOSE,26);
STICKLINE(CROSS(HJ_14,9),0,DIF,1,0),COLORYELLOW;
HJ_16:=BARSLAST(REF(MACD,1)<0 AND MACD>0);
HJ_17:=LLVBARS(MACD,HJ_16+20);
HJ_18:=IF(HJ_17>HJ_16,REF(MACD,HJ_17),0);
HJ_19:=MACD<0 AND MACD>HJ_18 AND LOW=LLV(LOW,HJ_16+20) AND HJ_18<0;
HJ_20:=REF(HJ_19,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,HJ_17)<0 AND MACD<0;
低积背:DRAWLINE(HJ_18=HJ_17,MACD,HJ_20,MACD,0),COLORLIRED,LINETHICK2;
DRAWICON(HJ_20,MACD*1.2,7);
HJ_21:=HHVBARS(MACD,HJ_16+20);
HJ_22:=IF(HJ_21>HJ_16,REF(MACD,HJ_21),0);
HJ_23:=MACD>0 AND MACD<HJ_22 AND HIGH=HHV(HIGH,HJ_16+20) AND HJ_22>0;
HJ_24:=REF(HJ_23,1)=1 AND MACD>REF(MACD,1) AND REF(DIF,HJ_21)>0;
顶积背:DRAWLINE(HJ_22=HJ_21,MACD,HJ_24,MACD,0),COLORCYAN,LINETHICK2;
HJ_25:=BARSLAST(REF(CROSS(DIF,DEA),1));
HJ_26:=REF(CLOSE,HJ_25+1)>CLOSE AND DIF>REF(DIF,HJ_25+1) AND CROSS(DIF,DEA);
STICKLINE(HJ_26,0,DIF,3,0),COLORLIMAGENTA;
底背:DRAWLINE(HJ_25=0,DEA,HJ_26,DEA,0),COLORRED,LINETHICK2;
DRAWICON(HJ_26,DIF,1);
HJ_27:=BARSLAST(REF(CROSS(DEA,DIF),1));
HJ_28:=REF(CLOSE,HJ_27+1)<CLOSE AND REF(DIF,HJ_27+1)>DIF AND CROSS(DEA,DIF);
顶背:DRAWLINE(HJ_27=0,DEA,HJ_28,DEA,0),COLORGREEN,LINETHICK2;
DRAWICON(HJ_28,DIF,15);
HJ_29:=CLOSE/MA(CLOSE,40)*100<78;
HJ_30:=CLOSE/MA(CLOSE,60)*100<74;
HJ_31:=HIGH>LOW*1.051;
HJ_32:=HJ_31 AND COUNT(HJ_31,5)>1;
HJ_33:=IF(HJ_32 AND (HJ_29 OR HJ_30),2,0);
HJ_34:=CLOSE/REF(CLOSE,25)<=1.1;
HJ_35:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<15;
HJ_36:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
HJ_37:=SMA(HJ_36,2,1);
HJ_38:=SMA(HJ_37,2,1);
HJ_39:=IF(HJ_37>REF(HJ_37,1) AND REF(HJ_37,1)<REF(HJ_37,2) AND HJ_37<23,1.5,0);
HJ_40:=HJ_34 AND HJ_33 AND HJ_35 AND HJ_39;
STICKLINE(HJ_40 AND MACD>REF(MACD,1),DIF,0,1,0),COLORRED;
HJ_41:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
HJ_42:=SMA(HJ_41,9,3);
HJ_43:=SMA(HJ_42,9,3);
HJ_44:=3*HJ_42-2*HJ_43;
HJ_45:=CROSS(DIF,DEA) AND CROSS(HJ_42,HJ_43);
DRAWICON(HJ_45,DEA*1.2,25);
DRAWTEXT(HJ_45,DEA*1.2,18),COLORYELLOW;
0,DOTLINE,COLORGRAY;
HJ_46:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
HJ_47:=CROSS(HJ_46,20);
STICKLINE(HJ_47,0,DIF,0.3,0),COLORRED;
DRAWICON(HJ_47,DIF,9),COLORYELLOW;
HJ_48:=BARSLAST(REF(CROSS(RSI.RSI1,RSI.RSI2),1));
HJ_49:=REF(CLOSE,HJ_48+1)>CLOSE AND REF(RSI.RSI1,HJ_48+1)<RSI.RSI1 AND CROSS(RSI.RSI1,RSI.RSI2);
DRAWICON(HJ_49>0,DIF,5);
HJ_50:=BARSLAST(REF(CROSS(RSI.RSI2,RSI.RSI1),1));
HJ_51:=REF(CLOSE,HJ_50+1)<CLOSE AND REF(RSI.RSI1,HJ_50+1)>RSI.RSI1 AND CROSS(RSI.RSI2,RSI.RSI1);
DRAWTEXT(HJ_51>0,DEA,20),COLORGREEN;
HJ_52:=CLOSE/MA(CLOSE,40)*100<78;
HJ_53:=CLOSE/MA(CLOSE,60)*100<74;
HJ_54:=HIGH>LOW*1.051;
HJ_55:=HJ_54 AND COUNT(HJ_54,5)>1;
HJ_56:=IF(HJ_55 AND (HJ_52 OR HJ_53),2,0);
HJ_57:=CLOSE/REF(CLOSE,25)<=1.1;
HJ_58:=SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<15;
HJ_59:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
HJ_60:=SMA(HJ_59,2,1);
HJ_61:=SMA(HJ_60,2,1);
HJ_62:=IF(HJ_60>REF(HJ_60,1) AND REF(HJ_60,1)<REF(HJ_60,2) AND HJ_60<23,1.5,0);
HJ_63:=HJ_57 AND HJ_56 AND HJ_58 AND HJ_62;
DRAWTEXT(HJ_63 AND MACD>REF(MACD,1),DIF*1.1,21),COLORRED;
HJ_64:=MACD>=0 AND REF(MACD,1)>=0 AND REF(MACD,2)>=0 AND REF(MACD,3)>=0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3);
STICKLINE(HJ_64,0,MACD*1.1,0.3,0),COLORRED;
HJ_65:=REF(LLV(LOW,90),3);
HJ_66:=REFDATE(HJ_65,DATE);
HJ_67:=HJ_66=LOW AND (CLOSE-LOW>OPEN-CLOSE OR OPEN-LOW>CLOSE-OPEN);
STICKLINE(IF(HJ_67,(-120),0),DIF/3,0,7,0),COLOR003300;
STICKLINE(IF(HJ_67,(-120),0),DIF/3,0,6,0),COLOR005500;
STICKLINE(IF(HJ_67,(-120),0),DIF/3,0,5,0),COLOR007700;
STICKLINE(IF(HJ_67,(-120),0),DIF/3,0,3.5,0),COLOR009900;
STICKLINE(IF(HJ_67,(-120),0),DIF/3,0,2,0),COLOR00CC00;
STICKLINE(IF(HJ_67,(-120),0),2*DIF/3,DIF/3,7,0),COLOR666666;
STICKLINE(IF(HJ_67,(-120),0),2*DIF/3,DIF/3,6,0),COLOR777777;
STICKLINE(IF(HJ_67,(-120),0),2*DIF/3,DIF/3,5,0),COLOR888888;
STICKLINE(IF(HJ_67,(-120),0),2*DIF/3,DIF/3,4,0),COLOR999999;
STICKLINE(IF(HJ_67,(-120),0),2*DIF/3,DIF/3,3,0),COLORDDDDDD;
STICKLINE(IF(HJ_67,(-120),0),2*DIF/3,DIF/3,2,0),COLORWHITE;
STICKLINE(IF(HJ_67,(-120),0),DIF,2*DIF/3,7,0),COLOR000044;
STICKLINE(IF(HJ_67,(-120),0),DIF,2*DIF/3,6,0),COLOR000033;
STICKLINE(IF(HJ_67,(-120),0),DIF,2*DIF/3,5,0),COLOR000055;
STICKLINE(IF(HJ_67,(-120),0),DIF,2*DIF/3,4,0),COLOR000077;
STICKLINE(IF(HJ_67,(-120),0),DIF,2*DIF/3,3,0),COLOR000099;
STICKLINE(IF(HJ_67,(-120),0),DIF,2*DIF/3,2,0),COLORLIMAGENTA;
DRAWTEXT(HJ_67,DIF/3,22),COLORRED;
DRAWTEXT(HJ_67,2*DIF/3,23),COLORRED;
DRAWTEXT(HJ_67,DIF,24),COLORYELLOW;

{-----------------------------------}
 


 


[url=http://www.70822.com/soft/sort013/sort05/down-130606.html]MACD背离公式 源码[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:45.89844 毫秒