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

[大智慧指标] [转载]个人精品组合:主图 + 3副图

[大智慧指标] [转载]个人精品组合:主图 + 3副图

公式源码:
  1. {潜龙主图}

  2. MA5:MA(C,5),COLORWHITE;
  3. MA11:MA(C,11),COLORYELLOW;
  4. MA21:MA(C,21),COLORMAGENTA;
  5. MA31:MA(C,41),COLORGREEN;
  6. MA60:MA(C,61),COLORBLUE;


  7. LC:=REF(CLOSE,1);
  8. RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
  9. TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
  10. HD:=(HIGH - REF(HIGH,1));
  11. LD:=(REF(LOW,1) - LOW);
  12. DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
  13. DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
  14. PDI:=((DMP * 100) / TR1);
  15. MDI:=((DMM * 100) / TR1);
  16. ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
  17. AV:=(RSI5 + ADX);
  18. DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
  19. WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
  20. NEWVOL:=(RSI5 - WR10);
  21. 龙:=(AV + NEWVOL);
  22. AA:=MA(C,40)>REF(MA(C,40),1) AND REF(MA(C,40),1)>REF(MA(C,40),2);
  23. BB:=MA(C,60)>REF(MA(C,60),1) AND REF(MA(C,60),1)>REF(MA(C,60),2);
  24. CC:=MA(C,20)>REF(MA(C,20),1) AND REF(MA(C,20),1)>REF(MA(C,20),2);
  25. EE:=(AA OR BB OR CC);
  26. DRAWTEXT(CROSS(龙,0) AND  EE,L*0.98,'潜'),COLORRED;

  27. V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
  28. HY1:=REF(EMA(V1,3),1);

  29. 上收:=C;
  30. {
  31. 上开:=O;
  32. 上高:=H;
  33. 上低:=L;
  34. JJ:=(上开+上高+上低)/3;
  35. A:=EMA(JJ,4);
  36. 黄金线:A,COLORFFFF00,LINETHICK1;
  37. 能量线:=DMA(((CLOSE + OPEN) / 2),(VOL / (SMA(VOL,4,1) *4)));
  38. }
  39. 箱顶:MA(REF(HHV(上收,30),1),2),COLORBLUE,LINETHICK1;
  40. 箱底:MA(REF(LLV(上收,30),1),2),COLORBLACK,LINETHICK1;

  41. VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
  42. VAR12:=(HIGH+LOW+CLOSE)/3;
  43. VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
  44. VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
  45. VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
  46. VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
  47. VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
  48. VAR18:=100-ABS(VAR17);
  49. VAR19:=IF(VAR18<90,VAR18,100);
  50. VAR1A:=IF(VARE>0,VARE,0);
  51. VAR1B:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
  52. VAR1C:=VAR1A>48 AND VAR1B>60 AND VAR19<100;
  53. DRAWTEXT(VAR1C AND COUNT(VAR1C,30)=1,HIGH*1.05,'大笔出'),LINETHICK1,COLORFFCC66;


  54. VAR2:=(2*CLOSE+HIGH+LOW)/4;
  55. VAR4:=LLV(LOW,5);
  56. VAR5:=HHV(HIGH,4);
  57. 散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4);
  58. 庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2);
  59. DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L*0.92,'吸'),COLORRED;
  60. DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H*1.02,'抛'),COLORGREEN;



  61. VVAR3:=REF(CLOSE,1);
  62. VVAR4:=SMA(MAX(CLOSE-VVAR3,0),6,1)/SMA(ABS(CLOSE-VVAR3),6,1)*100;
  63. DRAWTEXT(CROSS(84,VVAR4),H*1.05,'逃'),COLORYELLOW ;
  64. VVAR5:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
  65. VVAR6:=SMA(ABS(LOW-VVAR5),13,1)/SMA(MAX(LOW-VVAR5,0),10,1);
  66. VVAR7:=EMA(VVAR6,10);
  67. VVAR8:=LLV(LOW,33);
  68. VVAR9:=EMA(IF(LOW<=VVAR8,VVAR7,0),5);
  69. 主力:=FILTER(VVAR9>REF(VVAR9,1),5);
  70. DRAWTEXT(主力,L*0.9,'入'),COLORRED;


  71. RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
  72. FF:=EMA(CLOSE,3);
  73. MA15:=EMA(CLOSE,21);
  74. DRAWTEXT(CROSS(FF,MA15),(LOW * 0.96),'建'),COLORYELLOW;
