股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信八卦乾坤双轨主图指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 4 天前

DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);
赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
ZYG1:=MA(CLOSE,20);
DRAWBAND(赚钱轨道,RGB(155,50,50),ZYG1,RGB(0,100,50));
IF(赚钱轨道< ZYG1 OR CLOSE< 赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;
拉升线:IF(赚钱轨道>ZYG1,ZYG1,DRAWNULL),COLORMAGENTA,LINETHICK3;
下跌线:IF(赚钱轨道<=ZYG1,ZYG1,DRAWNULL),COLORLIBLUE,LINETHICK2;
ZYG2:=(CLOSE+HIGH+LOW+OPEN)/4;
ZYG3:=MA((CLOSE*2+HIGH)/3,5);
ZYG4:=MA((OPEN*2+HIGH)/3,5);
ZYG5:=MA((CLOSE+LOW*2)/3,5);
ZYG6:=MA((OPEN+LOW*2)/3,5);
ZYG7:=OPEN+(CLOSE-OPEN)/2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(dmi.PDI>DMI.mdi,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(ZYG3>=ZYG4,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(ZYG3>=ZYG4,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(ZYG3>=ZYG4,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(ZYG3< ZYG4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;
STICKLINE(ZYG3< ZYG4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;
STICKLINE(ZYG3< ZYG4 AND DMI.PDI< DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;
STICKLINE(ZYG3>=ZYG4 AND CLOSE< ZYG4,ZYG7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;
STICKLINE(crOSS(ZYG3,ZYG4),CLOSE,OPEN,2.8,0),COLORYELLOW;
STICKLINE(ZYG3< ZYG4 AND (CROSS(CLOSE,ZYG6) OR CROSS(ZYG2,ZYG6)),ZYG7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;
STICKLINE(CROSS(ZYG4,ZYG3) AND CLOSE< OPEN AND DMI.PDI< DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;





回复

举报

QQ|

GMT+8, 2024-11-24 01:31

快速回复 返回顶部 返回列表