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

[通达信指标/源码] [转载]史上最强立体化分析主图指标

[通达信指标/源码] [转载]史上最强立体化分析主图指标

微信截图_20181019155148.png

  1. 动力线:MA(C,5),LINETHICK2,COLOR00CCFF;工作线:MA(C,10),COLORFF66FF,LINETHICK1;
  2. YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;

  3. 短期操盘:=工作线
  4. 决策线:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),COLOR0168FF,LINETHICK2;
  5. 上开:=O;
  6. 上收:=C;
  7. 上高:=H;
  8. 上低:=L;
  9. JJ:=(上开+上高+上低)/3;


  10. MA05:=MA(C,5);
  11. MA10:=MA(C,10);
  12. T1:=CONST(LLVBARS(LOW,10));
  13. T1HIGH:=CONST(REF(HIGH,T1));
  14. MM:=CONST(CURRBARSCOUNT);
  15. T2:=CONST(BARSLAST(CURRBARSCOUNT>MM+T1 AND H>T1HIGH));
  16. T2HIGH:=CONST(REF(HIGH,T2));
  17. T3:=CONST(BARSLAST(CURRBARSCOUNT>MM+T2 AND HIGH>T2HIGH));
  18. T3HIGH:=CONST(REF(HIGH,T3));
  19. 攻击线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH,1),COLOR00FFFF,LINETHICK1;
  20. DRAWTEXT(ISLASTBAR, T3HIGH, '攻击线')LINETHICK1,COLOR00FFFF;A0:=(L+H+C*2)/4;

  21. 逃逸:EMA(A0,14)COLORRED,LINETHICK0;
  22. A2:=EMA(A0,25)COLORLIBLUE,LINETHICK0;
  23. 逃逸X:=(逃逸-REF(逃逸,1))/REF(逃逸,1)*100,NODRAW;
  24. A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;
  25. 出击:IF(逃逸X>=0 AND BARSLAST(CROSS(逃逸X,0))>0,REF((C+O)/2,BARSLAST(CROSS(逃逸X,0))),DRAWNULL),COLORMAGENTA,LINETHICK1;


  26. IF(短期操盘,工作线,DRAWNULL),COLORBLUE,LINETHICK1;




  27. MIDD:=MA(CYS,20);
  28. CC:=MIDD+0.85*STD(CYS,10);

  29. RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
  30. K:=SMA(RSV,3,1);
  31. D:=SMA(K,3,1);
  32. J:=3*K-2*D;
  33. 金叉:=CROSS(J,D);
  34. 死叉:=CROSS(D,J);
  35. 箱顶:MA(REF(HHV(上收,30),1),2),COLOR0000FF,LINETHICK1;
  36. 箱底:MA(REF(LLV(上收,30),1),2),COLOR00FF00,LINETHICK1;




  37. 五日乖离率:=(C-MA05)/MA05*100;
  38. BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;
  39. 速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
  40. 加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;
  41. IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK2,COLORRED;
  42. BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;
  43. IF(BB05<0 AND MA05








  44. DRAWICON(CROSS(RSI,11) ,L*0.99,3);
  45. VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
  46. VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
  47. VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)
  48. VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1);
  49. VAR5:=REF(C,1)=HHV(C,4) AND CREF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C


  50. VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
  51. VAR10:=EMA(MA(C,13),13);
  52. VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) AND CROSS(VAR9,MA(VAR9,2)))=1,5);
  53. VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(MA(VAR9,2),VAR9))=1,1);
  54. VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
  55. VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
  56. VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));





  57. 买1:=(VAR14 OR VAR15) AND VAR11;
  58. 买2:=(VAR14 OR VAR15) AND VAR4;
  59. 买3:=(VAR14 OR VAR15) AND VAR2;
  60. 买4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);

  61. {涨停}
  62. STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;
  63. {跌停}
  64. STICKLINE(CLOSE
  65. {蓝}
  66. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
  67. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
  68. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
  69. STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
  70. {红}
  71. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
  72. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
  73. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
  74. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
  75. {绿}   
  76. STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;
  77. STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;
  78. STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;   
  79. STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.5,0),COLOR00FF00;
  80. {灰}
  81. STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;
  82. STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;      
  83. STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;   
  84. STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORFFFFFF;




  85. EMA3:=EMA(C,3);


  86. VAR81:=1;
  87. VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);
  88. 低金叉进:=20,COLORYELLOW,LINETHICK2;
  89. 高死叉出:=90,COLORGREEN,LINETHICK3;
  90. VAR84:=LLV(LOW,5);
  91. VAR85:=HHV(HIGH,4);
  92. C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)*VAR81),COLORFF00FF,LINETHICK2;
  93. C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINETHICK2;
  94. 条件:=CROSS(C1,C2) AND C1<40;
  95. 条件0:=CROSS(C2,C1) AND C1>90;
  96. TJ1:=CROSS(C1,C2);
  97. TJ2:=CROSS(C2,C1);
  98. TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;
  99. TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;

  100. STICKLINE(金叉,OPEN,CLOSE,0.5,0),COLORYELLOW;
  101. STICKLINE(死叉,OPEN,CLOSE,0.5,0),COLORRED;

  102. AH:=HHV(HIGH,200);
  103. AL:=LLV(LOW,200);
  104. B0:=(AH-AL)/40;


  105. LC:=REF(CLOSE,1);


  106. VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
  107. DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12)>0 AND EMA(CLOSE,12)/LOW>1.15,5),LOW,'买'),COLORFF00FF;
  108. VARA:=((AMOUNT)/(VOL))/(100);
  109. VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
  110. VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
  111. VARD:=DMA(VARB,(VOL)/(VARC));
  112. VARE:=((CLOSE-VARD)/(VARD))*(100);
  113. VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
  114. VARJ:=MA(VARE,20)+STD(VARE,20);
  115. BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
  116. AA:=SMA(VARF,3,1);
  117. SS:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (AA>79);
  118. V7:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
  119. STICKLINE(V7>=1,O,C,1,0),COLORYELLOW;
  120. LC1:=REF(CLOSE,1);
  121. RSI1:=((SMA(MAX((CLOSE - LC1),0),3,1) / SMA(ABS((CLOSE - LC1)),3,1)) * 100);
  122. FF:=EMA(CLOSE,3);
  123. MA15:=EMA(CLOSE,21);

  124. AA1:=(HHV(HIGH,20) - (2 * ATR));
  125. BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
  126. SSS:=CROSS(MIN(MA(CLOSE,13),AA1),CLOSE);
  127. BBB:=BARSLAST(BB);
  128. SSSB:=BARSLAST(SSS);
  129. B11:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));


  130. VAR2S:=(2*CLOSE+HIGH+LOW)/4;
  131. VAR3S:=IF(YEAR>=2099 AND MONTH>2,0,1);
  132. VAR4S:=LLV(LOW,5); VAR5S:=HHV(HIGH,4);
  133. 散户:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
  134. 庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;

  135. MA20:=MA(C,20);
  136. MA90:=MA(C,90);


  137. 决策点:IF(决策线

  138. F0:=BARSLAST(CROSS(MA(C,5),MA(C,90)));
  139. F1:=F0 AND BARSLAST(CROSS(MA(C,20),MA(C,90)));
  140. F2:=F1 AND CROSS(MA(C,5),MA(C,20)) AND MA(C,20)>MA(C,90);


  141. M:=OPEN;
  142. M1:=MA(C,1);
  143. M2:=REF(M1,1);
  144. M3:=REF(M2,1);

  145. 波动回调提示图:=MA(CLOSE,10000);




  146. Y:=EMA(CLOSE,10);
  147. LL:=REF(CLOSE,2);




  148. AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
  149. AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);

  150. VAR31:=LLV(LOW,55);


  151. AB:=CROSS(AK1,AK);





  152. DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
  153. DEA:=EMA(DIF,9);

  154. NA:=CROSS(DIF,DEA);




  155. 空:=EMA(C,5);
  156. 均衡:=EMA(空,5),COLORWHITE;







  157. 买线:=EMA(C,2);
  158. 卖线:=EMA(SLOPE(C,20)*20+C,42);
  159. BU:=CROSS(买线,卖线);
  160. SEL:=CROSS(卖线,买线);

  161. STICKLINE(SEL,OPEN,CLOSE,1,0),COLOR9966FF;

  162. STICKLINE(BU,OPEN,CLOSE,1.2,0),COLORYELLOW;


  163. B1:=((BBB = 0) AND (REF(SSSB,1) < REF(BBB,1)));
  164. B1B:=BARSLAST(B1);
  165. B2:=((((BB = 1) AND (B1B < SSSB)) AND (B1B > 0)) AND (COUNT(BB,SSSB) < 3));
  166. B2B:=BARSLAST(B2);
  167. B3:=((((BB = 1) AND (B2B < B1B)) AND (COUNT(BB,SSSB) < 4)) AND (COUNT(BB,SSSB) > 2));


  168. VARK:=CLOSE=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);VARN:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  169. VAR30:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  170. VAR41:=REF(VAR30,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  171. VAR32:=REF(VAR41,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  172. VAR33:=REF(VAR32,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  173. VAR34:=REF(VAR33,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  174. VAR35:=REF(VAR34,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  175. VAR36:=REF(VAR35,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  176. VAR37:=REF(VAR36,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
  177. VAR38:=REF(VAR37,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
  178. VAR39:=REF(VARK OR VARG OR VARN OR VAR30 OR VAR41 OR VAR32 OR VAR33 OR
  179. VAR34 OR VAR35 OR VAR36 OR VAR37 OR VAR38,1) AND VAR1;

  180. STICKLINE(VAR39,OPEN,CLOSE,1,0),COLORYELLOW;
  181. DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
  182. 买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2));
  183. DRAWTEXT(FILTER(买=1,5),LOW,'变盘'),COLORRED;              

  184. AAAA:=FILTER(CLOSE>REF(HHV(HIGH,100),1)
  185. AND REF(C,1)
  186. AND EXIST(EVERY(C>EMA(C,120),30),100)AND C/EMA(C,100)<1.5;
  187. DRAWICON(AAAA,LOW,9);多:EMA(C,3),COLORYELLOW;
  188. VAR111:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)-
  189. 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
  190. VAR222:=8;
  191. CCC:=CROSS(VAR111,VAR222);
  192. W1:=C=HHV(C,20);
  193. W2:=BARSLAST(W1);
  194. W3:=IF(W2>0,REF(C,W2),REF(C,W2));
  195. W4:=CROSS(C,REF(W3,1));
  196. 突破盘整:=W4 AND COUNT(W4,5)=1;
  197. DRAWICON(突破盘整,L-0.10,9);HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;

  198. AAA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
  199. QY:=BACKSET(AAA,HIGHN+1);
  200. CCCC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
  201. DDD:=BARSLAST(CCCC);
  202. GDTS:=IF(CCCC,CURRBARSCOUNT,0);
  203. DINGBU:=IF(DDD,REF(H,DDD),H);DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
  204. DINGBU1:=REF(DINGBU,DDD+1);
  205. GDCS1:=CONST(DINGBUTS);
  206. DINGBUTS1:=REF(DINGBUTS,DDD+1);
  207. GDCS2:=CONST(DINGBUTS1);


  208. 高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORGREEN,LINETHICK2;
  209. AAA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
  210. QY1:=BACKSET(AAA1,LOWN+1);
  211. CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);

  212. DD1:=BARSLAST(CC1);
  213. DDTS:=IF(CC1,CURRBARSCOUNT,0);
  214. YDB:=IF(DD1,REF(L,DD1),L);
  215. DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
  216. DDCS1:=CONST(DDTS1);
  217. ZDB:=REF(YDB,DD1+1);
  218. DDTS2:=REF(DDTS1,DD1+1);
  219. DDCS2:=CONST(DDTS2);
  220. 低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED,LINETHICK2;
  221. A1:=REF(H,8)=HHV(H,2*8+1);
  222. BB1:=FILTER(A1,8);
  223. CCC1:=BACKSET(BB1,8+1);
  224. D1:=FILTER(CCC1,8);{高点}
  225. R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);
  226. DRAWLINE(D1,H,S11,H,1),COLORLIGREEN;

  227. A22:=REF(L,8)=LLV(L,2*8+1);
  228. B22:=FILTER(A22,8);
  229. C22:=BACKSET(B22,8+1);
  230. D2:=FILTER(C22,8);{低点}

  231. MMM:=INTPART(3*8/5);
  232. A12:=REF(H,MMM)=HHV(H,2*MMM+1);
  233. B12:=FILTER(A12,MMM);
  234. C12:=BACKSET(B12,MMM+1);
  235. D12:=FILTER(C12,MMM);{高点}
  236. R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);
  237. DRAWLINE(D12,H,S112,H,1),COLORRED;
复制代码

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

返回列表