软件名称:[B]通达信MACD副图博览[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-05-21 01:44:06
软件简介:
MACD叫好副图
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:EMA(DIFF,9);
MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK2;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;
DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;
底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;
DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'三全项'),COLOR0000FF,LINETHICK2;
柱线标志:
0.3 黄:低金叉
0.2 粉红:二次金叉
0.1 绿:底背离
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
D1:=EMA(C,3)-EMA(C,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
DRAWICON(CROSS(D1,DIFF) AND DIFF<-0.05 ,D4-0.1,1);
DRAWICON(CROSS(DIFF,D1) AND DIFF>0.1 ,D3+0.1,2);
STICKLINE(D1>=D2,D1,D2,8,0),COLOR0055AA;
STICKLINE(D1<=D2,D1,D2,8,0),COLOR006600;
STICKLINE(D1>=D2,D1,D2,5,0),COLOR0077CC;
STICKLINE(D1>=D2,D1,D2,3,0),COLOR0099DD;
STICKLINE(D1>=D2,D3,D4,0,0),COLOR00BBFF;
STICKLINE(D1<=D2,D1,D2,5,0),COLOR009900;
STICKLINE(D1<=D2,D1,D2,3,0),COLOR00BB00;
STICKLINE(D1<=D2,D3,D4,0,0),COLOR00EE00;
MACD背离
{SHORT:1,500,12; LONG:1,500,26;M:1,500,9;}
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA), COLORSTICK,COLOR5454FF;
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:=(CC AND EE)*DEA,COLOR00FFFF;
顶背离:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离:=(LL AND GG)*DEA,COLORMAGENTA;
底背离:=(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入区:(JJ AND ZZ)*DEA,POINTDOT,COLORRED;{MACD蓝柱缩短---指今日比昨天短}
STICKLINE(介入区=DEA,DEA,DIFF,3,0),COLORRED;
DRAWTEXT(CROSS(DIFF,DEA ),0,'金叉'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF ),0,'死叉'),COLORGREEN;
金叉:CROSS(DIFF,DEA);
{SH:1,120,12; LO:1,250,26;M:1,60,9;}
DA:=IF(DATE<1070531,1,0);
DJ:=MINUTE-REF(MINUTE,1);
SJ1:=HHV(HOUR-REF(HOUR,1),5);
SJ2:=LLV(HOUR-REF(HOUR,1),5);
KJ:=IF(DJ=5 OR DJ=-55 OR DJ=-25 OR DJ=35,5,
IF(DJ=-15 OR DJ=-45 OR DJ=15 OR DJ=45,15,
IF(LLV(DJ,80)=0 AND SJ1=0,240,
IF((DJ=0 OR DJ=-30 OR DJ=30) AND SJ1<3 AND SJ2<=0,30,
IF(LLV(DJ,3)=1 OR HHV(DJ,3)=1,1,60)))));
DIF:(EMA(CLOSE,SH)-EMA(CLOSE,LO))/EMA(CLOSE,LO)*1000,COLORGREEN;
DEA:EMA(DIF,M);
MACD:(DIF-DEA)*2,COLORSTICK;
JB:=(LO-SH)*KJ/(14*240);
BD:=(MACD-LLV(REF(MACD,1),2))/ABS(REF(DIF,1))/2;
该期增减:IF(BD>10,10,IF(BD<-10,-10,BD)),LINETHICK0;
L1:IF(DA=1 AND DIF>0,PLOYLINE(DIF>0,DIF),DRAWNULL),COLORWHITE;
L2:IF(DA=1 AND DIF>10*JB,PLOYLINE(DIF>10*JB,DIF),DRAWNULL),COLORRED;
L3:IF(DA=1 AND DIF>50*JB,PLOYLINE(DIF>50*JB,DIF),DRAWNULL),COLORMAGENTA;
MD:=MAX(MAX(DIF,DEA),MACD);
MX:=MIN(MIN(DIF,DEA),MACD);
MDC:=HHV(MD,50);
MXC:=LLV(MX,50);
DX:=MDC-MXC;
YS:=IF(DIF>50*JB,'强得发紫',
IF(DIF>10*JB AND DIF<50*JB,'多头区',
IF(DIF>0 AND DIF<10*JB,'多头观望',
IF(DIF<0,'空头区',DRAWNULL))));
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF>50*JB,MXC+0.6*DX,YS),COLORMAGENTA;
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF>10*JB AND DIF<50*JB,MXC+0.6*DX,YS),COLORRED;
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF>0 AND DIF<10*JB,MXC+0.6*DX,YS),COLORWHITE;
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF<0,MXC+0.6*DX,YS),COLORGREEN;
DRAWTEXT(DA=1 AND DIF>0 AND DIF>DEA AND CURRBARSCOUNT=1,MXC+0.5*DX,'上升通道持续(参数③周期)');
DRAWTEXT(DA=1 AND DIF>0 AND DIF<DEA AND CURRBARSCOUNT=1,MXC+0.5*DX,'上升通道趋缓(参数③周期)');
DRAWTEXT(DA=1 AND DIF<0 AND DIF>DEA AND CURRBARSCOUNT=1,MXC+0.5*DX,'下降通道趋缓(参数③周期)');
DRAWTEXT(CURRBARSCOUNT=1,MXC+0.8*DX,'MACD庞辉V2.0大众版请阅用法注释'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,MXC+0.4*DX,'SHOP34328852.TAOBAO.COM'),COLORMAGENTA;
' 增强'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1 AND MACD<LLV(REF(MACD,1),2),MXC+0.6*DX,
' 减弱'),COLORGREEN;};
PMACD以MACD为基础作改良,图形形态完全符合MACD,大家可以放心使用
PMACD作者:庞辉 SHOP34328852.TAOBAO.COM shop.paipai.com/309951860
该版本主要修正了如下几点:
1:对1、5、15、30、60分钟的正确支持
2:对调整参数变量的正确支持
3:局部美化,使用舒服点
使用说明:
1、MACD最重要的是看处于什么状态,PMACD把其分为空头、多头观望、多头、强得发紫四个阶段,这是你最要看的。
2、其次,是DIF与DEA的关系,因为DEA是DIF的衍生。
PMACD分出四中状态,下降通道持续——下降通道趋缓——上升通道趋缓——上升通道持续,这是你次要看的。因为通达信不支持16个以上输出,本人只标出了三种,所以见PMACD无显示时即为 下降通道持续。
3、再次,看红绿柱MACD数值变化方向,本人给出了“该期增减”,这是个未乘100的数,0.2即增长20%。这是对该周期的判断,第三重要而已。
变色MACD
DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),COLORGREEN;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),COLORWHITE;
DIFIF1,COLOR33FF33,LINETHICK2;
DEAEA1,COLORYELLOW,LINETHICK2;
MACD:MACD1,NODRAW,COLORMAGENTA;
强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),COLORRED,LINETHICK2;
弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);
DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'○'),LINETHICK2, COLORYELLOW;
超前MACD
SQX:=(C-MA(CLOSE,13))*100;
DIFF:EMA(MA(SQX,7),1),COLOR00FFFF,LINETHICK2;
DEA:EMA(DIFF,7),COLORFF33FF,LINETHI
[url=http://www.70822.com/soft/sort013/sort05/down-62677.html]通达信MACD副图博览[/url]