通达信头羊加大鱼 选股公式源码分享
{头羊加大鱼}
VAR4:=(CLOSE+HIGH+OPEN+LOW)/4;
VAR6:=XMA(VAR4,32)*(1-100/1000);
VAR7:=MA(CLOSE,60);
VAR30:=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);
VAR31:=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);
VAR32:=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);
VAR33:=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);
VAR34:=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);
VAR35:=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);
VAR36:=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);
VAR37:=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);
VAR73:=TROUGHBARS(3,15,1)<10;
VAR74:=PEAKBARS(3,15,1)<10;
VAR75:=IF(VAR73=1,50,0);
VAR76:=IF(VAR74=1,50,0);
VAR77:=IF(VAR75=50,50,0);
VAR78:=IF(VAR76=50,100,0);
VAR85:=IF(VAR77>REF(VAR77,1),6,0);
VAR86:=IF(VAR78>REF(VAR78,1),0,6);
VAR88:=VAR30+VAR32+VAR34+VAR36;
VAR89:=VAR31+VAR33+VAR35+VAR37;
VAR90:=IF(BARSLAST(VAR86=0)>BARSLAST(VAR85=6),BARSLAST(VAR86=0)+1,0);
VAR91:=IF(BARSLAST(VAR89>0)>BARSLAST(VAR88>0),BARSLAST(VAR89>0)+1,0);
VAR95:=SMA(HIGH,21,2)*1.05;
VAR98:=SMA(CLOSE,2,1);
VAR100:=VAR6>VAR7 AND LOW<=VAR6 AND VAR6>REF(VAR6,1) AND VAR90>0 AND VAR91>0 AND REF(VAR6,1)>REF(VAR6,2);
头羊加大鱼:IF(VAR100>0 AND VAR6>REF(VAR6,1) AND REF(VAR6,1)>REF(VAR6,2) AND VAR98>VAR95,50,0),COLORRED,LINETHICK5;
上一篇:通达信短线宝,金钻指标源码分享 下一篇:通达信黑马起航(源码 副图 贴图)