牛眼空中加油指标 通达信公式(附图)

[复制链接]
查看177 | 回复0 | 2021-8-20 16:09:06 | 显示全部楼层 |阅读模式

限制:= (STRCMP(STKNAME,'ST')=-1 OR STRCMP(STKNAME,'*ST')=-1)=0{滤除ST股票}
AND BARSCOUNT(C)>60{上市天数大于10天的股票,用户可修改本数值}
AND FINANCE(7)<2000000000 AND FINANCE(33)>0;
DIF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIF,9);
MD :=2*(DIF-DEA);
T:=BARSLAST(DIF<0 AND DEA<0 AND CROSS(DIF,DEA));
TJ:=EVERY(MD>0,4) AND MD>REF(MD,1) AND REF(MD,1)<REF(MD,2) AND REF(MD,2)<REF(MD,3) AND REF(MD,3)<REF(MD,4) AND MD>0 AND DIF>0 ;
水上漂1:=COUNT(TJ,T)=1 AND TJ AND 限制;
水上漂:SUM(水上漂1,1);
TJ2:=EVERY(MD>0,4) AND MD>REF(MD,1) AND REF(MD,1)<REF(MD,2) AND REF(MD,2)<REF(MD,3) AND REF(MD,3)<REF(MD,4) AND MD>0 AND DIF<0 AND DEA<0;
水下漂1:=COUNT(TJ2,T)=1 AND TJ2 AND 限制;
水下漂:SUM(水下漂1, 1);
A1:=HHV(EMA(VOL/5,4),240);
A2:=LLV(EMA(VOL/5,4),240);
A3:=MA(CLOSE,35);
A4:=EMA(CLOSE,15)-EMA(CLOSE,30);
A5:=EMA(A4,12);
A6:=2*(A4-A5);
A7:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
A8:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
BA:=(CLOSE-LLV(LOW,225))/(HHV(HIGH,225)-LLV(LOW,225))*100;
B1:=SMA(A7,3,1);
B2:=SMA(A8,15,1);
B3:=SMA(BA,45,1);
ZZ:="MACD.MACD">0;
B4:=(B3-REF(B3,1))*50;
B5:=(B2-REF(B2,1))*10;
B6:=REF(B2,1)-REF(B3,1);
B7:=(B2-B6-B3)*30;
B8:=B1-REF(B1,1);
B10:= EMA((EMA(VOL/5,4)-A2)/A2*A3,13);
A9:=EMA((A1-EMA(VOL/5,4))/EMA(VOL/5,4)*A3,13);
B9:=A6>=-0.035 AND A6<=0.045 AND CLOSE>MA(CLOSE,5)
AND CLOSE>MA(CLOSE,10) AND A9>-100;
DD:=EXIST(C/REF(C,1)>1.055,60);
空中加油: IF(B9 AND B8>7 AND REF(B8,1)<0 AND B8-REF(B8,1)>9,1,0) AND DD AND ZZ AND 限制, COLORRED;
MACD:=(DIF-DEA)*2;
TTT:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
TT:=LLV(TTT,2)=LLV(TTT,7) AND COUNT(TTT<0,2) AND CROSS(TTT,MA(TTT,2));
TT1:=IF((HHV(ABS(((HHV(CLOSE,6)/LLV(CLOSE,6))-1)),6)>(10/100)),3,6);
TT2:=IF(MINUTE=5,TT1*48,IF(MINUTE=15,TT1*16,IF(MINUTE=30,TT1*8,IF(MINUTE=60,TT1*4,TT1))));
TT3:=IF( VOL=0,MA(CLOSE,TT2),((SUM(AMOUNT,TT2)/SUM(VOL,TT2))/100));
TT4:=REF(C>O OR C<O,24) AND CROSS(C,REF(TT3,1));
TT5:=H/C<1.01 AND REF(C/REF(C,1)<1.095,11);
TT6:=REF(C>O OR C<O,1) AND MACD>0 AND REF(MACD<0,1);
牛眼:TT AND TT4 AND TT5 AND TT6;
{DRAWICON(XG,L*0.95,1);
STICKLINE(XG,0,8,2,0),COLORYELLOW;};

14ZD4cB50-435O.jpg

14ZD4cB50-435O.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则