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

软件名称:[B]多空MACD,在多空指标的基础上,弄了一个macd[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:6.00 KB
官方主页:Home Page
更新时间:2023-03-29 00:05:25
软件简介:

 多空MACD

在多空指标的基础上,弄了一个macd,仅供参考。

DRAWTEXT_FIX(ISLASTBAR,0.10,0.02,0,'★☆早上大跌可买☆早上大跌不割☆★'),coloryellow;
DRAWTEXT_FIX(ISLASTBAR,0.10,0.07,0,'★☆早上大涨要卖☆下午大涨不追☆★'),colorred;
DRAWTEXT_FIX(ISLASTBAR,0.10,0.12,0,'★下午大跌次日买☆不涨不跌就睡觉★'),colorliblue;
IF(CODETYPE>0)
{
IF( CODETYPE>2 AND CODETYPE <> 6)
{
a="该指标只用于个股和沪深指数。";
RETURN 0;
}
ELSE
{
a=VOL/SHGZG*100;
}
}
ELSE
{
a=MONEY/DPLTSZ*100;
}
a12:=IF(H=C OR L=C OR H=O OR L=O,a*C/PRE,a);
a11:=IF(C<REF(C,1) ,-a12,a12);
a13:=(a11-LLV(a11,17))/(HHV(a11,17)-LLV(a11,17));
a1:=ABS(a13-0.444)*2;
VPT:=MONEY;
C5:=IF(H=C OR L=C OR H=O OR L=O,VPT*C/REF(C,1),VPT);
C55:=IF(C<REF(C,1) ,-C5,C5);
B:=(C55-LLV(C55,17))/(HHV(C55,17)-LLV(C55,17));
BBB:=ABS(B-0.444)*2;
C150:=ABS(IF(H=C OR L=C OR H=O OR L=O,C*C/REF(C,1),C));
C15:=IF(C<REF(C,1) ,-C150,C150);
BB:=BBB*C15*a1;
C1:=BB;
O1:=REF(BB,2);
H1:=HHV(BB,2);
L1:=LLV(BB,2);
DIFF : EMA(C1,13) - EMA(C1,21),coloryellow;
DEA : EMA(DIFF,7);
MACD := 2*(DIFF-DEA), COLORSTICK;
D1:=EMA(C1,3)-EMA(C1,8);
D2:=EMA(O1,3)-EMA(O1,8);
D3:=EMA(H1,3)-EMA(H1,8);
D4:=EMA(L1,3)-EMA(L1,8);
DRAWICON(CROSS(D1,DIFF) AND DIFF<-0.05 ,DIFF,'buy');
DRAWICON(CROSS(DIFF,D1) AND DIFF>0.1 ,DEA,'sell');
STICKLINE(MACD>=0,MACD,0,1,0),COLORF00FF0;
STICKLINE(MACD<0,MACD,0,1,0),colorwhite;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),colorgreen;
零轴上买:0,colorwhite,LINETHICK2;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
X1:=IF(DIFF<0,DIFF,0),COLOR0000FF,LINEThICK1;
X2:=IF(DIFF<0,0,DIFF),colormagenta,LINEThICK1;
X3:=IF(DIFF<DEA,DIFF,DEA),COLOR00ff00,linetHick1;
X4:=IF(DIFF>DEA,DIFF,DEA),linetHick1,COLORffbb11;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,21)=1;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DEA,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),Color00FF00;
DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,linetHick1;
DRAWTEXT(底背离,DEA*1.09,' 底背离'),Color6600FF;
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,linetHick1;
DRAWTEXT(顶背离,DEA*1.2,' 顶背离'),Color00FF00;
零上金叉:=CROSS(DIFF,DEA) AND DIFF>0.101 AND COUNT(JCCOUNT=1,21)=1;
DRAWTEXT(零上金叉,DEA*0.32,' 零上金叉'),colorlired;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,DEA*0.42,' 二次金叉'),coloryellow;
DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.85,'三全项'),COLOR0000FF,LINETHICK2;
三次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,21)=1;
STICKLINE(三次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(三次金叉,DEA*0.9,1) ;
DRAWTEXT(三次金叉,DEA*0.22,' 三次金叉'),coloryellow;
四次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,34)=1;
STICKLINE(四次金叉,0,0.06,6,0),COLORFF00FF;
DRAWICON(四次金叉,DEA*0.9,1) ;
DRAWTEXT(四次金叉,DEA*0.12,' 四次金叉'),coloryellow;
DRAWBAND(DIFF,RGB(90,0,0),DEA,RGB(0,90,0));
 

[url=http://www.70822.com/soft/sort013/sort036/down-166922.html]多空MACD,在多空指标的基础上,弄了一个macd[/url]

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