复制代码


  1. {买卖精品}

  2. VARA:=REF(LOW,1);
  3. VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
  4. VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
  5. VARD:=LLV(LOW,30);
  6. VARE:=HHV(VARC,30);
  7. VARF:=IF(MA(CLOSE,58),1,0);
  8. VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
  9. VARH:=IF(VARG>28,28,VARG);
  10. 吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;


  11. RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
  12. K:=SMA(RSV,3,1);
  13. D:=SMA(K,3,1);
  14. J:=3*K-2*D;
  15. X:=LLV(J,2)=LLV(J,8);
  16. 跟庄买入: IF(CROSS(J,3),50,0),COLORRED,LINETHICK3;


  17. VA:=(2*C+H+L)/4;
  18. VB:=LLV(L,5);
  19. VC:=HHV(H,5);
  20. 红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;
  21. 红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;

  22. JL:=EMA(VOL,13);
  23. JE:=EMA(AMOUNT,13);
  24. JX:=((JE / JL) / 100);
  25. RGL:=(((CLOSE - JX) / JX) * 100);
  26. STICKLINE((RGL < (0 - 6)),0,20,2,0),COLORFF00CC;

  27. V1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
  28. V2:=2*ABS(V1);

  29. 粉军:IF(V1>0,V1,0),COLORFFCCFF, LINESTICK;
  30. 绿军:IF(V1<0,V2,0),COLORGREEN,LINESTICK;


  31. K1:=SMA(RSV,3,1);
  32. DK1:=K1-REF(K1,1);
  33. 出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,30,0), LINESTICK,COLORYELLOW;
  34. DRAWICON(出手就赢>0,30 ,1);
复制代码


  1. {知顶知底}

  2. VAR2:=LLV(LOW,10);
  3. VAR3:=HHV(HIGH,25);
  4. 阶段卖出: 3.2,COLORC6C600;
  5. 清仓卖出: 3.5,COLORFF75FF;
  6. 动力线:= EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
  7. STICKLINE(动力线>REF(动力线,1) ,动力线 ,REF(动力线,1),3 ,1),COLORRED;
  8. STICKLINE(动力线<=REF(动力线,1) ,动力线 ,REF(动力线,1),3 ,1),COLOR00FF00;
  9. 底部:0.2,COLORGREEN;
  10. 关注:=0.5,COLORYELLOW;
  11. DRAWICON( FILTER(CROSS(动力线,关注),20),动力线+0.02 ,1);
  12. DRAWICON( FILTER(CROSS(清仓卖出,动力线),20),动力线+0.02,2);
  13. DRAWICON( FILTER(CROSS(动力线,底部),20),动力线+0.02 ,1);
  14. DRAWICON( FILTER(CROSS(阶段卖出,动力线),20),动力线+0.02,2);
  15. 强弱分界线:1.75,POINTDOT,LINETHICK2,COLOR70DB93;
  16. {数值:动力线,COLORA8A8A8;}

  17. {
  18. T1:=5;
  19. T2:=4;
  20. P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);
  21. VAR4:=LLV(LOW,T1);
  22. VAR5:=HHV(HIGH,T2);
  23. 散户:EMA(((P - VAR4)/(VAR5 - VAR4))*(100),T2),LINETHICK,COLOR3333DD;
  24. 庄家:EMA((0.667)*(REF(散户,1)) + (0.333)*(散户),2),LINETHICK,COLORDDCC00;};

  25. SSRCJL:=EMA(VOL,13);
  26. SSRCJE:=EMA(AMOUNT,13);
  27. SSRCBJX:=((SSRCJE / SSRCJL) / 100);
  28. SSRGL:=(((CLOSE - SSRCBJX) / SSRCBJX) * 100);
  29. 绝对底:=SSRGL<(0-18);
  30. 大底:=SSRGL<(0-14);
  31. 中底:=SSRGL<(0-10);
  32. 短底:=SSRGL<(0-6);
  33. STICKLINE((SSRGL < (0 - 18)),3.0,3.5,3,0),COLORRED;
  34. STICKLINE((SSRGL < (0 - 14)),2.5,3.0,3,0),COLORBLUE;
  35. STICKLINE((SSRGL < (0 - 10)),2.25,2.5,3,0),COLORYELLOW;
  36. STICKLINE((SSRGL < (0 - 6)),1.75,2.25,3,0),COLORWHITE;
