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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信整合主图源码


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

以下是通达信整合主图源码

整合指标

叫什么名自己起个吧,本人才疏学浅..........



{主趋势线:EMA(EMA(C,10),10),COLORBLUE,LINETHICK2;

B:=主趋势线<REF(主趋势线,1);

IF(B-1,主趋势线,DRAWNULL)COLORRED,LINETHICK2;}

主趋势线:EMA(EMA(C,10),10),DOTLINE,COLORRED,LINETHICK1;

B:=主趋势线>REF(主趋势线,1);

IF(B-1,主趋势线,DRAWNULL),DOTLINE,COLORBLUE,LINETHICK1;

{操盘线:EMA(EMA(C,5),5),COLORRED,LINETHICK2;

Y:=操盘线>REF(操盘线,1);

IF(Y-1,操盘线,DRAWNULL)COLORGREEN,LINETHICK2;}

FD:=(H-L)/3;{分段}{股资源论坛WWW.88GS.COM}

OPEN1:=O>FD*2+L;

OPEN3:=O<FD+L;

OPEN2:=NOT(OPEN1 OR OPEN3);

CLOSE1:=C>FD*2+L;

CLOSE3:=C<FD+L;

CLOSE2:=NOT(CLOSE1 OR CLOSE3);

DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);

WQS1:=OPEN2 AND CLOSE2;

KFZD:=NOT(DFZD OR WQS1);

ZD:=(H+L)/2;

QSXS:=ZD>REF(H,1);

QSXX:=ZD<REF(L,1);

WQS2:=NOT(QSXS OR QSXX);

S1:=DFZD AND QSXS ;

S2:=KFZD AND QSXX ;

S3:=DFZD AND QSXX;

S4:=KFZD AND QSXS;

S5:=DFZD AND WQS2;

S6:=KFZD AND WQS2;

S7:=WQS1 AND (QSXS OR QSXX OR WQS2);

STICKLINE(S2 ,C ,O,3,0 ),COLORFF2020;

STICKLINE(S1,C,O,3 ,0 ),COLOR2020FF;

STICKLINE(S3,C,O,3,0),COLORYELLOW;

STICKLINE(S4,C,O,3,0),COLORCYAN;

STICKLINE(S5,C,O,3,0),COLORMAGENTA;

STICKLINE(S6,C,O,3,0),COLORGREEN;

STICKLINE(S7,C,O,3,0),COLORGRAY;

STICKLINE(1,C,O,0,0),COLORWHITE;

M13:MA(CLOSE,13),LINETHICK2,COLOREBC79E;

MD:=EMA(C,1)-EMA(C,5);

STICKLINE(MD>0,DYNAINFO(3),DYNAINFO(3)+MD*0.5,0.2,1),COLORFF6EC7;

STICKLINE(MD<=0,DYNAINFO(3),DYNAINFO(3)+MD*0.5,0.2,1),COLOR426F42;

MM:=0.805;

MM1:=0.105;

买出价:=STRCAT(STRCAT('当前买出价: ',CON2STR(DYNAINFO(20),2)),'元'),COLOR0000FF;

买入价:=STRCAT(STRCAT('当前买入价: ',CON2STR(DYNAINFO(21),2)),'元'),COLORFFFF00;

DRAWTEXT_FIX(ISLASTBAR,0.5,0.75,0,买出价),COLORGREEN;

DRAWTEXT_FIX(ISLASTBAR,0.5,0.7,0,买入价),COLORRED;

DRAWNUMBER(ISLASTBAR=1,CLOSE,CLOSE),COLORFFFFFF;

DRAWNUMBER(ISLASTBAR=1,CLOSE*0.996,DYNAINFO(14)*100),COLOR00FFFF;

DRAWNUMBER(ISLASTBAR=1,CLOSE*0.998,DYNAINFO(12)),COLORFFFF00;





回复

举报

GMT+8, 2025-2-1 06:42

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