当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:黄金阴阳(通达信公式 主图 源码 测试图)
软件名称:[B]黄金阴阳(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2021-08-21 00:21:52
软件简介:
黄金阴阳
请设置计算参数:
M: Param#0 (5.00--200.00)
N: Param#1 (0.00--100.00)
警示:=NAMEINCLUDE('S');
跌停:DTPRICE(REF(C,1),IF(警示,0.05,0.1)),NODRAW,COLORGREEN;
涨停:ZTPRICE(REF(C,1),IF(警示,0.05,0.1)),NODRAW,COLORRED;
明涨停:IF(C<500,C*1.1,DRAWNULL),NODRAW,COLORFF00FF;
W:=IF(NAMELIKE('W') OR NAMELIKE('*W'),0.05,0.1);
DT:=(REF(C,1)/C-1>=W-0.01/REF(C,1) AND L=C AND PERIOD=5) OR C=DTPRICE(REF(C,1),IF(警示,0.05,0.1));
ZT:=C>=ZTPRICE(REF(C,1),IF(警示,0.05,0.099)),NODRAW,COLORRED;
ZT1:=H>=ZTPRICE(REF(C,1),IF(警示,0.05,0.099)) AND C<H;
DT1:=REF(C,1)/L-1>=W-0.01/REF(C,1) AND L<C AND PERIOD=5;
假阴:=AMOUNT/V/100>REF(C,1) AND C<O;
假阳:=AMOUNT/V/100<REF(C,1) AND C>O;
黄金阴:=REF(ZT,1) AND 假阴;
黄金阳:=REF(DT,1) AND 假阳;
黄金阴期:=BARSLAST(黄金阴);
黄金阳期:=BARSLAST(黄金阳);
框尾1:=REF(黄金阴,1);
框尾2:=REF(黄金阳,1);
STICKLINE(黄金阴,REF(L,1),H,8,-1),COLORWHITE;
STICKLINE(黄金阳,REF(H,1),L,8,-1),COLORYELLOW;
STICKLINE(框尾1 AND C>O,H,L,0,1),COLORRED;{假阴柱};
STICKLINE(框尾1 AND C>O,O,C,2.5,1),,COLORRED;{假阳柱};
STICKLINE(框尾1 AND C<O,H,L,0,0),COLORFFFF00;{假阴柱};
STICKLINE(框尾1 AND C<O,O,C,2.5,0),,COLORFFFF00;{假阳柱};
STICKLINE(框尾1 AND C=O,H,L,0,0),COLORWHITE;{假阴柱};
STICKLINE(框尾1 AND C=O,O,C,2.5,0),,COLORWHITE;{假阳柱};
STICKLINE(框尾2 AND C>O,H,L,0,1),COLORRED;{假阴柱};
STICKLINE(框尾2 AND C>O,O,C,2.5,1),,COLORRED;{假阳柱};
STICKLINE(框尾2 AND C<O,H,L,0,0),COLORFFFF00;{假阴柱};
STICKLINE(框尾2 AND C<O,O,C,2.5,0),,COLORFFFF00;{假阳柱};
STICKLINE(框尾2 AND C=O,H,L,0,0),COLORWHITE;{假阴柱};
STICKLINE(框尾2 AND C=O,O,C,2.5,0),,COLORWHITE;{假阳柱};
STICKLINE(假阴,O,C,2.5,0),COLORFFFF00;{假阴柱};
STICKLINE(假阴,H,L,0,0),COLORFFFF00;{假阴柱};
STICKLINE(假阴,O,C,0.58,0),COLORRED;{假阴柱};
STICKLINE(假阳,H,L,0,0),COLORRED;{假阴柱};
STICKLINE(假阳,O,C,2.5,0),,COLORRED;{假阳柱};
STICKLINE(假阳,O,C,0.58,0),COLORLIGREEN;{假阳柱};
DRAWLINE(黄金阴,H,REF(黄金阴,1),REF(H,1),1),DOTLINE,COLORFF00FF;
DRAWLINE(黄金阳,H,REF(黄金阳,1),REF(H,1),1),DOTLINE,COLORLIGREEN;
{涨停K线颜色设置}
STICKLINE(ZT,C,(O+C)/2,3,0),COLOR000099;
STICKLINE(ZT,C,(O+C)/2,2.2,0),COLOR0000CC;
STICKLINE(ZT,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT,C,(O+C)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(DT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT,C,(O+C)/2,0.5,0),COLOR00FF00;
{曾涨跌停打开K线颜色设置}
STICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,O,(O+C)/2,3,0),COLOR888888;
STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00;
趋势线:EMA(C,21),COLORWHITE,NODRAW;
乖离率:ATAN((趋势线/REF(趋势线,1)-1)*100)*180/3.1416,NODRAW,COLOR5588FF;
红升:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),COLORRED,DOTLINE,LINETHICK2;
绿降:IF(趋势线<REF(趋势线,1),趋势线,DRAWNULL),COLORGREEN,POINTDOT,LINETHICK4;
阴突破:=CROSS(C,REF(O,黄金阴期)) AND BETWEEN(黄金阴期,3,13);
阳突破:=CROSS(C,REF(O,黄金阳期)) AND BETWEEN(黄金阳期,3,13);
DRAWICON(阴突破,L,7);
DRAWICON(阳突破,L,1);
[url=http://www.70822.com/soft/sort013/sort05/down-157597.html]黄金阴阳(通达信公式 主图 源码 测试图)[/url]