资金方程式 {参数N:10} 超B:=L2_AMO(0,2)/10000.0;
大B:=L2_AMO(1,2)/10000.0;
中B:=L2_AMO(2,2)/10000.0;
小B:=L2_AMO(3,2)/10000.0;
超S:=L2_AMO(0,3)/10000.0;
大S:=L2_AMO(1,3)/10000.0;
中S:=L2_AMO(2,3)/10000.0;
小S:=L2_AMO(3,3)/10000.0;
净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S);
超大单:=(超B)-(超S);
大单:=(大B)-(大S);
中单:=(中B)-(中S);
小单:=(小B)-(小S);
DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))),NODRAW;
近N净入:=SUM(净流入,N);
近N超:=SUM(超大单,N);
近N大:=SUM(大单,N);
近N中:=SUM(中单,N),;
近N小:=SUM(小单,N);
流入:=ABS(超B+大B+中B+小B)*1000/VOL;
流出:=ABS(超S+大S+中S+小S)*1000/VOL;
近N流入:=ABS(SUM(超B,N)+SUM(大B,N)+SUM(中B,N)+SUM(小B,N))*1000/VOL;
近N流出:=ABS(SUM(超S,N)+SUM(大S,N)+SUM(中S,N)+SUM(小S,N))*1000/VOL;
净流买比N:=近N流入*100/(近N流入+近N流出);
AAS:=CONST(MAX(ABS(流入),ABS(流出)))*4,NODRAW;
大宗进:=(超B)+(大B),NODRAW;
大宗出:=(超S)+(大S),NODRAW;
非大宗进:=(中B)+(小B),NODRAW;
非大宗出:=(中S)+(小S),NODRAW;
大宗进限制:=IF((超B+大B)=0,0,大宗进),NODRAW;
大宗出限制:=IF((超S+大S)=0,0,大宗出),NODRAW;
非大宗进限制:=IF(中B+小B=0,0,非大宗进),NODRAW;
非大宗出限制:=IF(中S+小S=0,0,非大宗出),NODRAW;
资金流向买:=大宗进限制+非大宗进限制;
资金流向卖:=大宗出限制+非大宗出限制;
近N资金流向买:=SUM(资金流向买,N);
近N资金流向卖:=SUM(资金流向卖,N);
{ 当日 }
DRAWRECTREL(0,0,990,999.2,IF(120,RGB(10,0,0),0));
DRAWRECTREL(50,255,950,195,RGB(0,140,0));
DRAWRECTREL(50,245,950,205,RGB(0,160,0));
DRAWRECTREL(50,235,950,215,RGB(0,180,0));
DRAWRECTREL(50,225,950,225,RGB(0,210,0));
DRAWRECTREL(50,255,50+CONST(净流买比N*900/100),195,RGB(140,0,0));
DRAWRECTREL(50,245,50+CONST(净流买比N*900/100),205,RGB(160,0,0));
DRAWRECTREL(50,235,50+CONST(净流买比N*900/100),215,RGB(180,0,0));
DRAWRECTREL(50,225,50+CONST(净流买比N*900/100),225,RGB(210,0,0));
DRAWTEXT_FIX(1,0.05,0.01,0,STRCAT(STRCAT('净流买比',CON2STR(净流买比N,2)),'%')),COLORYELLOW;
DRAWRECTREL(500,255,500,195,RGB(250,250,0));
DRAWRECTREL(60,CONST(700-IF((近N超)>0,(ABS(近N超)*250/DAZHI),0)),200,700,RGB(128,0,0));
DRAWRECTREL(60,700,200,CONST(700+IF((近N超)<0,(ABS(近N超)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(300,CONST(700-IF((近N大)>0,(ABS(近N大)*250/DAZHI),0)),430,700,RGB(128,0,0));
DRAWRECTREL(300,700,430,CONST(700+IF((近N大)<0,(ABS(近N大)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(600,CONST(700-IF((近N中)>0,(ABS(近N中)*250/DAZHI),0)),730,700,RGB(128,0,0));
DRAWRECTREL(600,700,730,CONST(700+IF((近N中)<0,(ABS(近N中)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(820,CONST(700-IF((近N小)>0,(ABS(近N小)*250/DAZHI),0)),950,700,RGB(128,0,0));
DRAWRECTREL(820,700,950,CONST(700+IF((近N小)<0,(ABS(近N小)*250/DAZHI),0)),RGB(0,128,0));
DRAWRECTREL(60,699.8,950,700.2,RGB(255,0,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N超)>0,0.05,0.900,0,'超大单'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N超)<0,0.05,0.900,0,'超大单'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N超)=0,0.05,0.900,0,'超大单'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N大)>0,0.35,0.900,0,'大单'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N大)<0,0.35,0.900,0,'大单'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N大)=0,0.35,0.900,0,'大单'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N中)>0,0.60,0.900,0,'中单'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N中)<0,0.60,0.900,0,'中单'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N中)=0,0.60,0.900,0,'中单'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N小)>0,0.85,0.900,0,'小单'),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N小)<0,0.85,0.900,0,'小单'),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N小)=0,0.85,0.900,0,'小单'),COLOR80FFFF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N超)>0,0.03,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N超,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N超)<0,0.03,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N超,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N超)=0,0.03,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N超,1)),' ')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N大)>0,0.25,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N大,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N大)<0,0.25,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N大,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N大)=0,0.25,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N大,1)),' ')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N中)>0,0.55,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N中,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N中)<0,0.55,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N中,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N中)=0,0.55,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N中,1)),' ')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N小)>0,0.80,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N小,1)),'万')),COLORLIRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N小)<0,0.80,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N小,1)),'万')),COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N小)=0,0.80,0.5,0,STRCAT(STRCAT(' ',CON2STR(近N小,1)),' ')),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N净入)>0,0.93,0.01,1,STRCAT('10日净买: ',STRCAT(CON2STR(近N净入,1),'万'))) COLOR0000FF;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N净入)<0,0.93,0.01,1,STRCAT('10日净买: ',STRCAT(CON2STR(近N净入,1),'万'))) COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(近N净入)=0,0.90,0.01,1,STRCAT('10日净买: ',STRCAT(CON2STR(近N净入,1),'万'))) COLOR80FFFF;
DRAWTEXT_FIX(1,0.05,0.12,0,STRCAT(STRCAT('买入额:',CON2STR(近N资金流向买,1)),'万')),COLOR0000FF;
DRAWTEXT_FIX(1,0.50,0.12,0,STRCAT(STRCAT('卖出额:',CON2STR(近N资金流向卖,1)),'万')),COLOR00FF00;
|
- 软件大小:5.00 KB
- 推荐星级:
- 更新时间:2022-12-28 00:13:13
- 软件类别: 国产软件 / 通达信公式
- 软件语言:简体中文
- 授权方式: 免费版
- 联系方式:暂无联系方式
- 官方主页: Home Page
- 点击大图: 【一键转帖到论坛】
- 插件情况:
- 运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
- 相关Tags:指标公式 股票软件,公式源码
-
(0)0%(0)0%
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!