您现在的位置:程序化交易>> 期货公式>> 金字塔等>> 其他期货软件知识>>正文内容

帝那波利趋势代码 [金字塔]

  • 咨询内容:

     

    {UP}
    C>=Ref(Mov(C,3,S),-3) AND
    (Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))>=
    (PREV+(0.199*((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))-PREV))) AND
    (Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))>=
    Ref((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E)),-1)

     

    {DOWN};
    C<=Ref(Mov(C,3,S),-3) AND
    (Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))<=
    (PREV+(0.199*((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))-PREV))) AND
    (Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))<=
    Ref((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E)),-1){jimt};

     

  • 金字塔客服: 楼主的MOV函数和PREV和E都是什么意思,看不懂 [此贴子已经被作者于2011-3-7 16:03:05编辑过]

     

  • 用户回复:

    MOV就是移动平均线,最后是E的话是EMA的意思,是S的话是SMA的意思,这个是确定的

     

    PREV是类似公式重复计算前一根的意思

     

     

    [此贴子已经被作者于2011-3-7 16:53:19编辑过]

     

  • 网友回复: Metastock的语法

     

  • 网友回复:

    PREV
    The PREV constant allows you to create self-referencing formulas.  A self referencing formula is one that is able to reference the "previous" period's value of itself.
    For example, the following is an example of a self referencing formula:
    ((H+L+C)/3) + PREV
    This simple formula divides the high, low, and closing prices by 3 and then adds this value to yesterday's value of the ((H+L+C)/3).
    The calculation of the popular indicator On Balance Volume illustrates the use of the PREV function.

    (if(c>ref(c,-1),1,-1)*volume)+PREV
    Although On Balance Volume can be calculated without the use of the PREV function, an exponential moving average cannot (other than using the mov() function).  The following formula shows how a 18% exponential moving average (approximately 10-periods) is calculated using the PREV function.
    (close*0.18)+(PREV*0.82)


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

相关文章

    没有相关内容