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

老师帮忙修改个指标 [文华财经]

  • 咨询内容:   {MA1:MA(CLOSE,M1);
    MA2:MA(CLOSE,M2);
    MA3:MA(CLOSE,M3);
    MA4:MA(CLOSE,M4);}
    高:=REF(HHV(H,300),3); 
    低:=REF(LLV(L,300),3);
    【80.9%】:高-(高-低)*0.191,DOTLINE,COLORMAGENTA; 
    【61.8%】:高-(高-低)*0.382,DOTLINE,COLORGREEN; 
    【50%】:高-(高-低)*0.5,COLORRED; 
    【38.2%】:高-(高-低)*0.618,DOTLINE,COLORLIBLUE; 
    【19.8%】:高-(高-低)*0.809,DOTLINE,COLORBLUE;
    顶点:=REFDATE(高,DATE),COLORWHITE,DOTLINE;
    低点:=REFDATE(低,DATE),COLORWHITE,DOTLINE;
    DRAWTEXT(ISLASTBAR,顶点,顶点),COLORWHITE;
    DRAWTEXT(ISLASTBAR,【19.8%】,19.8%),COLORYELLOW;
    DRAWTEXT(ISLASTBAR,【38.2%】,38.2%),COLORMAGENTA;
    {DRAWTEXT(ISLASTBAR,【50%】,50%),COLORRED;}
    DRAWTEXT(ISLASTBAR,【61.8%】,61.8%),COLORMAGENTA;
    DRAWTEXT(ISLASTBAR,【80.9%】,80.9%),COLORYELLOW;
    DRAWTEXT(ISLASTBAR,低点,低点),COLORWHITE;

    {MA1:MA(CLOSE,M1);
    MA2:MA(CLOSE,M2);
    MA3:MA(CLOSE,M3);
    MA4:MA(CLOSE,M4);}
    高:=REF(HHV(H,300),3); 
    低:=REF(LLV(L,300),3);
    【80.9%】:高-(高-低)*0.191,DOTLINE,COLORMAGENTA; 
    【61.8%】:高-(高-低)*0.382,DOTLINE,COLORGREEN; 
    【50%】:高-(高-低)*0.5,COLORRED; 
    【38.2%】:高-(高-低)*0.618,DOTLINE,COLORLIBLUE; 
    【19.8%】:高-(高-低)*0.809,DOTLINE,COLORBLUE;
    顶点:=REFDATE(高,DATE),COLORWHITE,DOTLINE;
    低点:=REFDATE(低,DATE),COLORWHITE,DOTLINE;
    DRAWTEXT(ISLASTBAR,顶点,顶点),COLORWHITE;
    DRAWTEXT(ISLASTBAR,【19.8%】,19.8%),COLORYELLOW;
    DRAWTEXT(ISLASTBAR,【38.2%】,38.2%),COLORMAGENTA;
    {DRAWTEXT(ISLASTBAR,【50%】,50%),COLORRED;}
    DRAWTEXT(ISLASTBAR,【61.8%】,61.8%),COLORMAGENTA;
    DRAWTEXT(ISLASTBAR,【80.9%】,80.9%),COLORYELLOW;
    DRAWTEXT(ISLASTBAR,低点,低点),COLORWHITE;

     

  • 文华技术人员:  参考:

    :=REF(HHV(H,300),3);

    :=REF(LLV(L,300),3);

    A1:-(-)*0.191,DOT,COLORMAGENTA;

    A2:-(-)*0.382,DOT,COLORGREEN;

    A50:-(-)*0.5,COLORRED;

    A3:-(-)*0.618,DOT,COLORBLUE;

    A4:-(-)*0.809,DOT,COLORBLUE;

    N:=BARSLAST(DATE<>REF(DATE,1))+1;

    顶点:REF(,N),COLORWHITE,DOT;

    低点:REF(,N),COLORWHITE,DOT;

    DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;

    DRAWTEXT(ISLASTBAR,A4,ཏ.8%'),COLORYELLOW;

    DRAWTEXT(ISLASTBAR,A2,ར.2%'),COLORMAGENTA;

    DRAWTEXT(ISLASTBAR,A3,ཹ.8%'),COLORMAGENTA;

    DRAWTEXT(ISLASTBAR,A1,ྌ.9%'),COLORYELLOW;

    DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;

     

  • 文华客服:  DRAWTEXT(ISLASTBAR,A2,ར.2%'),COLORMAGENTA;

    DRAWTEXT(ISLASTBAR,A3,ཹ.8%'),COLORMAGENTA;

    DRAWTEXT(ISLASTBAR,A1,ྌ.9%'),COLORYELLOW;

    DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;



    导入无法识别

     

  • 网友回复:  

    高:=REF(HHV(H,300),3);

    低:=REF(LLV(L,300),3);

    A1:高-(高-低)*0.191,DOT,COLORMAGENTA;

    A2:高-(高-低)*0.382,DOT,COLORGREEN;

    A50:高-(高-低)*0.5,COLORRED;

    A3:高-(高-低)*0.618,DOT,COLORBLUE;

    A4:高-(高-低)*0.809,DOT,COLORBLUE;

    N:=BARSLAST(DATE<>REF(DATE,1))+1;

    顶点:REF(高,N),COLORWHITE,DOT;

    低点:REF(低,N),COLORWHITE,DOT;

    DRAWTEXT(ISLASTBAR,顶点,'顶点'),COLORWHITE;

    DRAWTEXT(ISLASTBAR,A4,Ǝ%'),COLORYELLOW;

    DRAWTEXT(ISLASTBAR,A2,ƈ%'),COLORMAGENTA;

    DRAWTEXT(ISLASTBAR,A3,Ǝ%'),COLORMAGENTA;

    DRAWTEXT(ISLASTBAR,A1,Ə%'),COLORYELLOW;

    DRAWTEXT(ISLASTBAR,低点,'低点'),COLORWHITE;

     

    仅供参考;

 

有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

可联系技术人员 QQ: 1145508240  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容