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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信盈利跑道主图指标公式源码


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

{指标介绍:绿色线段为“跑道”,当股价站上绿色线段,此时就是我们关注时机。}

VAR1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100; VAR2:=REF(VAR1,1); VAR3:=REF(VAR1,2); VAR4:=REF(VAR1,3); VAR5:=REF(VAR1,4); VAR6:=REF(VAR1,5); VAR7:=3*80-(POW(2/3,1)*VAR2+POW(2/3,2)*VAR3+POW(2/3,3)*VAR4+POW(2/3,4)*VAR5+3*POW(2/3,5)*VAR6); VAR8:=SMA((VAR7*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); VAR9:=3*SMA(SMA(VAR1,3,1),3,1)-(POW(2/3,1)*VAR2+POW(2/3,2)*VAR3+POW(2/3,3)*VAR4+POW(2/3,4)*VAR5+3*POW(2/3,5)*VAR6); VAR10:=3*SMA(VAR1,3,1)-(POW(2/3,1)*VAR2+POW(2/3,2)*VAR3+POW(2/3,3)*VAR4+POW(2/3,4)*VAR5+3*POW(2/3,5)*VAR6); VAR18:=SMA((VAR10*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); VAR19:=SMA((VAR9*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1); DRAWTEXT_FIX(ISLASTBAR,0.1058,0,1,DYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.1258,0,0,HYBLOCK),COLORYELLOW; DRAWTEXT_FIX(ISLASTBAR,0.1858,0,0,GNBLOCK),COLORYELLOW; 市值:(CAPITAL/100*C)/10000,NODRAW,COLORYELLOW; MA5:MA(C,5); MA10:MA(C,10); MA20:MA(C,20); MA30:MA(C,30); 跑道:HHV(MA((HIGH),6),10),LINETHICK2,COLORGREEN; DRAWTEXT(crOSS((MA(CLOSE,5)),(MA(C,10))),(MA(CLOSE,5)),'★'); DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,13))),(MA(CLOSE,5)),'★'); DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,18))),(MA(CLOSE,5)),'★'); DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,20))),(MA(CLOSE,5)),'★'); DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,25))),(MA(CLOSE,5)),'★'); DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,30))),(MA(CLOSE,5)),'★'); DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,13))),(MA(CLOSE,10)),'★'),COLORMAGENTA; DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,18))),(MA(CLOSE,10)),'★'),COLORMAGENTA; DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,20))),(MA(CLOSE,10)),'★'),COLORMAGENTA; DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,25))),(MA(CLOSE,10)),'★'),COLORMAGENTA; DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,30))),(MA(CLOSE,10)),'★'),COLORMAGENTA; DRAWTEXT(CROSS((MA(CLOSE,20)),(MA(C,25))),(MA(CLOSE,20)),'★'),COLORGREEN,LINETHICK1; DRAWTEXT(CROSS((MA(CLOSE,20)),(MA(C,30))),(MA(CLOSE,20)),'★'),COLORGREEN,LINETHICK1; S:DRAWTEXT(VAR18>=VAR8 AND VAR18>=VAR19,VAR19,'◆'),COLORWHITE;








回复

举报

QQ|

GMT+8, 2024-11-16 14:40

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