软件名称:[B]大盘分析指标《指南针牛马熊》(数据类、副图、源码)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2011-08-25 09:33:27
软件简介:
指标公式源码,公式共二个,第一个是计算横向统计数据的公式。引用:
{公式名称:牛马熊}
nx:=if(ema(c,3)>max(ema(c,13),ema(c,55)),1,if(ema(c,3)<min(ema(c,13),ema(c,55)),-1,0));
牛:if(nx=1 and v>1,1,0);
马:if(nx=0 and v>1,1,0);
熊:if(nx=-1 and v>1,1,0);第二个公式是副图公式引用:
{公式名称:指南针牛马熊}
DRAWGBK((CLOSE > 0),COLORRGB(0,0,0),COLORRGB(0,0,0),1);
N:=ESTDATA('牛数');
M:=ESTDATA('马数');
X:=ESTDATA('熊数');
AA:=N+M+X;
牛:n/aa*100,COLORRED,linethick2,PRECISION2;
马:m/aa*100,coloryellow,linethick2,PRECISION2;
熊:x/aa*100,color00ff00,linethick2,PRECISION2;
p:=SYSPARAM(1);
W:=SYSPARAM(2);
Q:=SYSPARAM(3);
ZZ:=(Q-W)+1;
hh:=hhv(牛,ZZ);
ll:=llv(牛,ZZ);
zhh:=hh[Q];
zll:=ll[Q];
DRAWICON(牛>=90,90,5);
DRAWICON(熊>=90,90,4);
STICKLINE(BARPOS=W,0,100,420,0),Color390000;
STICKLINE(BARPOS=W+4,0,牛[p],30,0),COLORRED;
STICKLINE(BARPOS=W+10,0,马[p],30,0),coloryellow;
STICKLINE(BARPOS=W+16,0,熊[p],30,0),color00ff00;
DRAWTEXT(BARPOS=W+4,0,'牛'),ALIGN0,ColorD96C00;
DRAWTEXT(BARPOS=W+10,0,'马'),ALIGN0,ColorD96C00;
DRAWTEXT(BARPOS=W+16,0,'熊'),ALIGN0,ColorD96C00;
DRAWTEXT(BARPOS=W+4,牛[p]+10,NUMTOSTR(N[p],0)),ALIGN0,COLORRED;
DRAWTEXT(BARPOS=W+10,马[p]+10,NUMTOSTR(M[p],0)),ALIGN0,coloryellow;
DRAWTEXT(BARPOS=W+16,熊[p]+10,NUMTOSTR(X[p],0)),ALIGN0,color00ff00;
[url=http://www.70822.com/soft/sort013/sort02/down-37981.html]大盘分析指标《指南针牛马熊》(数据类、副图、源码)[/url]