当前位置:→ 公式网 > 通达信公式 > 正文  公式解密、改选股等业务 联系点击查看详情...

以下是极品附图 神笔马良(无源码的请下载附件导入)

非所动,心中有意莫伸手 !     戒亦不戒,眼前无路早回头。

收集了不同作者的一些好用的东西 呵呵 杂交培育良种
用法 1 用画线来分析 买卖提示的可靠性
          2 用形态来进一步确认
         以上两步以后 准确率可能接近100%  运用之妙存乎一心 不多说了

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. VV:=(C+L+H)/3;   
  2. DSA:=SMA(EMA(VV,2),2,1)LINETHICK2,COLORRED;   
  3. Y396:=DSA;    
  4. 险1:=Y396*1.1,COLORLIRED;   
  5. 险2:=Y396*1.125,COLORLIRED;   
  6. 险3:=Y396*1.15,COLORLIRED;   
  7. 良1:=Y396*0.9,COLORLIBLUE;   
  8. 良2:=Y396*0.875,COLORLIBLUE;   
  9. 良3:=Y396*0.85,COLORLIBLUE;   
  10.   
  11. 变色:=IF(Y396<REF(Y396,1),Y396,DRAWNULL),LINETHICK2,COLORBLUE;   
  12. {WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;}   
  13. {WSR2:=CROSS(WSR1,5);}   
  14. {WSR3:=CROSS(8,WSR1);}   
  15. {WSR4:=CROSS(WSR1,-5);}   
  16. {WSR5:=CROSS(WSR1,-8);}   
  17. {WSR6:=WSR3;}   
  18. {WSR7:=WSR4 OR WSR5;}   
  19. {WSR8:=WSR7 AND FILTER(WSR7,5);}   
  20. {WSR10:DRAWICON(WSR8,L-0.01,1);}   
  21. {WSR9:=WSR6 AND FILTER(WSR6,5);}   
  22. {WSR11:DRAWICON(WSR9,H+0.01,2);}   
  23. WSR1:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;   
  24. WSR2:=CROSS(WSR1,5);   
  25. WSR3:=CROSS(8,WSR1);   
  26. WSR4:=CROSS(WSR1,-5);   
  27. WSR5:=CROSS(WSR1,-8);   
  28. WSR6:=WSR3;   
  29. WSR7:=WSR4 OR WSR5;   
  30. WSR8:=WSR7 AND FILTER(WSR7,5);   
  31. WSR10:DRAWICON(WSR8,L-0.01,1);   
  32. WSR9:=WSR6 AND FILTER(WSR6,5);   
  33. WSR11:DRAWICON(WSR9,H+0.01,2);   
  34. WSR12:=O<良3;   
  35. DRAWICON(WSR12 AND FILTER(WSR12,12),L-0.03,9);   
  36. W1:=C>REF(C,1) AND MACD<REF(MACD,1) AND MACD>0 AND V<REF(V,1);   
  37. W2:=C>REF(C,1) AND MACD<0 AND MACD<REF(MACD,1) AND V<REF(V,1);   
  38. XG:=W1 OR W2;   
  39. VAR1:=AMOUNT/VOL/7;   
  40. VAR2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;   
  41. VAR3:=SUM(AMOUNT,10)/VAR1/7;   
  42. VAR4:=DMA(VAR2,VOL/VAR3);   
  43. VAR5:=(CLOSE-VAR4)/VAR4*100,COLORLIMAGENTA;   
  44. XG1:=CROSS(VAR5,MA(VAR5,2)) AND VAR5<0 AND C<(HHV(H,5)*0.88) AND REF(O>C,1) AND REF(O>C,2);   
  45. XG3:=XG AND XG1 AND L<良1;   
  46. WSR13:=O>良3 AND L<良1 OR XG3;   
  47. DRAWICON(WSR13 AND FILTER(WSR13,10),L-0.03,5);   
  48. WSR14:=H>险3;DRAWICON(WSR14 AND FILTER(WSR14,15),H+0.03,6);   
  49. WSR15:=H<险3 AND H>险2;DRAWICON(WSR15 AND FILTER(WSR15,5),H+0.03,4);   
  50. WSR16:=(INDEXC-MA(INDEXC,3))/MA(INDEXC,3);   
  51. WSR17:=(INDEXC-MA(INDEXC,8))/MA(INDEXC,8);   
  52. WSR18:=(INDEXC-MA(INDEXC,18))/MA(INDEXC,18);   
  53. WSR19:=(WSR16 + WSR17 + WSR18)/3;   
  54. WSR20:=(C-MA(C,3))/MA(C,3);   
  55. WSR21:=(C-MA(C,8))/MA(C,8);   
  56. WSR22:=(C-MA(C,18))/MA(C,18);   
  57. WSR23:=(WSR20 + WSR21 + WSR22)/3;   
  58. WSR24:=(WSR19>REF(WSR19,1) AND CROSS(WSR23,WSR19))*50;   
  59. WSR25:=(INDEXC-MA(INDEXC,6))/MA(INDEXC,6);   
  60. WSR26:=(INDEXC-MA(INDEXC,12))/MA(INDEXC,12);   
  61. WSR27:=(INDEXC-MA(INDEXC,24))/MA(INDEXC,24);   
  62. WSR28:=(WSR25 + WSR26 + WSR27)/3;   
  63. WSR29:=(C-MA(C,6))/MA(C,6);   
  64. WSR30:=(C-MA(C,12))/MA(C,12);   
  65. WSR31:=(C-MA(C,24))/MA(C,24);   
  66. WSR32:=(WSR29 + WSR30 + WSR31)/3;   
  67. WSR33:=(WSR28>REF(WSR28,1) AND CROSS(WSR32,WSR28))*20;   
  68.   
  69. WSR34:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);   
  70. WSR35:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);   
  71. WSR36:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);   
  72. WSR37:=(WSR34 + WSR35 + WSR36)/3;   
  73. WSR38:=(C-MA(C,13))/MA(C,13);   
  74. WSR39:=(C-MA(C,34))/MA(C,34);   
  75. WSR40:=(C-MA(C,55))/MA(C,55);   
  76. WSR41:=(WSR38 + WSR39 + WSR40)/3;   
  77. WSR42:=(WSR37>REF(WSR37,1) AND CROSS(WSR41,WSR37));   
  78. WSR43:=(INDEXC-MA(INDEXC,13))/MA(INDEXC,13);   
  79. WSR44:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);   
  80. WSR45:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);   
  81. WSR46:=(WSR43 + WSR44 + WSR45)/3;   
  82. WSR47:=(C-MA(C,30))/MA(C,30);   
  83. WSR48:=(C-MA(C,60))/MA(C,60);   
  84. WSR49:=(C-MA(C,90))/MA(C,90);   
  85. WSR50:=(WSR47 + WSR48 + WSR49)/3;   
  86. WSR51:=(WSR46>REF(WSR46,1) AND CROSS(WSR50,WSR46));   
  87. WSR52:=(INDEXC-MA(INDEXC,34))/MA(INDEXC,34);   
  88. WSR53:=(INDEXC-MA(INDEXC,55))/MA(INDEXC,55);   
  89. WSR54:=(INDEXC-MA(INDEXC,89))/MA(INDEXC,89);   
  90. WSR55:=(WSR52 + WSR53 + WSR54)/3;   
  91. WSR56:=(C-MA(C,60))/MA(C,60);   
  92. WSR57:=(C-MA(C,120))/MA(C,120);   
  93. WSR58:=(C-MA(C,220))/MA(C,220);   
  94. WSR59:=(WSR56 + WSR57 + WSR58)/3;   
  95. WSR60:=(WSR59>REF(WSR59,1) AND CROSS(WSR59,WSR55));   
  96. WSR61:=WSR24 OR WSR33 OR WSR42 OR WSR51 OR WSR60;   
  97. {DRAWICON(WSR61 AND H<Y396 AND FILTER(WSR61,5),良3,7);   
  98. DRAWTEXT(WSR61 AND H<Y396 AND FILTER(WSR61,5),良3,'良机');}   
  99.   
  100. N1:=20;N2:=10;N3:=5;   
  101. STICKLINE(CLOSE>REF(CLOSE,1)*1.095 AND CLOSE=HIGH,CLOSE,OPEN,2,1),COLOR0000FF;{涨停}   
  102. STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,2,1),COLORGREEN;{跌停};   
  103. GJ:=(C+H+L+O)/4;   
  104. 明日阻力:=L+(GJ-L)+(C-L);   
  105. 明日支撑:=L+(C-GJ);   
  106. 今日阻力:REF(明日阻力 , 1),NODRAW;   
  107. 今日支撑:REF(明日支撑 , 1),NODRAW;   
  108. STICKLINE(ISLASTBAR AND C>=今日阻力,今日阻力,今日阻力,10,1),COLOR0000FF;   
  109. STICKLINE(ISLASTBAR AND C<今日阻力,今日阻力,今日阻力,10,1),COLOR00FF00;   
  110. STICKLINE(ISLASTBAR AND C>=今日支撑,今日支撑,今日支撑,10,1),COLORFF00FF;   
  111. STICKLINE(ISLASTBAR AND C<今日支撑,今日支撑,今日支撑,10,1),COLORFF8800;   
  112. AA:=REF(H,N1)=HHV(H,2*N1+1);   
  113. QY:=BACKSET(AA,N1+1);   
  114. CC:=FILTER(QY,N1) AND H=HHV(H,N1+1);   
  115. DDD:=BARSLAST(CC);   
  116. GDTS:=IF(CC,CURRBARSCOUNT,0);   
  117. DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}   
  118. DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);   
  119. DINGBU1:=REF(DINGBU,DDD+1);   
  120. GDCS1:=CONST(DINGBUTS);   
  121. DINGBUTS1:=REF(DINGBUTS,DDD+1);   
  122. GDCS2:=CONST(DINGBUTS1);   
  123. DINGBU2:=REF(DINGBU1,DDD+1);   
  124. MM:=IF(CURRBARSCOUNT>GDCS2,0,1);   
  125. 高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORRED;   
  126. DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR00FF00,POINTDOT,LINETHICK2;   
  127. DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLOR00FF00,POINTDOT,LINETHICK2;   
  128. AA1:=REF(L,N1)=LLV(L,2*N1+1);   
  129. QY1:=BACKSET(AA1,N1+1);   
  130. CC1:=FILTER(QY1,N1) AND L=LLV(L,N1+1);   
  131. DD1:=BARSLAST(CC1);   
  132. DDTS:=IF(CC1,CURRBARSCOUNT,0);   
  133. YDB:=IF(DD1,REF(L,DD1),L);   
  134. DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);   
  135. DDCS1:=CONST(DDTS1);   
  136. ZDB:=REF(YDB,DD1+1);   
  137. DDTS2:=REF(DDTS1,DD1+1);   
  138. DDCS2:=CONST(DDTS2);   
  139. 低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORRED;   
  140. DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2-1),1),COLOR00FF00,POINTDOT,LINETHICK2;   
  141. DRAWLINE(CURRBARSCOUNT=DDCS1,L,ISLASTBAR,REF(L,DDCS1-1),1),COLOR00FF00,POINTDOT,LINETHICK2;   
  142. LAA:=REF(H,N2)=HHV(H,2*N2+1);   
  143. LQY:=BACKSET(LAA,N2+1);   
  144. LCC:=FILTER(LQY,N2) AND H=HHV(H,N2+1);   
  145. LDDD:=BARSLAST(LCC);   
  146. LGDTS:=IF(LCC,CURRBARSCOUNT,0);   
  147. LDINGBU:=IF(LDDD,REF(H,LDDD),H);{顶部}   
  148. LDINGBUTS:=IF(LDDD,REF(LGDTS,LDDD),LGDTS);   
  149. LDINGBU1:=REF(LDINGBU,LDDD+1);   
  150. LGDCS1:=CONST(LDINGBUTS);   
  151. LDINGBUTS1:=REF(LDINGBUTS,LDDD+1);   
  152. LGDCS2:=CONST(LDINGBUTS1);   
  153. LDINGBU2:=REF(LDINGBU1,LDDD+1);   
  154. LMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);   
  155. 压力:DRAWLINE(CURRBARSCOUNT=LGDCS2,H,CURRBARSCOUNT=LGDCS1,H,1),COLORFF0000;   
  156. DRAWLINE(CURRBARSCOUNT=LGDCS2,H,ISLASTBAR,REF(H,LGDCS2-1),1),COLOR00FF00,POINTDOT;   
  157. DRAWLINE(CURRBARSCOUNT=LGDCS1,H,ISLASTBAR,REF(H,LGDCS1-1),1),COLOR00FF00,POINTDOT;   
  158. LAA1:=REF(L,N2)=LLV(L,2*N2+1);   
  159. LQY1:=BACKSET(LAA1,N2+1);   
  160. LCC1:=FILTER(LQY1,N2) AND L=LLV(L,N2+1);   
  161. LDD1:=BARSLAST(LCC1);   
  162. LDDTS:=IF(LCC1,CURRBARSCOUNT,0);   
  163. LYDB:=IF(LDD1,REF(L,LDD1),L);   
  164. LDDTS1:=IF(LDD1,REF(LDDTS,LDD1),LDDTS);   
  165. LDDCS1:=CONST(LDDTS1);   
  166. LZDB:=REF(LYDB,LDD1+1);   
  167. LDDTS2:=REF(LDDTS1,DD1+1);   
  168. LDDCS2:=CONST(LDDTS2);   
  169. 支撑:DRAWLINE(CURRBARSCOUNT=LDDCS2,L,CURRBARSCOUNT=LDDCS1,L,1),COLORFF0000;   
  170. ZGSTAR:=(压力+支撑)/2;   
  171. ZGEND:=CONST((压力+支撑)/2);   
  172. STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);   
  173. 中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORWHITE;   
  174. LLAA:=REF(H,N3)=HHV(H,2*N3+1);   
  175. LLQY:=BACKSET(LLAA,N3+1);   
  176. LLCC:=FILTER(LLQY,N3) AND H=HHV(H,N3+1);   
  177. LLDDD:=BARSLAST(LLCC);   
  178. LLGDTS:=IF(LLCC,CURRBARSCOUNT,0);   
  179. LLDINGBU:=IF(LLDDD,REF(H,LLDDD),H);{顶部}   
  180. LLDINGBUTS:=IF(LLDDD,REF(LLGDTS,LLDDD),LLGDTS);   
  181. LLDINGBU1:=REF(LLDINGBU,LLDDD+1);   
  182. LLGDCS1:=CONST(LLDINGBUTS);   
  183. LLDINGBUTS1:=REF(LLDINGBUTS,LLDDD+1);   
  184. LLGDCS2:=CONST(LLDINGBUTS1);   
  185. LLDINGBU2:=REF(LLDINGBU1,LLDDD+1);   
  186. LLMM:=IF(CURRBARSCOUNT>LGDCS2,0,1);   
  187. L压力:DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,CURRBARSCOUNT=LLGDCS1,H,1) COLORFF0000;   
  188. DRAWLINE(CURRBARSCOUNT=LLGDCS2,H,ISLASTBAR,REF(H,LLGDCS2-1),1),COLOR00FF00,POINTDOT;   
  189. DRAWLINE(CURRBARSCOUNT=LLGDCS1,H,ISLASTBAR,REF(H,LLGDCS1-1),1),COLOR00FF00,POINTDOT;   
  190. LLAA1:=REF(L,N3)=LLV(L,2*N3+1);   
  191. LLQY1:=BACKSET(LLAA1,N3+1);   
  192. LLCC1:=FILTER(LLQY1,N3) AND L=LLV(L,N3+1);   
  193. LLDD1:=BARSLAST(LCC1);   
  194. LLDDTS:=IF(LLCC1,CURRBARSCOUNT,0);   
  195. LLYDB:=IF(LLDD1,REF(L,LLDD1),L);   
  196. LLDDTS1:=IF(LLDD1,REF(LLDDTS,LLDD1),LDDTS);   
  197. LLDDCS1:=CONST(LLDDTS1);   
  198. LLZDB:=REF(LLYDB,LLDD1+1);   
  199. LLDDTS2:=REF(LLDDTS1,DD1+1);   
  200. LLDDCS2:=CONST(LLDDTS2);   
  201. L支撑:DRAWLINE(CURRBARSCOUNT=LLDDCS2,L,CURRBARSCOUNT=LLDDCS1,L,1) COLORYELLOW;   
  202. LZGSTAR:=(L压力+L支撑)/2;   
  203. LZGEND:=CONST((L压力+L支撑)/2);   
  204. LSTARDAY:=IF(LLDDCS2<LLGDCS2,LLDDCS2,LLGDCS2);   
  205. L中轨:DRAWLINE(CURRBARSCOUNT=LSTARDAY,LZGSTAR,ISLASTBAR,LZGEND,1),COLORYELLOW;   
  206.   
  207. {A:=DRAWLINE(LOW<=LLV(LOW,120),LOW,HHV(H,6)<=HHV(H,10),LLV(LOW,6),1),   
  208. COLORBLUE   ,LINETHICK2;}   
  209. A:=(3*C+L+O+H)/6;   
  210. TY:=C;   
  211. 成本:=(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORRED,LINETHICK2;   
  212. MA0:MA(C,0)COLORYELLOW  ,LINETHICK2;    
  213. K:=(C+H+L)/3;   
  214. D:=MA(K,4);   
  215. 阻力:=HHV(D,55),COLORYELLOW,LINETHICK2;   
  216. 顶部:=HHV(H*0.98,55)COLORFFFFFF,LINETHICK2;   
  217. DRAWICON(REF(C,1)<D AND C>D AND D<REF(D,1),L*0.98,1),COLORYELLOW,LINETHICK2 ;   
  218. {均线}   
  219. TYP:= (HIGH + LOW +2* C)/4;   
  220. 均线:=EMA(TYP,3),LINETHICK2,COLORWHITE;   
  221. 均线上轨:=HHV(均线,14),LINETHICK2,COLORYELLOW;   
  222. 均线下轨:=LLV(均线,14),LINETHICK2,COLORGREEN;   
  223. 角度:=ATAN((均线/REF(均线,1)-1)*100)*180/3.1416;   
  224. {K线优化}   
  225. STICKLINE(CLOSE>=OPEN,HIGH,LOW,0,1 ),COLOR5B5BFF;   
  226. STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,2.7,0 ),COLOR0000CC;   
  227. STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,2,0 ),COLOR0E0EFF;   
  228. STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,1.2,0 ),COLOR4848FF;   
  229. STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,0.6,0 ),COLOR7878FF;   
  230. STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,0.1,0 ),COLORA1A1FF;   
  231. STICKLINE(CLOSE>=OPEN,OPEN,CLOSE,0,0 ),COLORCACAFF;   
  232. STICKLINE(CLOSE< OPEN,HIGH,LOW,0,1 ),COLORCYAN;   
  233. STICKLINE(CLOSE< OPEN,OPEN,CLOSE,2.7,0 ),COLOR990000;   
  234. STICKLINE(CLOSE< OPEN,OPEN,CLOSE,2,0 ),COLORCC0000;    
  235. STICKLINE(CLOSE< OPEN,OPEN,CLOSE,1.2,0 ),COLORFF4400;   
  236. STICKLINE(CLOSE< OPEN,OPEN,CLOSE,0.6,0 ),COLORFF8800;   
  237. STICKLINE(CLOSE< OPEN,OPEN,CLOSE,0.1,0 ),COLORFFCC00;   
  238. STICKLINE(CLOSE< OPEN,OPEN,CLOSE,0,0 ),COLORCYAN;   
  239. X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+   
  240. 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)   
  241. +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+   
  242. REF(A,20))/210;   
  243. MTM:=C-REF(C,1);   
  244. DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);   
  245. CB:=EMA(X,13);   
  246. 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);   
  247. DRAWICON(FILTER(买=1,5),L*0.97,1);   
  248. {DT1:=C>REF(C,N);   
  249. DT2:=C>REF(C,M);   
  250. STICKLINE(DT2,H,L,0,0),COLORRED;   
  251. STICKLINE(DT2=0,H,L,0,0),COLORBLUE;   
  252. STICKLINE(DT1,H,MAX(O,C),0,0),COLORRED;   
  253. STICKLINE(DT1=0,L,MIN(O,C),0,0),COLORBLUE;   
  254. STICKLINE(DT2,O,C,2.5,0),COLORRED;   
  255. STICKLINE(DT2=0,O,C,2.5,0),COLORBLUE;   
  256. STICKLINE(DT1,(O+C)/2,O,2.5,0),COLORRED;   
  257. STICKLINE(DT1=0,(O+C)/2,C,2.5,0),COLORBLUE;};  



关于我们 - 联系我们 - 广告合作 - 下载声明 - 网站帮助 - 友情链接 - 网站地图 - RSS订阅 - TOP
湘ICP备09016573号-3 增值电信业务经营ICP许可证:湘B2-20210269 湘公网安备43108102000039号
Copyright © 铭网科技,All Rights Reserved.
股票公式,股票指标,股票软件,股票知识