马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
通达信编公式常用语之一
编写公式时常用的语句、通式 一、提供以下常用语句,以方便朋友们编写公式时参考使用: 1)今收盘对于N日内最低收盘价的涨幅(%)(c-llv(c,n))/llv(c,n)*100; 2)今收盘价对于N日最高收盘价的跌幅(%)(HHV(C,N)-C)/HHV(C,N)*100; 3)股价在过去N日内运行空间的相对位置 (C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100; 4)股价上方N1%至N2%处的筹码(%) aa:=winner(c+c*n2/100)*100; bb:=winner(c+c*n1/100)*100; aa-bb 5)股价下方N1%至N2%处的筹码(%) (winner(c-c*n1/100)-winner(c-c*n2/100))*100; 6)收盘价N%处的套牢盘 100-(winner(c*N/100))*100; 7)收盘价N%处的获利盘 winner(c*N/100)*100; 8)下影线(MIN(O,C)-L)/L*100; 9)上影线(h-max(o,c))/max(o,c)*100; 10)本周期的涨跌幅(c-ref(c,1))/ref(c,1)*100; 11)振幅 (h-l)/l*100; 12)均线金*(M.N为均线周期) cross(ma(c,m),ma(c,n)) 13)均线多头排列 a1:=ma(c,n1); a2:=ma(c,n2); a3:=ma(c,n3); a4:=ma(c,n4); count(a1>a2 and a2>a3 and a3>a4,3); 14) 均线空头排列 a1:=ma(c,n1); a2:=ma(c,n2); a3:=ma(c,n3); a4:=ma(c,n4); count(a1 15)N日均线向下 aa:=ma(c,n); bb:=ref(aa,2); aa 16)向前N日至M日出现过均线死*(P1 aa:=ma(c,p1); bb:=ma(c,p2); cc:=ref(cross(bb,aa),n); count(cc,m); 17)今日成交量大于N日以来的均量 VOL>MA(VOL,N); 18)低位密集 A1:=COST(85); A2:=COST(15); A3:=A1-A2; A4:=(A1+A2)/2; A5:=A3/A4*100<10; B1:=HHV(H,120); B2:=LLV(L,120); B3:=B1-B2; B4:=(A4-B2) A5 AND B4; 19)换手率VOL/CAPITAL*100; 20)N日盈亏 V1:=VOL/SUM(VOL,N); V2:=DMA(CLOSE,V1); V3: (CLOSE-V2)/V2*100; 21)强势整理 {参数M、N分别代表周期和幅度 m:1 20 2 n:120 5} a1:=abs(close-open)/open<0.015; a2:=count(a1,m)=m; a3:=ref(o,m) ref(close,m)/ref(close,m+1)>1+n/100; a2 and a3 22)高开大阴 {参数m,n分别代表幅度 m:1 10 4 n:1 20 5} OPEN>CLOSE AND OPEN/REF(C,1) >= 1+M/100 AND CLOSE/OPEN<=1-N/100 23)低开大阳线 {参数m,n分别代表幅度 m:1 10 4 n:1 20 7} OPEN<= 1-M/100 AND CLOSE/OPEN>=1+N/100
|