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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[大智慧] 金蛇七寸 副图源码


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

金蛇七寸 副图源码

var10:=100*(c-cost(10))/cost(10);
空跌:=ref(var10,1)<0 or ref (var10,2)<0;
DIFF: EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DEA:=EMA(DIFF,9);
MACD: 2*(DIFF-DEA), COLORSTICK,LINETHICK2;
A1:EMA(C,13)>REF(EMA(C,13),1) AND MACD>REF(MACD,1),COLORFF00FF,LINETHICK0;
A2:=EMA(C,13)<REF(EMA(C,13),1) AND MACD<REF(MACD,1);

STICKLINE(a1>0 ,0,MACD,4,0),COLORRED;
STICKLINE(a2>0 ,0,MACD,4,0),COLORGREEN;
PARTLINE(DIFF,DIFF>DEA,RGB(255,153,153),DIFF<DEA,RGB(153,153,255));

DIFF2:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEA2:=EMA(DIFF2,9);
红:((2)*(DIFF2-DEA2)),CoLor0000FF;
紫:MA(((2)*(DIFF2-DEA2)),5),CoLorFF00FF;
da:=MAX(DIFF,DEA,紫);
上突四线:cross(红,da) and 紫>DIFF and 紫<0 and 空跌>0,COLORFF00FF,LINETHICK0;
VERTLINE(上突四线 ,6),Colorred;
下突四线:cross(紫,红) and 紫<DIFF and 紫>0 ,COLORFF00FF,LINETHICK0;
STICKLINE(下突四线>0,0,macd,4,0),COLORWHITE;
DRAWTEXT(下突四线>0,DIFF+0.5,'注意!'),COLORFFFFFF;


 




 



gd24864

回复

举报

QQ|

GMT+8, 2024-11-17 01:48

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