分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]主动率、通吃率指标源码[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2011-05-10 14:41:01
软件简介:

主动率、通吃率指标源码


        小单差:(1-BIGORDER(1,1)-(1-BIGORDER(2,1)))*100,colorgreen,LINETHICK0,precis2;   
特大差:(BIGORDER(1,3)-BIGORDER(2,3))*100,LINETHICK0,coloryellow,precis2;   
大单差:((BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3)))*100,LINETHICK0,ColorFF00FF,precis3;   
大户买:=(BIGORDER(1,2)-BIGORDER(1,3))*AMOUNT/1000000;   
大户卖:=(BIGORDER(2,2)-BIGORDER(2,3))*AMOUNT/1000000;   
大户:=(大户买-大户卖)*100;   
特大买:=BIGORDER(1,3)*AMOUNT/1000000;   
特大卖:=BIGORDER(2,3)*AMOUNT/1000000;   
特大:=(特大买-特大卖)*100;   
bbd:大户+特大,color3d,precis3;   
买入单数:= order(1);   
卖出单数:= order(2);   
单数比:卖出单数/买入单数,LINETHICK0,precis3;   
外盘:=sum(if(DYNAINFO(23)*close,DYNAINFO(23),0),0)*0.003906;   
内盘:=sum(if(DYNAINFO(22)*close,DYNAINFO(22),0),0)*0.003906;   
主动率:(外盘-内盘)/(内盘+外盘)*100,precis3,LINETHICK0;   
买入:=BIGORDER(1,2)*AMOUNT;   
卖出:=BIGORDER(2,2)*AMOUNT;   
净额:=买入-卖出;   
通吃率:净额/amount*100,precis3,LINETHICK0;

===================================

各单差

小单差:(1-BIGORDER(1,1)-(1-BIGORDER(2,1)))*100,colorgreen,LINETHICK0,precis2;   
特大差:(BIGORDER(1,3)-BIGORDER(2,3))*100,LINETHICK0,coloryellow,precis2;   
大单差:((BIGORDER(1,2)-BIGORDER(2,2))-(BIGORDER(1,3)-BIGORDER(2,3)))*100,LINETHICK0,ColorFF00FF,precis3;   



===========================================

BBD

大户买:=(BIGORDER(1,2)-BIGORDER(1,3))*AMOUNT/1000000;   
大户卖:=(BIGORDER(2,2)-BIGORDER(2,3))*AMOUNT/1000000;   
大户:=(大户买-大户卖)*100;   
特大买:=BIGORDER(1,3)*AMOUNT/1000000;   
特大卖:=BIGORDER(2,3)*AMOUNT/1000000;   
特大:=(特大买-特大卖)*100;   
bbd:大户+特大,color3d,precis3;



===========================
单数比

买入单数:= order(1);   
卖出单数:= order(2);   
单数比:卖出单数/买入单数,LINETHICK0,precis3;  



============================
主动率

外盘:=sum(if(DYNAINFO(23)*close,DYNAINFO(23),0),0)*0.003906;   
内盘:=sum(if(DYNAINFO(22)*close,DYNAINFO(22),0),0)*0.003906;   
主动率:(外盘-内盘)/(内盘+外盘)*100,precis3,LINETHICK0;


============================
通吃率

买入:=BIGORDER(1,2)*AMOUNT;   
卖出:=BIGORDER(2,2)*AMOUNT;   
净额:=买入-卖出;   
通吃率:净额/amount*100,precis3,LINETHICK0;

输精度出控制符
PRECISx,用逗号隔开放置在输出语句后,用于设定指标数值精确到小数点后多少位,x可以为0-6。
例如:
CLOSE,PRECIS6;表示收盘价线显示6位小数精度

寻高手改成通达信的。

