通达信高山顶指标公式
通达信给力买卖指标公式
通达信高山顶指标公式:
Var5:=llv(l,75);
Var6:=hhv(h,75);
Var7:=(Var6-Var5)/200;
Var8:=SMA((c-Var5)/Var7,20,1);
VarA:=3*Var8-2*sma(Var8,15,1);
主力: (100-VarA),LINETHICK2,COLOR3300FF;
yyu:=ema((c+l+h)/3,3);
a8:=abs(ema(c,100)-ema(c,10))/ema((c+l+h)/3,3)*c*2+yyu;
a9:=abs(ema(c,100)-ema(c,10))/ema((c+l+h)/3,3)*c+yyu;
X:=(a8-yyu)/(a8+yyu)*500;
xxccc:=(x-50)*2;
天龙:stickline(xxccc<ref(xxccc,1),100 ,110,10,0 ),colorffbb44;
stickline(xxccc>ref(xxccc,1),100 ,110,10,0),color44aaff;
stickline(xxccc<ref(xxccc,1),-100 ,-110,10,0 ),color44aaff;
stickline(xxccc>ref(xxccc,1),-100 ,-110,10,0 ),colorffbb44 ;
a:=(3*c+l+o+h)/6;
b:=(20*a+19*ref(a,1)+18*ref(a,2)+17*ref(a,3)+16*ref(a,4)+15*ref(a,5)+14*ref(a,6)+
13*ref(a,7)+12*ref(a,8)+11*ref(a,9)+10*ref(a,10)+9*ref(a,11)+8*ref(a,12)+7*ref(a,13)+
6*ref(a,14)+5*ref(a,15)+4*ref(a,16)+3*ref(a,17)+2*ref(a,18)+ref(a,20))/210;
d:=ma(b,10);
持仓:stickline(b>d,103 ,107,6,1 ) ,colorred ,linethick2;
空仓:stickline(b<d,103 ,107,6,1 ) ,colorgreen ,linethick2;
中轴:50 ,coloryellow ,pointdot;
强势:80 ,colorred ,pointdot;
DIFF :=( ema(c,20) - ema(c,90))*100;
DEA :=ema(DIFF,45);
macd :=2*(DIFF-DEA);
天时:stickline(DIFF>=0,0,DIFF,8,0),COLORRED;
地利:stickline(DIFF<0,0,DIFF,8,0),COLOR00FF00;
stickline(DEA>=0,0,DEA,8,0),COLORBLUE;
stickline(DEA<0,0,DEA,8,0),COLORYELLOW;
通达信操盘王主图指标公式