: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

大智慧ZJ分笔流指标公式源码[大智慧公式]

大智慧ZJ分笔流指标公式源码[大智慧公式]

相关标签: 一片云 分笔指标 、 大智慧分笔数据下载 、 通达信分笔分段公式 、 大智慧分笔大单公式 、 大智慧分笔数据提取 、 入木三分笔 、 大智慧分笔数据 、 分笔数据 、 分笔数据读取 、

大智慧ZJ分笔流指标公式源码

  1. a1:=BARSCOUNT(CLOSE);
  2. DRAWTEXTREL(50,10,'资金净流'),LINETHICK2,colorYelLOW;
  3. DRAWTEXTREL(200,10,' 代码: '+STKLABEL+' '+STKNAME+' 日期: '+YEAR+'年'+MONTH+'月 '+DAY+'日 '),LINETHICK2,ColorFFFF80;
  4. a2:=DATE;
  5. a3:=(WEEKDAY);
  6. if (((BARSTATUS = 2) AND (a3 = 5)) ) Then DRAWTEXTREL(800,10,'星期五'),LINETHICK2,ColorFFEF40;
  7. if (((BARSTATUS = 2) AND (a3 = 4)) ) Then DRAWTEXTREL(800,10,'星期四'),LINETHICK2,ColorFFEF40;
  8. if (((BARSTATUS = 2) AND (a3 = 3)) ) Then DRAWTEXTREL(800,10,'星期三'),LINETHICK2,ColorFFEF40;
  9. if (((BARSTATUS = 2) AND (a3 = 2)) ) Then DRAWTEXTREL(800,10,'星期二'),LINETHICK2,ColorFFEF40;
  10. if (((BARSTATUS = 2) AND (a3 = 1)) ) Then DRAWTEXTREL(800,10,'星期一'),LINETHICK2,ColorFFEF40;
  11. if (((BARSTATUS = 2) AND (a3 = 6)) ) Then DRAWTEXTREL(800,10,'星期六'),LINETHICK2,ColorFFEF40;
  12. if (((BARSTATUS = 2) AND (a3 = 0)) ) Then DRAWTEXTREL(800,10,'星期日'),LINETHICK2,ColorFFEF40;
  13. a4:=(BUYVOL * CLOSE) / 100;
  14. CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
  15. WARNING('http://www.cxh99.com',CURRENTTIME>180000 and (CXH=2 OR CXH=7));
  16. DRAWTEXTREL(10 ,10 ,'');
  17. a5:=SUM(a4,0);
  18. a6:=(CLOSE * SELLVOL) / 100;
  19. a7:=SUM(a6,0);
  20. a8:=a5 + a7;
  21. a9:=a5 - a7;
  22. a10:=IF(((a4 < 20) AND (a4 >= 5)),a4,0);
  23. a11:=SUM(a10,0);
  24. a12:=IF(((a6 < 20) AND (a6 >= 5)),a6,0);
  25. a13:=SUM(a12,0);
  26. a14:=IF(((a4 < 100) AND (a4 >= 20)),a4,0);
  27. a15:=SUM(a14,0);
  28. a16:=IF(((a6 < 100) AND (a6 >= 20)),a6,0);
  29. a17:=SUM(a16,0);
  30. a18:=IF((a4 >= 100),a4,0);
  31. a19:=SUM(a18,0);
  32. a20:=IF((a6 >= 100),a6,0);
  33. a21:=SUM(a20,0);
  34. a22:=IF((a4 >= 20),a4,0);
  35. a23:=SUM(a22,0);
  36. a24:=IF((a6 >= 20),a6,0);
  37. a25:=SUM(a24,0);
  38. a26:=a11 - a13;
  39. a27:=a15 - a17;
  40. a28:=a19 - a21;
  41. a29:=a23 - a25;
  42. a30:=(100 * ((SUM((IF((a4 >= 10),VOL,0)),0)) - (SUM((IF((a6 >= 10),VOL,0)),0)))) / CAPITAL;
  43. a31:=(100 * ((SUM((IF((a4 >= 20),VOL,0)),0)) - (SUM((IF((a6 >= 20),VOL,0)),0)))) / CAPITAL;
  44. a32:=(a26);
  45. a33:=(a27);
  46. a34:=(a28);
  47. a35:=(a29);
  48. a36:=350 / (MAX(ABS(a32),ABS(a33),ABS(a34),ABS(a35)));
  49. a37:=500 - (a32 * a36);
  50. a38:=500 - (a33 * a36);
  51. a39:=500 - (a34 * a36);
  52. a40:=500 - (a35 * a36);
  53. DRAWRECTREL(0,505,320,510,3289855),colorRed;
  54. DRAWRECTREL(50,a37,80,500,(IF((a32 >= 0),3289855,3342080))),colorYelLOW;
  55. DRAWRECTREL(130,a38,160,500,(IF((a33 >= 0),3289855,3342080))),colorYelLOW;
  56. DRAWRECTREL(210,a39,240,500,(IF((a34 >= 0),3289855,3342080))),colorYelLOW;
  57. DRAWRECTREL(290,a40,320,500,(IF((a35 >= 0),3289855,3342080))),colorYelLOW;
  58. DRAWTEXTREL(18,440,'中户'),ColorDDFFFF;
  59. DRAWTEXTREL(95,440,'大户'),ColorDDFFFF;
  60. DRAWTEXTREL(175,440,'机构'),ColorDDFFFF;
  61. DRAWTEXTREL(255,440,'主力'),ColorDDFFFF;
  62. a41:=(a11);
  63. a42:=(a13);
  64. a43:=(a15);
  65. a44:=(a17);
  66. a45:=(a19);
  67. a46:=(a21);
  68. a47:=(a23);
  69. a48:=(a25);
  70. a49:=700 / (MAX(a41,a42,a43,a44,a45,a46,a47,a48));
  71. a50:=940 - (a41 * a49);
  72. a51:=940 - (a42 * a49);
  73. a52:=940 - (a43 * a49);
  74. a53:=940 - (a44 * a49);
  75. a54:=940 - (a45 * a49);
  76. a55:=940 - (a46 * a49);
  77. a56:=940 - (a47 * a49);
  78. a57:=940 - (a48 * a49);
  79. DRAWRECTREL(700,a50,720,940,250),colorYelLOW;
  80. DRAWRECTREL(720,a51,740,940,6617600),colorYelLOW;
  81. DRAWRECTREL(780,a52,800,940,250),colorYelLOW;
  82. DRAWRECTREL(800,a53,820,940,6617600),colorYelLOW;
  83. DRAWRECTREL(860,a54,880,940,250),colorYelLOW;
  84. DRAWRECTREL(880,a55,900,940,6617600),colorYelLOW;
  85. DRAWRECTREL(940,a56,960,940,250),colorYelLOW;
  86. DRAWRECTREL(960,a57,980,940,6617600),colorYelLOW;
  87. DRAWTEXTREL(2,930,'主力净流:'+NUMTOSTR(a29)+'万'+' 机构净流:'+NUMTOSTR(a28)+'万'+' 大户净流:'+NUMTOSTR(a27)+'万'+' 中户净流:'+NUMTOSTR(a26)+'万'),colorWhite;
  88. DRAWTEXTREL(2,820,'控盘系数:'+NUMTOSTR(a30)+'%'+' 主力增仓:'+NUMTOSTR(a31)+'%'),LINETHICK2,colorYelLOW;
  89. DRAWTEXTREL(940,965,'主力'),ColorDDFFFF;
  90. DRAWTEXTREL(865,965,'机构'),ColorDDFFFF;
  91. DRAWTEXTREL(785,965,'大户'),ColorDDFFFF;
  92. DRAWTEXTREL(705,965,'中户'),ColorDDFFFF;
  93. DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
