N:=9;
随机值:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
KSMA:=SMA(随机值,3,1);{公式TWXA}
DSMA:=SMA(KSMA,3,1);
M1:=N-1;{HTTP://BLOG.SINA.COM.CN/TWX1149}
F:=HHV(HIGH,M1)-LLV(LOW,M1);
K:=KSMA/3*2+(CLOSE-LLV(LOW,M1))/F*100/3;
D:=DSMA/3*2+K/3;
J:=3*K-2*D;{}
X1:=(J*9+DSMA*12-KSMA*14)*F/700+LLV(LOW,M1);
X3:=IF(CLOSE>500,100,1);
X4:=IF(CLOSE>500,1,10);
上位:(F*80/100+LLV(LOW,M1));
TSX:X1;{有问题请加QQ563094842咨询}
KD:((DSMA*3-KSMA*2)*F/100+LLV(LOW,M1));
下位:(F*20/100+LLV(LOW,M1));
MA13:MA(X1,13);