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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信绝佳买点/绝佳买点选股副图源码


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

以下是通达信绝佳买点/绝佳买点选股副图源码

{绝佳买点}

MA20:MA(C,20),COLORWHITE,LINETHICK2;MA120:MA(C,120),COLORFFCCCC,LINETHICK2;MA250:MA(C,250),COLORFFCC66,LINETHICK2;乖离线:=((C-REF(MA20,1))/20+MA20)*1.20;TT1:=CROSS(MA20,MA120) AND CROSS(MA20,MA250) AND V>REF(V,1);TT2:=MA20>REF(MA20,2) AND V>REF(V,1) AND CROSS(C,MA20);STICKLINE(TT1,L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(TT1,L-0.13,'金叉'),COLORYELLOW;STICKLINE(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(CROSS(C,MA120) AND CROSS(C,MA250) AND CROSS(C,MA20),L-0.13,'并线开花'),COLORYELLOW;STICKLINE(TT2,L,L-0.09,4,0),COLORYELLOW;DRAWTEXT(TT2,L-0.13,'买点1'),COLORYELLOW;STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),COLOR00FF00;DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'卖点'),COLOR00FF00;STICKLINE(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L,L-0.09,4,0),COLORFFCC66;DRAWTEXT(MA250>=REF(MA250,1) AND MA20>=REF(MA20,1) AND CROSS(C,MA250),L-0.13,'牛象'),COLORFFCC66;STICKLINE(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L,L-0.09,4,0),COLORFF00FF;DRAWTEXT(MA120>=REF(MA120,1) AND CROSS(C,MA20) AND CROSS(C,MA120) AND V>REF(V,1),L-0.13,'买点2'),COLORFF00FF ;A1:=SUM(AMOUNT,3)/SUM(VOL,3)/100;A2:=SUM(AMOUNT,8)/SUM(VOL,8)/100;A3:=SUM(AMOUNT,21)/SUM(VOL,21)/100;DIFF:=(EMA(CLOSE,12) - EMA(CLOSE,26));DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA); V1:=C-(A1+MA(C,3))/2;V2:=C-(A2+MA(C,8))/2;V3:=C-(A3+MA(C,21))/2;VA1:=(C+V3-V1+MACD);VA4:=(C+V2-V1+MACD);短线:EMA(VA1,6),LINETHICK2,COLORYELLOW;



绝佳买点选股}
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
绝佳买点:CROSS(VAR2,MA(VAR3,6));







回复

举报

QQ|

GMT+8, 2024-11-18 10:31

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