复制代码

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

分时指标:
  1. MA25:EMA(CLOSE,25);
  2. 买卖分水岭:EMA(CLOSE,905);
  3. STICKLINE((MA25 > 买卖分水岭),MA25,买卖分水岭,1,0),Color0000FF;
  4. STICKLINE((MA25 < 买卖分水岭),MA25,买卖分水岭,1,0),Color00FF00;
  5. DRAWICON(CROSS(MA25,买卖分水岭),(买卖分水岭 * 0.98),6);
复制代码
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

副图指标源码-----趋势顶低
  1. Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
  2. Q3:=SMA(Q2, 9, 1);
  3. Q4:=SMA(Q3, 3, 1);
  4. 长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK1;
  5. PARTLINE(长趋势,长趋势>ref(长趋势,1),RGB(255,0,0),长趋势<ref(长趋势,1),RGB(0,255,255)),LINETHICK2;
  6. CXH:=STRTONUM(STRRIGHT(DATESTR(CURRENTDATE),1));
  7. WARNING('',CURRENTTIME>180000 and (CXH=2 OR CXH=7));
  8. DRAWTEXTREL(10 ,10 ,'');
  9. 趋势线:EMA(Q3, 3),COLORyelLOW,LINETHICK2;
  10. DRAWTEXT(CROSS(趋势线, 长趋势) AND ref(长趋势,1)>80, ref(长趋势,3), '*顶'),COLOrgreen,LINETHICK3;
  11. ★逢低买入: DRAWTEXT(ref(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'★买入'),LINETHICK2,Color9500FF;
  12. ★低买: DRAWTEXT(ref(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'★低买'),COLORRED,LINETHICK1; {本文来至CXH99.COM}
  13. VAR3:=PEAKBARS(3,15,1)<10;
  14. VAR5:=IF(VAR3=1,2,0);
  15. 顶:= IF(VAR5=2,2,0);
  16. 顶A:IF(顶>ref(顶,1),50,0),COLORGREEN;
  17. DRAWTEXT(顶A=50,45,'快走'),COLOR00FF00;
复制代码
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

微信截图_20181224131853.png
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

TOP

返回列表