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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信熊转牛买点之决战20线主图源码


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

以下是通达信熊转牛买点之决战20线主图源码

在实战中 20日均线通常被看做是工作线 ,操盘线。一些熟练稳健的股市参与者 ,当股价处在20线之下时基本不动手。今天和大家分享一个主图,图上很清晰的展示出个股从熊途中逐渐走出来,有些甚至短周期内成为大牛。最好尾盘出现“决战20线”的信号后买入,常规情况下 ,会有不菲的收益。止损以20线为参照物 ,若买进后,有效跌破20线止损出局。


半分位:=(O+C)/2;
昨半分位:=REF(半分位,1);
STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0);
DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位);
DRAWTEXT(ISLASTBAR,昨半分位,' 昨半分位');
DRAWTEXT_FIX(1,0.3,0.06,0,DYBLOCK)COLOR00FFFF;
DRAWTEXT_FIX(1,0.3,0.0,0,HYBLOCK)COLORWHITE;
DRAWTEXT_FIX(1,0.36,0.0,0,GNBLOCK)COLORWHITE;
DRAWTEXT_FIX(1,0.36,0.06,0,FGBLOCK)COLORYELLOW;
{DRAWTEXT_FIX(C>0,0.8,0.15,0,ZDBLOCK)COLORLIRED;}
DRAWTEXT_FIX(C>0,0.3,1,0,EXTERNSTR(0,1)),COLORWHITE;
ZHR:=IF(C/REF(C,1)*100-100>9.9,1,0);
STICKLINE(ZHR,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(ZHR,H,L,0,0),COLORMAGENTA;
MA1:MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:MA(CLOSE,20),LINETHICK3,COLORMAGENTA;
MA4:=MA(CLOSE,60);
MA5:MA(CLOSE,60),LINETHICK3,COLOR007FFF;
MA6:MA(CLOSE,120)COLORWHITE;
MA7:MA(CLOSE,250) COLORRED;
TY:=C;
AB1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AB1,10); CC1:=BACKSET(BB1,10+1); HHD:=FILTER(CC1,10);
AB2:=REF(TY,10)=LLV(TY,2*10+1); BB2:=FILTER(AB2,10); CC2:=BACKSET(BB2,10+1); LLD:=FILTER(CC2,10);
前期高位:REF(C,BARSLAST(HHD)),COLORYELLOW,POINTDOT;
STICKLINE(C,前期高位,前期高位,1,0),COLORYELLOW; {黄 收盘虚线};
{QAA:=REF(H,10)=HHV(H,2*10+1);
QB:=BACKSET(QAA,10+1);
QC:=FILTER(QB,10) AND H=HHV(H,10+1);
QD:=BARSLAST(QC);
QE:=IF(QC,CURRBARSCOUNT,0);
QF:=IF(QD,REF(QE,QD),QE);
QG:=CONST(QF);
QH:=REF(QF,QD+1);
QW:=CONST(QH);
{DRAWLINE(CURRBARSCOUNT=QW,H,CURRBARSCOUNT=QG,H,1),COLORBLUE,LINETHICK2;}
涨停:=IF(C/REF(C,1)*100-100>9.9,1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(涨停,H,L,0,0),COLORMAGENTA;
V5:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*57.3;
DS:=MA3>MA4 AND MA4>MA6 AND MA5>MA6 AND MA4>REF(MA4,1) AND MA5>REF(MA5,1) AND MA6>REF(MA6,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND EVERY(DYNAINFO(10)>1,3) {AND EVERY(TJ3,1)} ;
TJ:=H>=MA3 AND C>=REF(C,1)*1.015 AND L<=MA3 AND C>REF(C,1);
TJ2:=EXIST(TJ,3);
TJ3:=C>REF(HHV(C,3),1) AND REF(TJ2,1);
TJ4:=TJ3 AND REF(TJ3,1)=0;
DRAWTEXT(TJ4,L,'决战20线')COLORCYAN;







回复

举报

QQ|

GMT+8, 2024-11-18 08:33

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