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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信贴紧买源码副图


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

以下是通达信贴紧买源码副图

贴紧买

AA := REF(CLOSE,1);

BBB:=SMA(MAX(CLOSE-AA,0),34,1)/SMA(ABS(CLOSE-AA),34,1)*1000;

HHH:=BBB-LLV(BBB,36);

短期:=(MA(HHH,2)*3+HHH*13)/16;

中期:=MA(HHH,10);

差值:短期-中期,NODRAW;

CCC:=LLV(BBB,36)-BBB;

短期二:=(MA(CCC,2)*3+CCC*13)/16;

中期二:=MA(CCC,10);

VB:=2*(短期-中期),NODRAW;

乖离率6:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;

乖离率12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;

乖离率24:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;

ZP:=乖离率6<-6 AND 乖离率12<-10 AND 乖离率24<-16;

DRAWICON(ZP,-50,26);

STICKLINE(VB>=0 AND VB>REF(VB,1),0,VB,1,0),COLORRED;

STICKLINE(VB>=0 AND VB<REF(VB,1),0,VB,1,1),COLORRED;

STICKLINE(VB<0 AND 中期>REF(中期,1),0,VB,1,1),COLORRED;

STICKLINE(VB<0 AND VB<REF(VB,1),0,VB,1,0),COLORGREEN;

STICKLINE(VB<0 AND VB>REF(VB,1),0,VB,1,1),COLORGREEN;

STICKLINE(VB<0 AND 中期>REF(中期,1),0,VB,2,-1),COLORRED;

STICKLINE(VB>=0 AND 中期<REF(中期,1),0,VB,2,-1),COLORGREEN;

STICKLINE(短期<3,VB,0,1,0),COLORYELLOW;

准备买:IF(短期<3,8,0),COLORYELLOW,NODRAW;

STICKLINE(短期=0,VB,0,1,0),COLORMAGENTA;

买入:IF(短期=0,8,0),COLORMAGENTA,NODRAW;

DRAWICON(MA(短期,3)=0,VB,1);

加仓:IF(MA(短期,3)=0,8,0),COLORRED,NODRAW;

STICKLINE(差值>60 AND VB>0 AND 中期>50,VB,0,1,0),COLORBLUE;

准备卖:IF(差值>60 AND VB>0 AND 中期>50,4,0),COLORBLUE;

STICKLINE(差值>60 AND VB>0 AND 中期>100,VB,0,1,0),COLORCYAN;

卖出:IF(差值>60 AND VB>0 AND 中期>100,4,0),COLORCYAN;

坚决卖:IF(EVERY(差值>60 AND VB>0 AND 中期>100,2),4,0),COLORGREEN;

DRAWICON(EVERY(差值>60 AND VB>0 AND 中期>100,2),VB,2);

STICKLINE(VB>100,100,VB,1,0),COLORBROWN;

STICKLINE(VB>200,200,VB,1,0),COLORLIRED;

100,DOTLINE,COLORGRAY;

DRAWTEXT_FIX(ISLASTBAR,0,0,0,'准备买~黄色'),COLORYELLOW;

DRAWTEXT_FIX(ISLASTBAR,0.12,0,0,'买入~洋红色'),COLORMAGENTA;

DRAWTEXT_FIX(ISLASTBAR,0.24,0,0,'加仓~红箭头'),COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0.36,0,0,'准备卖~蓝色'),COLORBLUE;

DRAWTEXT_FIX(ISLASTBAR,0.48,0,0,'卖出~青色'),COLORCYAN;

DRAWTEXT_FIX(ISLASTBAR,0.60,0,0,'坚决卖~绿箭头'),COLORGREEN;

DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,'{红色柱~买入}'),COLORRED;

DRAWTEXT_FIX(ISLASTBAR,0,0.24,0,'{绿色柱~卖出}'),COLORGREEN;





回复

举报

QQ|

GMT+8, 2024-11-17 18:57

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