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

发现大黑马指标源码 飞狐 通达信通用[通达信公式]

  • 飞狐源码:
    [公式源码]发现黑马——飞狐解盘版 , 请老师改通达信公式!



    input:N1(126,1,1260);
    Var3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
    Var4:=(CLOSE-LLV(CLOSE,N1))/(HHV(CLOSE,N1)-LLV(CLOSE,N1))*100;
    Var5:=EMA(CLOSE,2)-EMA(CLOSE,150);
    Var6:=EMA(Var5,100);
    Var7:=2*(Var5-Var6);
    Var8:=POW(Var7,3)*0.1+POW(Var7,1);
    Var9:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
    VarA:=EMA(Var9*0.97,3);
    VarB:=(HIGH+LOW+CLOSE)/3;
    VarC:=(VarB-MA(VarB,14))/(0.015*AVEDEV(VarB,14));
    黑马线: IF(YEAR<2008 AND Var7>0.1,Var8,0)*5,stick ,linethick2 ;
    VarD:=LLV(HIGH,240);
    VarE:=100*(CLOSE-VarD)/VarD;
    VarF:=AMOUNT/VOL;
    Var10:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);
    Var11:=INDEXC;
    Var12:=MA(Var11,5);
    Var13:=MA(Var11,20);
    Var14:=MA(Var11,30);
    Var15:=Var14>Var12*1.08 AND Var13>Var12*1.055;
    Var16:=Var12>Var11*1.03 AND Var13>Var11*1.13;
    Var17:=Var16;
    Var18:=IF(FILTER(Var10<6,5)=1,1,0);
    发现: (Var18 AND VarE<-2.5 AND Var3<5 AND Var4=0)*60;
    Var19:=Var10<6 AND Var17;
    黑马: IF(FILTER(Var19,1)=1,1,0)*80,colorblue , ;
    大黑马: Var19 AND Var18*80,colorblue, ;
    操盘手: Var4;
    Var1A:=CROSS(黑马线,2);
    Var1B:=CROSS(黑马线,4);
    庄拉: IF(FILTER((Var1A OR Var1B) AND Var4<40 AND Var3<40,5)=1,35,0),colorred;
    Var1C:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    Var1D:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    Var1E:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    Var1F:=REF(CLOSE,1);
    Var20:=SMA(MAX(CLOSE-Var1F,0),5,1)/SMA(ABS(CLOSE-Var1F),5,1)*100;
    Var21:=(HIGH+LOW+CLOSE)/3;
    Var22:=(Var21-MA(Var21,14))/(0.015*AVEDEV(Var21,14));
    Var23:=(Var1C>=-15.8 AND Var1C<=-12.2 AND Var1D<=-20.8 AND Var1E<=-27.5 AND Var20<=11.7 AND Var22<=-145)*100;
    Var24:=Var4=0;
    Var25:=Var4=100;
    STICKLINE(Var23>0,90,100,5,0);
    STICKLINE(Var24>0,-3,-9,1,0),colorred ,linethick3;
    STICKLINE(Var25>0,101,105,1,0),linethick3 ,colorgreen ;
    EXPLAIN(Var23>0,'\发现大黑马加把安全锁,全部亏损问它要\');
    EXPLAIN(发现>0,'\短线黑马2.5%\') ;
    EXPLAIN(黑马>0,'\黑马发现10%\');
    EXPLAIN(大黑马,'\获利10%以上\');
    EXPLAIN(HIGH>=HHV(HIGH,20), '\创20天新高\');
    0,colorff8833 ;
    100,colorblue ;





     

  • 通达信:

     

    {INPUT:N1(126,1,1260);}
    VAR3:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);
    VAR4:=(CLOSE-LLV(CLOSE,N1))/(HHV(CLOSE,N1)-LLV(CLOSE,N1))*100;
    VAR5:=EMA(CLOSE,2)-EMA(CLOSE,150);
    VAR6:=EMA(VAR5,100);
    VAR7:=2*(VAR5-VAR6);
    VAR8:=POW(VAR7,3)*0.1+POW(VAR7,1);
    VAR9:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
    VARA:=EMA(VAR9*0.97,3);
    VARB:=(HIGH+LOW+CLOSE)/3;
    VARC:=(VARB-MA(VARB,14))/(0.015*AVEDEV(VARB,14));
    黑马线: IF(YEAR<2008 AND VAR7>0.1,VAR8,0)*5,STICK ,LINETHICK2 ;
    VARD:=LLV(HIGH,240);
    VARE:=100*(CLOSE-VARD)/VARD;
    VARF:=AMOUNT/VOL;
    VAR10:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,5);
    VAR11:=INDEXC;
    VAR12:=MA(VAR11,5);
    VAR13:=MA(VAR11,20);
    VAR14:=MA(VAR11,30);
    VAR15:=VAR14>VAR12*1.08 AND VAR13>VAR12*1.055;
    VAR16:=VAR12>VAR11*1.03 AND VAR13>VAR11*1.13;
    VAR17:=VAR16;
    VAR18:=IF(FILTER(VAR10<6,5)=1,1,0);
    发现: (VAR18 AND VARE<-2.5 AND VAR3<5 AND VAR4=0)*60;
    VAR19:=VAR10<6 AND VAR17;
    黑马: IF(FILTER(VAR19,1)=1,1,0)*70,COLORBLUE , ;
    大黑马: (VAR19 AND VAR18)*80,COLORBLUE, ;
    操盘手: VAR4;
    VAR1A:=CROSS(黑马线,2);
    VAR1B:=CROSS(黑马线,4);
    庄拉: IF(FILTER((VAR1A OR VAR1B) AND VAR4<40 AND VAR3<40,5)=1,35,0),COLORRED;
    VAR1C:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    VAR1D:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    VAR1E:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    VAR1F:=REF(CLOSE,1);
    VAR20:=SMA(MAX(CLOSE-VAR1F,0),5,1)/SMA(ABS(CLOSE-VAR1F),5,1)*100;
    VAR21:=(HIGH+LOW+CLOSE)/3;
    VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));
    VAR23:=(VAR1C>=-15.8 AND VAR1C<=-12.2 AND VAR1D<=-20.8 AND VAR1E<=-27.5 AND VAR20<=11.7 AND VAR22<=-145)*100;
    VAR24:=VAR4=0;
    VAR25:=VAR4=100;
    STICKLINE(VAR23>0,90,100,5,0);
    STICKLINE(VAR24>0,-3,-9,1,0),COLORRED ,LINETHICK3;
    STICKLINE(VAR25>0,101,105,1,0),LINETHICK3 ,COLORGREEN ;
    DRAWTEXT(VAR23>0,1,'发现大黑马加把安全锁,全部亏损问它要');
    DRAWTEXT(发现>0,8,'短线黑马2.5%') ;
    DRAWTEXT(黑马>0,16,'黑马发现10%');
    DRAWTEXT(大黑马,20,'获利10%以上');
    DRAWTEXT(HIGH>=HHV(HIGH,20),25, '创20天新高');
    0,COLORFF8833 ;
    100,COLORBLUE ;

     

 

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

可联系技术人员 QQ: 262069696  点击在线交流进行 有偿 编写!不贵!点击查看价格!

 


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

相关文章

    没有相关内容