当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:MA主图,显示已经突破天数和价格划线,源码分享
软件名称:[B]MA主图,显示已经突破天数和价格划线,源码分享[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2020-11-27 07:40:25
软件简介:
MA主图,自己常用,公式普通,
有点特SE是:
突破当天,用黄方块表示,
并显示已经突破天数
并做出价咯划线
{MA主图}
XA_1:=EMA(CLOSE,7);
XA_2:=EMA(CLOSE,21);
XA_3:=10;
XA_4:=CONST(HHVBARS(VOL,XA_3));
XA_5:=XA_3;
XA_6:=CONST(REF(HHVBARS(VOL,XA_5),XA_4+1)+XA_4+1);
突破天数:XA_6,NODRAW,COLOR40FF00;
XA_7:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(MAX(CLOSE,OPEN),XA_6)),DRAWNULL);
突破价咯:XA_7,COLOR40FF00;
XA_8:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(HIGH,XA_6)),DRAWNULL);
XA_9:=DRAWICON(CURRBARSCOUNT=XA_6+1,XA_7,25);
XA_10:=CONST(LLVBARS(VOL,XA_5));
XA_11:=XA_6+1;{分析家公式网 WWW.70822.com 整理}
XA_12:=REF(MAX(CLOSE,OPEN),XA_6);
XA_13:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(VOL,XA_6)),DRAWNULL);
XA_14:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND REF(MAX(CLOSE,OPEN),XA_4+1)=HHV(MAX(REF(CLOSE,1),REF(OPEN,1)),XA_4+1) AND XA_11>=5 AND XA_11<=11;
XA_15:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND LAST(MAX(REF(CLOSE,1),REF(OPEN,1))<=REF(MAX(CLOSE,OPEN),1),XA_11,1) AND XA_11>=4 AND XA_11<=11 AND CLOSE>OPEN;
XA_16:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND LAST(MAX(CLOSE,OPEN)<XA_8,XA_11-2,1) AND XA_11>=5 AND XA_11<=11 AND CLOSE>OPEN;
XA_17:=XA_16 AND CROSS(XA_1,XA_2);
STICKLINE(CURRBARSCOUNT=XA_6+1,CLOSE,OPEN,2,0),COLORYELLOW;
STICKLINE(XA_17,XA_7,OPEN,2,0),COLORMAGENTA;
M5:MA(CLOSE,5);
M10:MA(CLOSE,10),COLORCYAN;
M20:MA(CLOSE,20);
M30:MA(CLOSE,30),COLORYELLOW,LINETHICK2;
M60:MA(CLOSE,60),COLORLIMAGENTA,LINETHICK2;
MA120:MA(CLOSE,120),COLOR80FF00;
MA250:MA(CLOSE,250),COLORFF0080;
[url=http://www.70822.com/soft/sort013/sort05/down-152332.html]MA主图,显示已经突破天数和价格划线,源码分享[/url]