您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

ATR荆轮指标 [文华财经]

:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  ATR := MA(TR,N);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  T:=BARSLAST(STARTDATE=DATE AND STARTTIME=TIME);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  m1:=if(t<m,t+1,m);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  多止:LLV(L,M1)+RATIO*ATR*(T);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  空止:hhv(h,m1)-RATIO*ATR*(T);:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  参数::="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  参数名 缺省 最大 最小 步长:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  stardate 1 999999 0 1:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  startime 0 999999 0 1:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  m 10 999999 0 1:="" none;="" font-weight:="" 400;="" color:="" rgb(51,51,51);="" font-style:="" text-align:="" justify;="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(238,238,238);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />  

 

 来源:程序化99

  • 文华技术人员: 参考:
    STARTDATE:=200102;
    STARTTIME:=0900;
    M:=10;
    N:=10;
    RATIO:=1;
    TR := MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
    ATR := MA(TR,N);
    T:=BARSLAST(STARTDATE=DATE AND STARTTIME=TIME);
    M1:=IF(T<M,T+1,M);
    多止:LLV(L,M1)+RATIO*ATR*(T);
    空止:HHV(H,M1)-RATIO*ATR*(T);

     

     来源: WWW.CXH99.COM

  • 文华客服:  谢谢!

     

  • 网友回复:  带入之后没有显示??我哪里出错?

     

  • 网友回复:  需要加载到小周期上查看的,您也可以调整下时间
    比如200102就是2020年1月2日,0900就是9点




    文件名:12.jpg

  •  

    有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

    可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

    怎么收费,代编流程等详情请点击阅读!

    (注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


    【字体: 】【打印文章】【查看评论

    相关文章

      没有相关内容