准确预判当日大盘强弱的一个思路,是源码,不加密,不故弄玄虚!!! 想想我们小散自从掉进股市这个黑洞中,就注定了要饱受流血流泪的痛苦,不禁悲愤填膺啊! 真心想让看到本篇文章的朋友们小走一些弯路 ,从此以后每次操作都能获得些胜利果实

     相关简介: 通达信强于大盘副图指标公式                                

  授权方式:免费版

  指标评级:★★★★★

  指标分类:策略

  画线方法:副图/主图

未来函数检测结果:

         暂未发现存在未来函数

通达信强于大盘副图指标公式源码:

    A:=LLV(10000/C,200);
    个股:A*C,LINETHICK2;
    B:=LLV(10000/"999999$C",200);
    上证:B*"999999$C";
    CC:=LLV(10000/"399006$C",200);
    创业板:CC*"399006$C";
    程序化指标制作:0,NODRAW;
    角度1:=ATAN((MA(个股,5)/REF(MA(个股,5),1)-1)*100)*180/3.1416;
    角度2:=ATAN((MA(上证,5)/REF(MA(上证,5),1)-1)*100)*180/3.1416;
    角度3:=ATAN((MA(创业板,5)/REF(MA(创业板,5),1)-1)*100)*180/3.1416;
    IF(角度1>角度2OR角度1>角度2,个股,DRAWNULL),COLORRED,LINETHICK2;
    M5:MA("DPSJYY.SP",5);
    M10:MA("DPSJYY.SP",10);
    M20:MA("DPSJYY.SP",20);
    M55:MA("DPSJYY.SP",55),LINETHICK2;
    M120:MA("DPSJYY.SP",125),LINETHICK2;
    M250:MA("DPSJYY.SP",250),COLORCYAN,LINETHICK2;
    STICKLINE("DPSJYY.SP">"DPSJYY.KP"OR"DPSJYY.SP"="DPSJYY.KP"AND"DPSJYY.SP">REF("DPSJYY.SP",1),"DPSJYY.ZD","DPSJYY.ZG",0.5,0),LINETHICK5,color010000;
    STICKLINE("DPSJYY.SP">"DPSJYY.KP"OR"DPSJYY.SP"="DPSJYY.KP"AND"DPSJYY.SP">REF("DPSJYY.SP",1),"DPSJYY.KP","DPSJYY.SP",7,0),LINETHICK5,color010000;
    STICKLINE("DPSJYY.SP"<"DPSJYY.KP"OR"DPSJYY.SP"="DPSJYY.KP"AND"DPSJYY.SP"<=REF("DPSJYY.SP",1),"DPSJYY.ZD","DPSJYY.ZG",0.5,0),LINETHICK5,color010000;
    STICKLINE("DPSJYY.SP"<"DPSJYY.KP"OR"DPSJYY.SP"="DPSJYY.KP"AND"DPSJYY.SP"<=REF("DPSJYY.SP",1),"DPSJYY.KP","DPSJYY.SP",7,0),LINETHICK5,color010000;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",7,0),color0022CC;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",6,0),color0033DD;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",5,0),color0044EE;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",4,0),color0055FF;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",3,0),color0066FF;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",2,0),color0077FF;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",1,0),color0088FF;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.SP","DPSJYY.ZG",0,0),color0088FF;
    STICKLINE("DPSJYY.SP">="DPSJYY.KP","DPSJYY.KP","DPSJYY.ZD",0,0),color0088FF;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",7,0),color00AA00;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",6,0),color00BB11;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",5,0),color00CC22;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",4,0),color00DD22;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",3,0),color00EE33;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",2,0),color00FF33;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.SP","DPSJYY.KP",1,0),color00FF66;
    STICKLINE("DPSJYY.SP"<="DPSJYY.KP","DPSJYY.ZG","DPSJYY.ZD",0,0),color00FF66;
    DRAWGBKLAST(c>1,STRIP(RGB(15,80,225),RGB(0,0,0),1));
    ZG:if((STRTONUM(STKLABEL)>2000andSTRTONUM(STKLABEL)<2999ORSTRTONUM(STKLABEL)=399005),"399005$HIGH",IF((STRTONUM(STKLABEL)>300000andSTRTONUM(STKLABEL)<300500ORSTRTONUM(STKLABEL)=399006),"399006$HIGH",IF((INBLOCK('沪深300')=1),"399300$HIGH",INDEXH)));
    ZD:if((STRTONUM(STKLABEL)>2000andSTRTONUM(STKLABEL)<2999ORSTRTONUM(STKLABEL)=399005),"399005$LOW",IF((STRTONUM(STKLABEL)>300000andSTRTONUM(STKLABEL)<300500ORSTRTONUM(STKLABEL)=399006),"399006$LOW",IF((INBLOCK('沪深300')=1),"399300$LOW",INDEXl)));
    SP:if((STRTONUM(STKLABEL)>2000andSTRTONUM(STKLABEL)<2999ORSTRTONUM(STKLABEL)=399005),"399005$CLOSE",IF((STRTONUM(STKLABEL)>300000andSTRTONUM(STKLABEL)<300500ORSTRTONUM(STKLABEL)=399006),"399006$CLOSE",IF((INBLOCK('沪深300')=1),"399300$CLOSE",INDEXc)));
    kP:if((STRTONUM(STKLABEL)>2000andSTRTONUM(STKLABEL)<2999ORSTRTONUM(STKLABEL)=399005),"399005$open",IF((STRTONUM(STKLABEL)>300000andSTRTONUM(STKLABEL)<300500ORSTRTONUM(STKLABEL)=399006),"399006$open",IF((INBLOCK('沪深300')=1),"399300$open",INDEXo)));

