您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信知识>>正文内容

求助!老师帮我改下公式 [通达信]

  • 咨询内容: 原大智慧凤凰线公式,想改通达信使用。小弟我水平不够,改了半天都没有成功,来此求助老师!先行谢过!!! xopen:=(ref(o,N)+ref(c,N))/2; xclose:=close; xhigh:=max(high,xopen); xlow:=min(low,xopen); volality:=ma(xhigh-xlow,8); 凰线:ma(xclose,5)+volality/2; 凤线:ma(xclose,5)-volality/2; bu:=cross(xclose,凰线); sel:=cross(凤线,xclose); var1:=barslast(bu); var2:=barslast(sel); drawicon(ref(var1,1)>var2 and var1=0,xlow,7),align1,valign0; drawicon(ref(var2,1)>var1 and var2=0,xhigh,8),align1,valign2; STICKLINE(xclose>xopen and var1xopen and var1xopen and var1var2,xclose ,xopen ,8,0 ),colorgreen; STICKLINE(xclose<=xopen and var1>var2,xopen ,xhigh ,0.5,0 ),colorgreen; STICKLINE(xclose<=xopen and var1>var2,xclose,xlow ,0.5,0 ),colorgreen; STICKLINE(xclose>xopen and var1>var2,xclose ,xopen ,8,0 ),colorblue; STICKLINE(xclose>xopen and var1>var2,xclose,xhigh ,0.5,0 ),colorblue; STICKLINE(xclose>xopen and var1>var2,xopen,xlow ,0.5,0 ),colorblue;

     

  • 通达信客服:  XOPEN:=(REF(O,N)+REF(C,N))/2;
    XCLOSE:=CLOSE;
    XHIGH:=MAX(HIGH,XOPEN);
    XLOW:=MIN(LOW,XOPEN);
    VOLALITY:=MA(XHIGH-XLOW,8);
    凰线:MA(XCLOSE,5)+VOLALITY/2;
    凤线:MA(XCLOSE,5)-VOLALITY/2;
    BU:=CROSS(XCLOSE,凰线);
    SEL:=CROSS(凤线,XCLOSE);
    VAR1:=BARSLAST(BU);
    VAR2:=BARSLAST(SEL);
    DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,7);
    DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,8);
    {STICKLINE(XCLOSE>XOPEN AND VAR1XOPEN AND VAR1XOPEN
    AND VAR1<="XOPEN" AND="AND" VAR1VAR2,XCLOSE ,XOPEN ,8,0 ),COLORGREEN;}
    STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLORGREEN;
    STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLORGREEN;
    STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,8,0 ),COLORBLUE;
    STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORBLUE;
    STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORBLUE;

    减肥了

     

  • 通达信技术部: 谢谢老师!

     

  • 网友回复: 当前公式 : 凰凤 (指标画线公式) 错误句 : OPEN:=(REF(O,N)+REF(C,N)/2 详细信息 : 变量 OPEN 与函数名重复! 错误起始位置 : 0 ; 长度: 4 这是怎么了?再次感谢!

     

  • 网友回复:  XOPEN:=(REF(O,10)+REF(C,10))/2;
    XCLOSE:=CLOSE;
    XHIGH:=MAX(HIGH,XOPEN);
    XLOW:=MIN(LOW,XOPEN);
    VOLALITY:=MA(XHIGH-XLOW,8);
    凰线:MA(XCLOSE,5)+VOLALITY/2;
    凤线:MA(XCLOSE,5)-VOLALITY/2;
    BU:=CROSS(XCLOSE,凰线);
    SEL:=CROSS(凤线,XCLOSE);
    VAR1:=BARSLAST(BU);
    VAR2:=BARSLAST(SEL);
    DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,XLOW,7);
    DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,XHIGH,8);
    {STICKLINE(XCLOSE>XOPEN AND VAR1XOPEN AND VAR1XOPEN
    AND VAR1<="XOPEN" AND="AND" VAR1VAR2,XCLOSE ,XOPEN ,8,0 ),COLORGREEN;}
    STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLORGREEN;
    STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLORGREEN;
    STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,8,0 ),COLORBLUE;
    STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORBLUE;
    STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORBLUE;

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

相关文章

    没有相关内容