DRAWGBK(V>1,STRIP(RGB(1,100,125),RGB(1,30,10),0));
A:=FILTER(BACKSET(BARSTATUS=2,34),34);0,COLORMAGENTA;
B:=FILTER(BACKSET(BARSTATUS=2,100),100);0,COLORMAGENTA;
起始:STICKLINE(A,0,70,3,0);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
天:=BARSLAST(a);
天1:BARSLAST(B);
ALL(天,j);
个股J:if(天>0 ,J,0), COLORCYAN,LINETHICK2;
个股K:if(天>0,k,0),colorgreen;
获利:=WINNER(c);
STICKLINE(CROSS(k,d),天+15,天,0,0),colorgreen,LINETHICK2;
DRAWICON(CROSS(k,d),天+23,1),ALIGN1;
STICKLINE(CROSS(天1,个股J),天1+15,天1,0,0),colorred,LINETHICK2;
STICKLINE(CROSS(d,k),天1+15,天1,0,0),colorgreen,LINETHICK2;
DRAWICON(CROSS(d,k),天1+23,2),ALIGN1;
DRAWICON(CROSS(天1,个股J),天1+23,10),ALIGN1;
DRAWICON(CROSS(天1,个股J),天1,5),ALIGN1;
DRAWTEXT(CROSS(天1,个股J),天1+28,'预警'),ALIGN1,COLORFFFF00;
DRAWICON(CROSS(个股J,0),个股J+3,4),ALIGN1;
STICKLINE(CROSS(个股J,0),个股J+20,个股J,0,0),colorgreen,LINETHICK2;
DRAWTEXT(CROSS(个股J,0),个股J+28,'预喜'),ALIGN1,colorred;
DRAWTEXT(天=1,36,' 年'), colorgreen;
DRAWTEXT(天=1,20,' 月'), colorgreen;
DRAWTEXT(天=1,10,' 日'), colorgreen;
DRAWTEXT(天=1,36,NUMTOSTRN(YEAR,0)),ALIGN2, colorred;
DRAWTEXT(天=1,20,NUMTOSTRN(MONTH,0)),ALIGN2, colorred;
DRAWTEXT(天=1,10,NUMTOSTRN(DAY,0)),ALIGN2,colorred;
STICKLINE(个股J>0 AND 个股J>=REF(100,1),20,10,8,0),colorwhite;
STICKLINE(个股J>0 AND 个股J<=REF(100,1),-10,0,8,0),colorGREEN;
STICKLINE(个股J>=0 AND 个股J>=REF(个股K,1),10,0,8,0),COLORRED;
STICKLINE(个股J<=0 AND 个股J<=REF(个股K,1),-10,0,10,0),coloryellow;




底部爆发-本人自用公式

STICKLINE(18,100,0,5,0),COLORBLUE;
VAR01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
VAR02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);
VAR03:=CROSS(VAR02,VAR01);
VAR04:=REF(VAR02,2)<REF(VAR02,1) AND VAR02<REF(VAR02,1);
VAR05:=COUNT(VAR03,7)>0 AND VAR04;
VAR06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR07:=SMA(ABS(LOW-VAR06),13,1)/SMA(MAX(LOW-VAR06,0),10,1);
VAR08:=EMA(VAR07,10);
VAR09:=EMA(C,5);
VAR10:=LLV(LOW,33);
VAR11:=EMA(IF(LOW<=VAR10,VAR09,0),3)*40;
VAR12:=IF(VAR11>100,VAR11*0.312,VAR11);
底部爆发:VAR12,COLORWHITE;
STICKLINE(VAR12>0,0,VAR12,3,0),COLORWHITE;
STICKLINE(VAR12>0,0,VAR12,2,0),COLOR555555;
STICKLINE(VAR12>0,0,VAR12,1,0),COLORWHITE;
STICKLINE(VAR02>0,0,VAR02,5,0),COLOR3A7841;
海岸:VAR02,COLORGREEN;
浪花:VAR01,COLORCYAN;
STICKLINE(VAR05 AND COUNT(VAR05,5)=1,0,VAR12,4,0),COLORRED;




空:=EMA(C,5);
均衡:EMA(空,5),COLORWHITE;
中轨:HHV(MA(H,13),13),COLORRED,LINETHICK2;
趋势:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;
varA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
varB:=EMA(0.667*REF(varA,1)+0.333*varA,5);
DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(varA>=varB AND varA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'买入');
varC:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWICON(CROSS(82,varC),HIGH,2);
var1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
var2:=REF(var1,1);
var3:=SMA(MAX(var1-var2,0),10,1)/SMA(ABS(var1-var2),10,1)*100;
var4:=FILTER(IF(COUNT(var3<20,5)>=1 AND COUNT(var1=LLV(var1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0),5);
DRAWICON(var4,LOW,1);
var5:=FILTER(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND C>REF(C,1),11);
DRAWTEXT(var5,L*0.98,'▲
');
var6:=REF(CLOSE,1);
var7:=SMA(MAX(CLOSE-var6,0),6,1)/SMA(ABS(CLOSE-var6),6,1)*100;
DRAWTEXT(CROSS(84,var7),H*1.03,'▼'),COLORYELLOW ;





VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR1E:=EMA(VAR1D,30);
VAR1F:=2*(VAR1D-VAR1E)*10;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
VAR25:=IF(VAR1F>0.015,VAR20,0)/45;
拉升资金: VAR25*10,COLORRED;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
主力资金:IF( VAR28>0.1,VAR29,0)*10;
{VAR1:=1;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3*VAR1;
VAR5:=REF(LLV(CLOSE,480),1)*VAR1;
VAR6:=REF(HHV(CLOSE,480),1)*VAR
[url=http://www.70822.com/soft/sort013/sort03/down-33683.html]主动率、通吃率指标源码[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:46.87500 毫秒