复制代码


  1. {底部留影}


  2. 买:=MA(CLOSE,1);
  3. 卖:=(LOW+HIGH+CLOSE)/3;
  4. 奇准:= MA(卖,5);
  5. 买卖:=LLV(奇准,10);
  6. 急买奇准:=LLV((买<买卖),5);
  7. 短买奇准:=LLV((买<买卖),10);
  8. STICKLINE(短买奇准,0,20,3,0),COLORRED;
  9. STICKLINE(急买奇准,0,10,3,0),COLORMAGENTA;

  10. 趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORWHITE;
  11. 秘密买点:IF(趋势<=3,20,0),COLORWHITE,LINETHICK2;
  12. 机构建仓:IF(趋势<5,30,0),COLORFFCC00,LINETHICK2;
  13. DRAWICON(REF(趋势,1)<8 AND REF(趋势,2)>REF(趋势,1) AND 趋势>REF(趋势,1),趋势,1);
  14. DRAWICON(REF(趋势,1)>90  AND REF(趋势,2)<REF(趋势,1) AND 趋势<REF(趋势,1),趋势,2);

  15. VAR1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
  16. VAR2:=SMA(VAR1,3,1);
  17. VAR3:=SMA(VAR2,3,1);
  18. VAR4:=3*VAR2-2*VAR3;
  19. VAR5:=LLV(LOW,5);
  20. VAR6:=HHV(HIGH,5);
  21. VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
  22. VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);
  23. VAR9:=3*VAR7-2*VAR8;
  24. VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
  25. VARB:=POW(MA(LOW,5),2)+MA(LOW,5);
  26. VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
  27. VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;
  28. VARE:=SMA(VARD,3,1)*1.5-100;
  29. VARF:=SMA(VARE,3,1);
  30. VAR10:=3*VARE-2*VARF;
  31. VAR11:=(HIGH+LOW+CLOSE*2)/4;
  32. VAR12:=EMA(VAR11,13);
  33. VAR13:=STD(VAR11,13);
  34. VAR14:=(VAR11-VAR12)*100/VAR13;
  35. VAR15:=EMA(VAR14,5);
  36. VAR17:=EMA(VAR15,13)+200-100;
  37. VAR18:=EMA(VAR17,10);
  38. VAR19:=3*VAR17-2*VAR18;
  39. VAR1A:=VAR2+VAR7+VARE+VAR17;
  40. VAR1B:=VAR3+VAR8+VARF+VAR18;
  41. VAR1C:=VAR4+VAR9+VAR10+VAR19;
  42. VAR1D:=(HIGH+LOW+CLOSE)/3;
  43. VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
  44. VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
  45. VAR23:=EMA(VAR22,24);
  46. VAR24:=STD(VAR22,24);
  47. VAR25:=(VAR22-VAR23)/VAR24*100;
  48. VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
  49. VAR27:=EMA(VAR25,5);
  50. VAR2A:=((VAR27+VAR26+VAR20)/3+165)/4;
  51. VAR2B:=(EMA(EMA(EMA(VAR2A,15),10),5)-25)*2;
  52. VAR2C:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
  53. VAR2D:=EMA(VAR2C,7);
  54. VAR2E:=(VAR2A+VAR2C)/2/1.1;
  55. 超短:=EMA(VAR2E,3),COLORRED ;
  56. 趋势1:=EMA((VAR2B+VAR2D)/2,2) ,COLORWHITE;
  57. 加仓:=CROSS(超短,趋势1);
  58. DRAWTEXT(加仓,趋势,'加'),COLORFF00CC;


  59. P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);
  60. CCI:=((P - MA(P,14))*(100))/((1.5)*(AVEDEV(P,14)));
  61. STICKLINE((CCI < (-100)),0,5,3,0),COLORYELLOW;

  62. ANGEL:=EMA(C,2);
  63. DEVIL:=EMA(SLOPE(C,21)*20+C,42);
  64. BUY:=CROSS(ANGEL,DEVIL);
  65. SEL:=CROSS(DEVIL,ANGEL);
  66. DRAWTEXT(BUY,趋势,'买'),COLORRED;

  67. P1:=4;
  68. P2:=5;
  69. V1:=LLV(LOW,P1);
  70. V2:=HHV(HIGH,P1);
  71. 牛线: EMA((CLOSE-V1)/(V2-V1)*100,P2),COLORRED,LINETHICK1;
  72. 马线: EMA(0.667*REF(牛线,1)+0.333*牛线,2),COLORGREEN,LINETHICK1;


  73. VV1:=(CLOSE+LOW+HIGH)/3;
  74. VV2:=SUM((VV1-REF(LOW,1)-(HIGH-VV1))*VOL/100000/(HIGH-LOW),0);
  75. VV3:=EMA(VV2,1);

  76. VV5:=MA(VV3,12);
  77. VV6:=MA(VV3,26);
  78. VV7:=(VV3-VV5)*10;
  79. 主力拉升: IF(VV7>0.05,VV7,0),LINETHICK1,COLORMAGENTA;
复制代码



论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   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

返回列表