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

改指标去高低点 [文华财经]

  • 咨询内容: 老师,能不能把这个指标的虚线高低点去掉,只显示趋势线,然后指标中的趋势线改成黄色的虚线,谢谢 TY:=C;HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
    LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);

    HH:BACKSET(ISLASTBAR,SUMBARS(HD,2)),NODRAW;
    LL:BACKSET(ISLASTBAR,SUMBARS(LD,2)),NODRAW;
    DRAWLINE1(HD&&HH,H,HD&&HH,H,1);
    DRAWLINE1(LD&&LL,L,LD&&LL,L,1);

    高点压力:TRENDLINES(HD&&HH,H,HD&&HH,H),NODRAW;
    低点支撑:TRENDLINES(LD&&LL,L,LD&&LL,L),NODRAW;
    A:=REF(H,BARSLAST(HD));
    B:=REF(L,BARSLAST(LD));
    T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
    T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
    压力线:=IF(T1,A,A),COLORCYAN,DOT;
    支撑线:=IF(T1,B,B),COLORYELLOW,DOT;
    DRAWSL(1,压力线,0,1,0,COLORCYAN),DOT;
    DRAWSL(1,支撑线,0,1,0,COLORYELLOW),DOT;

    VAR3:=LLV(H,240);
    VAR4:=100*(C-VAR3)/VAR3;
    VAR5:=(C-LLV(L,528))/(HHV(H,528)-LLV(L,528))*100;
    VAR6:=(C-LLV(C,530))/(HHV(C,530)-LLV(C,530))*100;
    VAR7:=0;
    VAR8:=MA(HHV(C-REF(C,1),0),34)/MA(ABS(C-REF(C,1)),7)*100;
    VAR9:=MA(HHV(C-REF(C,1),0),13)/MA(ABS(C-REF(C,1)),13)*100;
    VARA:=BARSCOUNT(C);
    VARB:=VAR8<20 AND VAR9<23 AND VARA>35;
    VARC:=VARB AND COUNT(VARB,1)=1;
    VARD:=EMA(C,21)-EMA(C,8);
    VARE:=EMA(VARD,5);
    VARF:=TROUGH(C,6,1,0)<4 AND CROSS(VARD,VARE);
    VAR10:=IF(TROUGH(C,16,1,0)=0 AND H>L+0.04,4,0);
    VAR11:=ZIGZAG(C,6,0)>REF(ZIGZAG(C,6,0),1)
    AND REF(ZIGZAG(C,6,0),1)<=REF(ZIGZAG(C,6,0),2)
    AND REF(ZIGZAG(C,6,0),2)<=REF(ZIGZAG(C,6,0),3);
    VAR12:=ZIGZAG(C,6,0)<REF(ZIGZAG(C,6,0),1)
    AND REF(ZIGZAG(C,6,0),1)>=REF(ZIGZAG(C,6,0),2)
    AND REF(ZIGZAG(C,6,0),2)>=REF(ZIGZAG(C,6,0),3);
    VAR13:=ZIGZAG(C,22,0)>REF(ZIGZAG(C,22,0),1)
    AND REF(ZIGZAG(C,22,0),1)<=REF(ZIGZAG(C,22,0),2)
    AND REF(ZIGZAG(C,22,0),2)<=REF(ZIGZAG(C,22,0),3);
    VAR14:=ZIGZAG(C,22,0)<REF(ZIGZAG(C,22,0),1)
    AND REF(ZIGZAG(C,22,0),1)>=REF(ZIGZAG(C,22,0),2)
    AND REF(ZIGZAG(C,22,0),2)>=REF(ZIGZAG(C,22,0),3);
    VAR15:=ZIGZAG(C,51,0)>REF(ZIGZAG(C,51,0),1)
    AND REF(ZIGZAG(C,51,0),1)<=REF(ZIGZAG(C,51,0),2)
    AND REF(ZIGZAG(C,51,0),2)<=REF(ZIGZAG(C,51,0),3);
    VAR16:=ZIGZAG(C,51,0)<REF(ZIGZAG(C,51,0),1)
    AND REF(ZIGZAG(C,51,0),1)>=REF(ZIGZAG(C,51,0),2)
    AND REF(ZIGZAG(C,51,0),2)>=REF(ZIGZAG(C,51,0),3);
    VAR1

     

     来源:程序化99

  • 文华技术人员: 参考
     下载信息  [文件大小:   下载次数: ]文件名:新建文本文档 (2).txt

      

 

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

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

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

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


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

相关文章

    没有相关内容