对子数:形如9.22,12.21, 4.44,11.00等
顺子数:形如3.89,4.98,7.56等
进一步的了解,自行百度。
在通达里查找价格为对子数的个股,有两个自带的函数,
INTPART(X),返回数值的整数部分,
FRACPART(x),返回X的小数部分。
注意:取有小数部分,用round()或round2(,)取精度.不进行四舍五入的话,可能有的票选不出来.
一.对子数公式{条件选股公式二}
1
X:=ROUND2(L,4);
SHI:=INTPART(X/10);
GE:=INTPART(X)-SHI*10;
XSA:=ROUND(FRACPART(X)*100);
XS:=INTPART(ROUND2(FRACPART(X),4)*100);
JIAO:=INTPART(XS/10);
FEN:=XS-JIAO*10;
{多种类型对子数或其变异形式:}
SHUNZI:=FEN=JIAO-1 AND JIAO>1;
SHUNZI2:=FEN=JIAO+1;
AABB:=SHI=GE AND JIAO=FEN;
ABAB:=SHI=JIAO AND GE=FEN;
ABBA:=SHI=FEN AND GE=JIAO;
AAAA:=GE=JIAO AND JIAO=FEN AND SHI=JIAO;
{下面两句等效}
AA:=FEN=JIAO;
AA1:=MOD(FRACPART(X)*100,11)=0;
{下面五句等效}
AAA:=GE=JIAO AND JIAO=FEN AND SHI=0;
AAA1:=INTPART(FRACPART(L)*100)=INTPART(L)+INTPART(L)*10;
AAA2:=MOD(FRACPART(X)*100,11)=0 AND INTPART(X)=INTPART(ROUND(FRACPART(X)*100)/10);
AAA3:=MOD(FRACPART(X)*100,11)=0 AND INTPART(X)=INTPART(FRACPART(X)*10);
二.技术指标(副图)
X:ROUND2(L,4),NODRAW;
SHI:INTPART(X/10),NODRAW;
GE:INTPART(X)-SHI*10,NODRAW;
XS:ROUND(FRACPART(X)*100),NODRAW;
XS2:ROUND2(FRACPART(X),2)*100,NODRAW;
JIAO:INTPART(XS/10),NODRAW;
FEN:XS-JIAO*10,NODRAW;
AA:FEN=JIAO,NODRAW;