通达信强于大盘副图指标公式源码注释翻译结果

    A赋值:200日内10000/收盘价的最低值
    输出个股:A*收盘价,线宽为2
    B赋值:200日内10000/"999999$收盘价"的最低值
    输出上证:B*"999999$收盘价"
    CC赋值:200日内10000/"399006$收盘价"的最低值
    输出创业板:CC*"399006$收盘价"
    输出程序化指标制作:0,NODRAW
    角度1赋值:(个股的5日简单移动平均/1日前的个股的5日简单移动平均-1)*100的反正切*180/3.1416
    角度2赋值:(上证的5日简单移动平均/1日前的上证的5日简单移动平均-1)*100的反正切*180/3.1416
    角度3赋值:(创业板的5日简单移动平均/1日前的创业板的5日简单移动平均-1)*100的反正切*180/3.1416
    如果角度1>,返回?,否则返回?
    角度2OR角度1>
    角度2,个股,无效数),画红色,线宽为2
    输出M5:"的?日简单移动平均
    DPSJYY.SP"
    ,5)
    输出M10:"的?日简单移动平均
    DPSJYY.SP"
    ,10)
    输出M20:"的?日简单移动平均
    DPSJYY.SP"
    ,20)
    输出M55:"的?日简单移动平均
    DPSJYY.SP"
    ,55),线宽为2
    输出M120:"的?日简单移动平均
    DPSJYY.SP"
    ,125),线宽为2
    输出M250:"的?日简单移动平均
    DPSJYY.SP"
    ,250),画青色,线宽为2
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    "
    DPSJYY.KP"
    OR"
    DPSJYY.SP"
    ="
    DPSJYY.KP"
    AND"
    DPSJYY.SP"
    >
    ?日前的"
    DPSJYY.SP"
    ,1),"
    DPSJYY.ZD"
    ,"
    DPSJYY.ZG"
    ,0.5,0),线宽为5,COLOR010000
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    "
    DPSJYY.KP"
    OR"
    DPSJYY.SP"
    ="
    DPSJYY.KP"
    AND"
    DPSJYY.SP"
    >
    ?日前的"
    DPSJYY.SP"
    ,1),"
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,7,0),线宽为5,COLOR010000
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    "
    DPSJYY.KP"
    OR"
    DPSJYY.SP"
    ="
    DPSJYY.KP"
    AND"
    DPSJYY.SP"
    <
    =?日前的"
    DPSJYY.SP"
    ,1),"
    DPSJYY.ZD"
    ,"
    DPSJYY.ZG"
    ,0.5,0),线宽为5,COLOR010000
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    "
    DPSJYY.KP"
    OR"
    DPSJYY.SP"
    ="
    DPSJYY.KP"
    AND"
    DPSJYY.SP"
    <
    =?日前的"
    DPSJYY.SP"
    ,1),"
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,7,0),线宽为5,COLOR010000
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,7,0),COLOR0022CC
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,6,0),COLOR0033DD
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,5,0),COLOR0044EE
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,4,0),COLOR0055FF
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,3,0),COLOR0066FF
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,2,0),COLOR0077FF
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,1,0),COLOR0088FF
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.ZG"
    ,0,0),COLOR0088FF
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    >
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.KP"
    ,"
    DPSJYY.ZD"
    ,0,0),COLOR0088FF
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,7,0),COLOR00AA00
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,6,0),COLOR00BB11
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,5,0),COLOR00CC22
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,4,0),COLOR00DD22
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,3,0),COLOR00EE33
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,2,0),COLOR00FF33
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.SP"
    ,"
    DPSJYY.KP"
    ,1,0),COLOR00FF66
    当满足条件"时,在?和?位置之间画柱状线,宽度为?,?不为0则画空心柱.
    DPSJYY.SP"
    <
    ="
    DPSJYY.KP"
    ,"
    DPSJYY.ZG"
    ,"
    DPSJYY.ZD"
    ,0,0),COLOR00FF66
    DRAWGBKLAST(收盘价>
    1,STRIP(自定色,自定色,1))
    输出ZG:如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    2000ANDSTRTONUM(STKLABEL)<
    2999ORSTRTONUM(STKLABEL)=399005),"
    399005$最高价"
    ,如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    300000ANDSTRTONUM(STKLABEL)<
    300500ORSTRTONUM(STKLABEL)=399006),"
    399006$最高价"
    ,如果(属于某板块=1),返回",否则返回?
    399300$最高价"
    ,大盘的最高价)))
    输出ZD:如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    2000ANDSTRTONUM(STKLABEL)<
    2999ORSTRTONUM(STKLABEL)=399005),"
    399005$最低价"
    ,如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    300000ANDSTRTONUM(STKLABEL)<
    300500ORSTRTONUM(STKLABEL)=399006),"
    399006$最低价"
    ,如果(属于某板块=1),返回",否则返回?
    399300$最低价"
    ,大盘的最低价)))
    输出SP:如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    2000ANDSTRTONUM(STKLABEL)<
    2999ORSTRTONUM(STKLABEL)=399005),"
    399005$收盘价"
    ,如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    300000ANDSTRTONUM(STKLABEL)<
    300500ORSTRTONUM(STKLABEL)=399006),"
    399006$收盘价"
    ,如果(属于某板块=1),返回",否则返回?
    399300$收盘价"
    ,大盘的收盘价)))
    输出KP:如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    2000ANDSTRTONUM(STKLABEL)<
    2999ORSTRTONUM(STKLABEL)=399005),"
    399005$开盘价"
    ,如果(STRTONUM(STKLABEL)>,返回?,否则返回?
    300000ANDSTRTONUM(STKLABEL)<
    300500ORSTRTONUM(STKLABEL)=399006),"
    399006$开盘价"
    ,如果(属于某板块=1),返回",否则返回?
    399300$开盘价"
    ,大盘的开盘价)))

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。