通达信:=C-REF(C,1);{选股公式-选股指标www.gs6699.com}
牛股买卖指标:=100*EMA(EMA(通达信,6),6)/EMA(EMA(ABS(通达信),6),6);
ssss3:=CROSS(EMA(C,19),EMA(C,7));
ssss4:=CROSS(EMA(C,7),EMA(C,19));
vvvv1:=L=LLV(L,BARSLAST(ssss3)+1);
vvvv2:=LLV(L,BARSLAST(ssss3)+1);
vvvv3:=H=HHV(H,BARSLAST(ssss4)+1);
vvvv4:=HHV(H,BARSLAST(ssss4)+1);
ssssA:=DRAWLINE(vvvv1,vvvv2,vvvv3,vvvv4,0),COLORMAGENTA,LINETHICK2;
vvvv5:=H=HHV(H,BARSLAST(ssss4)+1);
vvvv6:=HHV(H,BARSLAST(ssss4)+1);
vvvv7:=L=LLV(L,BARSLAST(ssss3)+1);
vvvv8:=LLV(L,BARSLAST(ssss3)+1);
ssssB:=DRAWLINE(vvvv5,vvvv6,vvvv7,vvvv8,0),COLORCYAN,LINETHICK2;
vvvv9:=LLV(牛股买卖指标,2)=LLV(牛股买卖指标,7);
vvvv91:=COUNT(牛股买卖指标<0,2);
vvvv92:=CROSS(牛股买卖指标,MA(牛股买卖指标,2));
vvvv93:=REF(ssssB,1)<REF(ssssB,2);
vvvv94:=ssssA>REF(ssssB,1);
vvvv95:(vvvv9 AND vvvv91 AND vvvv92) AND vvvv93 AND vvvv94;
vvvv96:=IF(ssssA<REF(ssssA,1) AND ssssB=ssssA,1,0);
vvvv97:=IF(ssssB<REF(ssssB,1) AND ssssB=ssssA,1,0);
vvvv98:IF(ssssB<REF(ssssB,1) AND ssssB<ssssA,23,0),STICK,COLOR000088,LINETHICK3;
STICKLINE(ssssB<REF(ssssB,1),0,35,2,0)COLOR006600;
vvvv99:IF(REF(vvvv96,1)=0 AND vvvv96>=1,60,0),STICK,COLORCYAN,LINETHICK5;
vvvv991:IF(REF(vvvv97,1)=0 AND vvvv97>=1,60,0),STICK,COLORRED,LINETHICK3;