分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册
当前位置:分析家公式网股票公式飞狐公式 → 一键转帖:MACD波段

软件名称:[B]MACD波段[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2009-02-24 05:15:10
软件简介:

{MACD波段}
DRAWGBK(CLOSE>0,COLORRGB(1,1841,3411),COLORRGB(1,1881,6532),3);
DIFF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK0,color99FF;
DEA:EMA(DIFF,9),LINETHICK0,colorFF9999;
MACD:2*(DIFF-DEA),LINETHICK0,colorCCCC;
趋势: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),color800080;
KX:=SYSPARAM(3)-SYSPARAM(2)+1;
QSH:=HHV(趋势,KX);
QSL:=LLV(趋势,KX);
HQMAX:=QSH[DATACOUNT];
LQMIN:=QSL[DATACOUNT];
QHLB:=(HQMAX+LQMIN)/2;
QHLC:=HQMAX-LQMIN;
MHF:=HHV(DIFF,KX);
MHD:=HHV(DEA,KX);
MHM:=HHV(MACD,KX);
MLF:=LLV(DIFF,KX);
MLD:=LLV(DEA,KX);
MLM:=LLV(MACD,KX);
HMAX:=MAX(MHF[DATACOUNT],MAX(MHD[DATACOUNT],MHM[DATACOUNT]));
LMIN:=MIN(MLF[DATACOUNT],MIN(MLD[DATACOUNT],MLM[DATACOUNT]));
FHLB:=(HMAX-LMIN)/100;
FHLC:=HMAX-LMIN;
SH:=(-FHLB)*QHLC/FHLC+QHLB;
DIFFA:=(DIFF-FHLB)*QHLC/FHLC+QHLB;
DEAA:=(DEA-FHLB)*QHLC/FHLC+QHLB;
MACDA:=(MACD-FHLB)*QHLC/FHLC+QHLB;
CDA:=MACD<REF(MACD,1) AND MACD>0;
CDB:=MACD>=REF(MACD,1) AND MACD>0;
CDC:=MACD>REF(MACD,1) AND MACD<0;
CDD:=MACD<=REF(MACD,1) AND MACD<0;
STICKLINE(CDA,SH,MACDA,6,0),color11CC;
STICKLINE(CDA,SH,MACDA,6.6,0),colorAACC;
STICKLINE(CDA,SH,MACDA,4.4,0),colorBBCC;
STICKLINE(CDA,SH,MACDA,3.3,0),colorCCCC;
STICKLINE(CDA,SH,MACDA,2.2,0),colorDDCC;
STICKLINE(CDA,SH,MACDA,1.1,0),colorEECC;
STICKLINE(CDB,SH,MACDA,6,0),colorAA;
STICKLINE(CDB,SH,MACDA,6.6,0),color11BB;
STICKLINE(CDB,SH,MACDA,4.4,0),color22CC;
STICKLINE(CDB,SH,MACDA,3.3,0),color33DD;
STICKLINE(CDB,SH,MACDA,2.2,0),color44EE;
STICKLINE(CDB,SH,MACDA,1.1,0),color55FF;
STICKLINE(CDC,SH,MACDA,6,0),colorAA00BB;
STICKLINE(CDC,SH,MACDA,6.6,0),colorBB11BB;
STICKLINE(CDC,SH,MACDA,4.4,0),colorCC22BB;
STICKLINE(CDC,SH,MACDA,3.3,0),colorDD33BB;
STICKLINE(CDC,SH,MACDA,2.2,0),colorEE44BB;
STICKLINE(CDC,SH,MACDA,1.1,0),colorFF55BB;
STICKLINE(CDD,SH,MACDA,6,0),colorFF7700;
STICKLINE(CDD,SH,MACDA,6.6,0),colorFF8811;
STICKLINE(CDD,SH,MACDA,4.4,0),colorFFAA22;
STICKLINE(CDD,SH,MACDA,3.3,0),colorFFBB33;
STICKLINE(CDD,SH,MACDA,2.2,0),colorFFDD44;
STICKLINE(CDD,SH,MACDA,1.1,0),colorFFDD55;
PARTLINE(DIFF>0 OR DIFF<0,DIFFA),color99FF;
PARTLINE(DEA>0 OR DEA<0,DEAA),colorFF9999;
PARTLINE(趋势,趋势),LINETHICK2,colorAA00BB;
DRAWTEXT(ISLASTBAR,SH,'  0'),colorAAAA;
底部:IF(CROSS(趋势,3),0,10),colorAAAAAA;
高抛:IF(趋势>=85,75,85),colorBB00;
顶部:IF(趋势>90,90,100),colorAACC99;
买入:=CROSS(趋势,0) OR CROSS(趋势,3) OR CROSS(DIFFA,趋势) AND 趋势<18 AND CDC OR CROSS(趋势,DIFFA) AND CROSS(趋势,DEAA) AND CROSS(趋势,MACDA) AND BARSLAST(CROSS(DEAA,趋势))<5;
DRAWTEXT(FILTER(买入,2),5,'买'),color99FF;
DRAWTEXT(FILTER(趋势>90,2),100,'卖'),colorCC00;
追涨:=CROSS(趋势,10) AND CROSS(DIFF,DEA);
DRAWICON(追涨,10,8);
XG:=CROSS(趋势,MACDA) AND 趋势>REF(趋势,1) AND 趋势<15;
XG1:=CROSS(MACDA,DEAA) AND CROSS(10,趋势);
XG2:=CDC AND 趋势<10 AND 趋势>REF(趋势,1) AND DIFF>REF(DIFF,1) AND MACD>REF(MACD,1);
XG3:=CROSS(MACD,0) AND CROSS(DIFF,DEA) AND 趋势>REF(趋势,1) AND 趋势<DIFFA AND DEA>REF(DEA,1) AND REF(CLOSE<=OPEN,1);
XG4:=CROSS(趋势,DIFFA) AND DIFF>0 AND CDC AND BARSLAST(CROSS(DIFFA,趋势))<2;
选股:IF(买入 OR 追涨 OR XG OR XG1 OR XG2 OR XG3 OR XG4,20,0),LINETHICK0;
DRAWICON(XG OR XG1 OR XG2 OR XG3 OR XG4,10,10);
DRAWICON(CROSS(DIFFA,趋势) AND 买入=0 AND DIFFA>85,100,9);
 


[url=http://www.70822.com/soft/sort013/sort02/down-6722.html]MACD波段[/url]

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