通达信趋势操盘公式
2019/12/30 18:50:24
趋势操盘—(简单趋势—复杂运算=抄底不败)
{P1:-20 20 -6}
VAR1:=(EMA(C,12)-EMA(C,26))*100+50;
VAR2:=EMA(VAR1,9);
VAR3:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5:=SMA(VAR4,13,8);
VAR6:=SMA(VAR3,21,8);
VAR7:=MA(C,80)-MA(C,10)/7;
VAR8:=EMA(C,5);
VAR9:=MA((LLV(C,9))*1.1,14);
VAR10:=2*VAR9-VAR8-C*0.1;
VAR11:=IF(((VAR8-VAR10)*5>0),(POW((VAR8-VAR10)*5,2))/10,(-1*(POW((VAR8-VAR10)*(5),2)))/(10));
VAR12:=IF((VAR11>0),VAR11-0,12);
VAR13:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
趋势线:CEILING(SMA(VAR5,13,8)),LINETHICK2,COLOR0000FF;
操盘线: MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*
SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORBLUE;
STICKLINE(FILTER(CROSS(趋势线,VAR12)AND 趋势线>REF(C,1) OR CROSS(趋势线,操盘线) AND
趋势线<20 OR 趋势线>REF(趋势线,1)
AND 趋势线<35 AND C>REF(C,1),5),5,20,2,2),COLOR00FF00;
底部:IF((趋势线-VAR6<(-65)),20,40),COLORF0F000;
顶部:IF((趋势线-VAR6>85),80,100),COLORF0F000;
DRAWICON(IF(VAR13<15,15,0),20,1);
黄金区:IF(VAR13<15,15,0),COLORLIMAGENTA,LINETHICK2;
强弱分界:50,POINTDOT,COLORAABBDD,LINETHICK2;
{抄底不败 参数:P1:-20 20 -6}
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
MM:=(BIAS1+2*BIAS2+3*BIAS3)/6;
股价趋势:=MA(MM,3),COLORRED;
买入信号:=EMA(股价趋势,2);
抄底:IF(股价趋势<P1,20,0),COLORFFCCCC;
DRAWTEXT(CROSS(股价趋势,买入信号) AND COUNT(买入信号<P1,2)>1,50,'┻'),COLORRED,LINETHICK3;
STICKLINE((股价趋势<-9),0,0,4,0 ),COLORCC0033;
STICKLINE((股价趋势<-9),0,5,4,0 ),COLORFF9966;
底部预警信号:=
STICKLINE( (股价趋势<-9),0,2,4,0) ,COLORFFCC66;
STICKLINE( (股价趋势<-9),0,8,4,0 ),COLORFFFF66;
XY1272:=
STICKLINE((股价趋势<-12),10 ,-15,4,0) ,COLOR0066FF;
STICKLINE((股价趋势<-12),10 ,-5,4,0 ),COLOR0099FF;
STICKLINE((股价趋势<-12),10 ,0,4,0 ),COLOR00CCFF;
STICKLINE((股价趋势<-12),10 ,3,4,0),COLOR00FFFF;
{CCI顶底显示}
顶:=85;
中:=50;
底:=20;
VAE1:=HHV(HIGH,9)-LLV(LOW,9);
VAE2:=HHV(HIGH,9)-CLOSE;
VAE3:=CLOSE-LLV(LOW,9);
VAE4:=VAE2/VAE1*100-70;
VAE5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAE6:=(2*CLOSE+HIGH+LOW)/4;
VAE7:=SMA(VAE3/VAE1*100,3,1);
VAE8:=LLV(LOW,34);
VAE9:=SMA(VAE7,3,1)-SMA(VAE4,9,1);
VAEA:=IF(VAE9>100,VAE9-100,0);
VAEB:=HHV(HIGH,34);
AA:= VAEA*2;
EE:= EMA((VAE6-VAE8)/(VAEB-VAE8)*100,13);
VAEC:=EMA(0.667*REF(EE,1)+0.333*EE,2);
RR:=SMA(VAE5,20,1),COLORRED;
CC1:=SMA(RR,5,1),COLORGREEN;
STICKLINE(RR>CC1,RR,CC1,1,0),COLORRED;
STICKLINE(CC1>RR,RR,CC1,1,0),COLORGREEN;
CCI进:IF((CROSS(RR,CC1) AND (CC1 < 顶) ),80,0),COLORRED;
{黄底部增强红买入显示}
K2:=EMA(C,5),COLORFFFF00;
K3:=EMA(C,10),COLORFFFF00;
K5:=EMA(C,30),COLORFFFF00;
KK5:=EMA(INDEXC,30),COLORFFFF00;
K6:=2*(K2-K5);
K7:=2*(K2-K3);
K8:=2*(K7+K6),COLORRED;
STICKLINE(CROSS(K8,0),0,6,3,0) ,COLORRED;
K1:=IF(K8>REF(K8,5) AND K3<REF(K3,5) ,1,0 ),COLORYELLOW;
K21:=IF(K8>REF(K8,7) AND K3<REF(K3,7) ,1,0 ),COLORYELLOW;
K31:=IF(K8>REF(K8,9) AND K3<REF(K3,9) ,1,0 ),COLORYELLOW;
K4:=IF(K8>REF(K8,11) AND K3<REF(K3,11) ,1,0 ),COLORYELLOW;
底部1:STICKLINE((K1 OR K21 OR K31 OR K4) AND K8<0 AND K8>REF(K8,1),4,0,8,0) ,COLORYELLOW;
投 股票网 www.t ou18.cn
股市公式下载推荐