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

麻烦老师把下面的这个指标改成WH6能用的 [文华财经]

  • 咨询内容:  DRAWGBK(c>1,colorrgb(20,80,160),colorrgb(0,0,0),0),colorf80606;
    N:=20;N1:=7;N2:=69;
    T1:=IF((DATE<=1341231),1,0);
    M3:=EMA(CLOSE,3);
    M8:EMA(CLOSE,8),CoLor008000;
    M13:EMA(M8,13),CoLor0000FF;
    M62:EMA(M8,55),CoLorF0F000;
    VAR1:=EMA(M13,62);
    M81:EMA(M62,81),CoLor00FFFF;
    M144:EMA(VAR1,144),Linethick2,CoLor0000FF;
    M250:EMA(VAR1,250),POINTDOT,Linethick2,CoLorF00FF0;
    VAR2:=(CLOSE+HIGH+LOW)/(3);
    VAR3:=(EMA(VAR2,10))*(T1);
    VAR4:=(REF(VAR3,1))*(T1);
    STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),CoLor00FFFF;
    STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),CoLorFF0000;
    VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
    VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
    DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★\n买\n买'),CoLor00FFFF;
    VAR7:=REF(CLOSE,1);
    VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
    VAR9:=CROSS(N2,VAR8);
    VARA:=(FILTER(VAR9,4))*(T1);
    STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,8.5,0),COLOR000075;
    STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0),COLOR000095;
    VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);VARC:=LLV(LOW,34);
    VARD:=HHV(HIGH,34);
    VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
    VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);

    STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,10,0),COLOR000055;
    STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5.5,0),COLOR0000B5;
    VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
    DRAWTEXT(IF((CLOSE<VAR10) 
    AND ((VOL)/(240)>(MA(VOL,5))/(240)) AND(CLOSE>(REF(CLOSE,1))*(1.08)) 
    AND(CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),CoLor0000FF;
    STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0),COLOR0000D5;
    STICKLINE(CLOSE>=OPEN,HIGH,LOW,2.5,0),COLOR0000F5;
    STICKLINE(CLOSE<OPEN,CLOSE,OPEN,10,0),COLOR303000;

    VAR3:=LLV(HIGH,240);
    VAR4:=100*(CLOSE-VAR3)/VAR3;
    VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
    VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
    VAR7:=0;
    STICKLINE(CLOSE<OPEN,CLOSE,OPEN,4,0),COLOR707000;
    STICKLINE(CLOSE<OPEN,HIGH,LOW,2.5,0),COLOR808000;
    VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
    VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
    VAR10:=IF(TROUGHBARS(3,16,1)=0 
    AND HIGH>LOW+0.04,4,0);

    STICKLINE(CLOSE<OPEN,CLOSE,OPEN,8.5,0),COLOR404000;
    STICKLINE(CLOSE<OPEN,CLOSE,OPEN,7,0),COLOR505000;
    STICKLINE(CLOSE<OPEN,CLOSE,OPEN,5.5,0),COLOR606000;
    VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) 
    AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND 
    REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
    VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND 
    REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND 
    REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
    VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND 
    REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND 
    REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
    VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) 
    AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND 
    REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
    VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) 
    AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND 
    REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
    VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) 
    AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND 
    REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
    VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) 
    AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND 
    REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
    VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) 
    AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND 
    REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
    VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);

    DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),8))/(8)>0.6) 
    AND(VOL>=(1.5)*(MA(VOL,5))) AND COUNT((VARE>=VARF),3) 
    AND(REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●\n买进'),CoLorFF00FF;
    DRAWTEXT(IF(((COUNT((CLOSE<REF(CLOSE,1)),13))/(13)>0.6) 
    AND COUNT((VARE>VARF),6) AND (REF(LOW,5)=LLV(LOW,120)) AND 
    REF((CLOSE>=OPEN),4) AND REF((CLOSE>OPEN),3) AND REF((CLOSE>OPEN),2) 
    AND REF((OPEN>CLOSE),1) 
    AND(OPEN>REF(CLOSE,1)),1,0),LOW,'●\n买进'),CoLor00FFFF;
    DRAWTEXT(VARA,(HIGH)*(1.04),'←卖出'),CoLorgreen;

     

  • 文华技术人员:  上边的代码是多个指标的吧,您需要分开写下,我们再为您改写

 

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

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


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

相关文章

    没有相关内容