返回顶部
  • 发帖数516
  • 粉丝0

此人很懒,什么也没有留下

  • 最佳新人

  • 活跃会员

    经常参与各类话题的讨论,发帖内容较有主见
  • 热心会员

    经常帮助其他会员答疑
  • 终身成就

    为论坛做出突出贡献的会员
  • 爆料达人

    发帖爆料达人
开启左侧

[技巧] 综合资金分析+量能饱和度副图指标公式源码

[复制链接]
股票大数据 首发之星 显示全部楼层 发表于 2022-5-3 22:57:33 |阅读模式 打印 上一主题 下一主题
灵通疑综合伙金阐发+量能饱战度副图目标公式源码(无源码的请下载附件导进)

N1:=10,100,34;
N2:=N1*1.05;
N3:=N1+3;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱战度:IF(SAT>1,1,SAT)*100,COLORLIBLUE,NODRAW;
中面:=REFDATE(HHV(V,100)/2,DATE);{量能饱战的变色强}
STICKLINE(CURRBARSCOUNT=N1,中面*1.9,中面*1.5,100,1),COLOR00DDDD;
STICKLINE(CURRBARSCOUNT=N1,中面*1.88,中面*1.52,量能饱战度,0),COLOR0033FF;
STICKLINE(CURRBARSCOUNT=N1,中面*1.82,中面*1.58,量能饱战度,0),COLOR0077FF;
STICKLINE(CURRBARSCOUNT=N1,中面*1.76,中面*1.64,量能饱战度,0),COLOR0099FF;
STICKLINE(CURRBARSCOUNT=N1,中面*1.7,中面*1.7,量能饱战度,0),COLOR00DDFF;
DRAWTEXT(CURRBARSCOUNT=N3,中面*1.70,'量能饱战度'),COLOR000000;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
购盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
卖盘:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORCYAN,POINTDOT;
成交量比%:购盘/VOL*100,COLORWHITE,NODRAW;
五日:=MA(V,5)COLORWHITE;
旬日:=MA(V,10)COLORYELLOW;
万脚:VOL/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
猜测:=AA/10000;
自动购:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主购:自动购/10000,COLORRED;
自动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:自动卖/10000,COLORGREEN;
气力:=(自动购+自动卖)/10000,COLORRED;
总购:=IF(气力>0,气力,DRAWNULL),COLORRED;
总卖:=IF(气力<0,气力,DRAWNULL),COLORGREEN;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,0),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ;
猜测量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,猜测量,0,3.5,-1),COLOR00C0C0;
STICKLINE(自动购>=0,VOL,-自动卖,3.2,0),COLOR000033;
STICKLINE(自动购>=0,VOL,-自动卖,2.7,0),COLOR000066;
STICKLINE(自动购>=0,VOL,-自动卖,2.1,0),COLOR000099;
STICKLINE(自动购>=0,VOL,-自动卖,1.5,0),COLOR0000CC;
STICKLINE(自动购>=0,VOL,-自动卖,0.9,0),COLOR0000FF;
STICKLINE(自动购>=0,VOL,-自动卖,0.2,0),COLORCC66FF;
STICKLINE(自动卖<=0,0,-自动卖,3.2,0),COLOR990000;
STICKLINE(自动卖<=0,0,-自动卖,2.7,0),COLORCC0000;
STICKLINE(自动卖<=0,0,-自动卖,2.1,0),COLORFF4400;
STICKLINE(自动卖<=0,0,-自动卖,1.5,0),COLORFF8800;
STICKLINE(自动卖<=0,0,-自动卖,0.9,0),COLORFFCC00;
STICKLINE(自动卖<=0,0,-自动卖,0.2,0),COLORCYAN;
城:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLOR00FF00,LINETHICK1;
DRAWICON(城>0,城,35 );  
承猩:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED,LINETHICK1;
DRAWICON(承猩>0,承猩,34 );
个股资金线:=MA(C,1)/MA(REF(C,18),18)*100;
资金性命线:=MA(FORCAST(个股资金线,20),6);
性命线:个股资金线>资金性命线,COLOR000000,STICK,LINETHICK1;
DRAWICON(性命线>0,性命线,34);
五换:SUM(100*V/CAPITAL,5),COLORRED,NODRAW;
十换:SUM(100*V/CAPITAL,10),COLORRED,NODRAW;
超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;
TESTSKIP(NOT(超B OR 年夜B OR 中B OR 小B OR 超S OR 年夜S OR 中S OR 小S)!=0);
净流进:=(超B+年夜B+中B+小B)+(超S+年夜S+中S+小S);
大批净流进:=(超B+年夜B)+(超S+年夜S);
超年夜单:=(超B)+(超S);
年夜单:=(年夜B)+(年夜S);
中单:=(中B)+(中S);
小单:=(小B)+(小S);
大批进:=(超B)+(年夜B);
大批出:=(超S)+(年夜S);
非大批进:=(中B)+(小B);
非大批出:=(中S)+(小S);
资金流背:=(超B+年夜B+中B+小B)+(超S+年夜S+中S+小S);
远5日流背:=V+SUM(资金流背,5)*10,COLORGREEN;
远10日流背:=V+SUM(资金流背,10)*10,COLORYELLOW;
主力资金线:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/100.0,LINETHICK2;
主力购力度:=LARGEINTRDVOL*100/VOL;
主力负责度:=LARGEOUTTRDVOL*100/VOL;
DRAWRECTREL(0,0,235,999,RGB(100,330,30));
DRAWRECTREL(0,0,235,515,RGB(0,30,50));
DRAWRECTREL(75,515,235,999,RGB(0,30,50));
DRAWRECTREL(144,0,235,515,RGB(100,330,30));
AA1:=CONST(MAX(ABS(净流进),MAX(ABS(大批净流进),MAX(ABS(大批进),MAX(ABS(大批出),MAX(ABS(非大批进),ABS(非大批出)))))))*3,NODRAW;
DRAWRECTREL(5,CONST(830-(ABS(净流进)*500/AA1)),35,945,IF(CONST(净流进)>0,RGB(250,150,10),RGB(0,100,100)));
DRAWRECTREL(40,CONST(830-(ABS(大批净流进)*500/AA1)),70,945,IF(CONST(大批净流进)>0,RGB(250,150,10),RGB(0,100,100)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.005,0.88,0,INTPART(净流进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.041,0.88,0,INTPART(大批净流进)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.008,1,0,'净流   大批流'),COLORWHITE;
DRAWRECTREL(80,CONST(830-(ABS(大批进)*500/AA1)),115,945,IF(CONST(大批进)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(117,CONST(830-(ABS(大批出)*500/AA1)),152,945,IF(CONST(大批出)<0,RGB(0,50,0),RGB(0,50,0)));
DRAWRECTREL(158,CONST(830-(ABS(非大批进)*500/AA1)),193,945,IF(CONST(非大批进)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(195,CONST(830-(ABS(非大批出)*500/AA1)),230,945,IF(CONST(非大批出)<0,RGB(0,50,0),RGB(0,50,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.09,1,0,' 主力收支              集户收支'),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.082,0.88,0,INTPART(大批进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.12,0.88,0,INTPART(大批出)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.161,0.88,0,INTPART(非大批进)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.196,0.88,0,INTPART(非大批出)),COLORWHITE;
AAB:=CONST(MAX(ABS(超年夜单),MAX(ABS(年夜单),MAX(ABS(中单),ABS(小单))))),NODRAW;
DRAWRECTREL(5,CONST(830-(ABS(超年夜单)*500/AAB))/2,35,460,IF(CONST(超年夜单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWRECTREL(40,CONST(830-(ABS(年夜单)*500/AAB))/2,70,460,IF(CONST(年夜单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWRECTREL(75,CONST(830-(ABS(中单)*500/AAB))/2,105,460,IF(CONST(中单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWRECTREL(110,CONST(830-(ABS(小单)*500/AAB))/2,140,460,IF(CONST(小单)>0,RGB(255,0,255),RGB(0,255,255)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.007,0.46,0,'超 户    年夜 户   中 户    集 户'),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.007,0.4,0,INTPART(超年夜单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.042,0.4,0,INTPART(年夜单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.4,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.112,0.4,0,INTPART(小单)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'【综合伙金阐发】     (¥万元)'),COLORRED;
AAC:=CONST(MAX(ABS(远5日流背),ABS(远10日流背))),NODRAW;
DRAWRECTREL(149,CONST(830-(ABS(远5日流背)*500/AAC))/2,189,460,IF(CONST(远5日流背)>0,RGB(250,150,10),RGB(0,100,100)));
DRAWRECTREL(191,CONST(830-(ABS(远10日流背)*500/AAC))/2,230,460,IF(CONST(远10日流背)>0,RGB(250,150,10),RGB(0,100,100)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.15,0.4,0,INTPART(远5日流背)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.19,0.4,0,INTPART(远10日流背)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.152,0.46,0,'五日流   旬日流'),COLORWHITE;
DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);
DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
DRAWRECTREL(144,0,235,40,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50,0)));
DRAWRECTREL(144,45,235,85,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50,0)));
DRAWRECTREL(144,90,235,130,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50,0)));
DRAWTEXT_FIX(1,0.15,0,0,STRCAT('DDX:',CON2STR(DDX,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.15,0.04,0,STRCAT('DDY:',CON2STR(DDY,0))),COLORYELLOW;
DRAWTEXT_FIX(1,0.15,0.09,0,STRCAT('DDZ:',CON2STR(DDZ,0))),COLORYELLOW;
AAD:=CONST(MAX(ABS(主力购力度),ABS(主力负责度)))*4,NODRAW;
DRAWRECTREL(0,515,CONST(ABS(主力购力度)*500/AAD),568,IF(CONST(主力购力度)>0,RGB(250,150,10),RGB(0,255,255)));
DRAWRECTREL(0,570,CONST(ABS(主力负责度)*500/AAD),623,IF(CONST(主力负责度)>0,RGB(23,125,255),RGB(0,255,255)));
DRAWTEXT_FIX(1,0,0.512,0,STRCAT('主力购力度:',CON2STR(主力购力度,0))),COLORRED;
DRAWTEXT_FIX(1,0,0.57,0,STRCAT('主力负责度:',CON2STR(主力负责度,0))),COLORRED;
MA5:=MA(50*资金流背,5);
MA30:=V+SUM(资金流背,30)*10,COLORYELLOW,LINETHICK2;
量120:REF(V/2,BARSLAST(V=HHV(V,120))),COLORRED,LINETHICK1,POINTDOT;
量250:REF(V/2,BARSLAST(V=HHV(V,250))),COLORWHITE,LINETHICK1,POINTDOT;





上一篇:几天几板行情排序指标 副图 源码 测试图
下一篇:游龙剑副图/选股预警 简单实用 高胜率 无未来 源码
您需要登录后才可以回帖 登录 | 立即注册 用百度帐号登录

本版积分规则

首发之家社区成立于2011年3月,内容涉及3C家电、数码生活智能电视,股票软件,4K,体育,软件,教育,游戏等资源指标公式论坛。
  • 官方手机版

  • 抖音号

  • 商务合作

  • Powered by Discuz! X3.4 | Copyright © 2011-2021, Tencent Cloud. | 首发之家社区
  • |网站地图 | mp4d@qq.com|小黑屋|手机版|