牛熊波浪(源码) EA

 

rn

rn

C/C++ Code复制内容到剪贴板

rn

rn

    rn

  1. 牛熊波浪   
  2. rn

  3. 量比:=v/ema(v,20);   
  4. rn

  5. c1:=(c+2*h+l+o)/5;   
  6. rn

  7. a1:=EMA((EMA(c1,2)+EMA(c1,4)+EMA(c1,6))/3,3);   
  8. rn

  9. a2:=EMA((EMA(c1,6)+EMA(c1,8)+EMA( c1,10))/3,3);   
  10. rn

  11. a3:=EMA((EMA(c1,10)+EMA(c1,12)+EMA( c1,14))/3,3);   
  12. rn

  13. a4:=EMA((EMA(c1,14)+EMA(c1,16)+EMA( c1,18))/3,3);   
  14. rn

  15. a5:=EMA((EMA(c1,18)+EMA(c1,20)+EMA( c1,22))/3,3);   
  16. rn

  17. a6:=EMA((EMA(c1,22)+EMA(c1,24)+EMA(c1,26))/3,3);   
  18. rn

  19. a:=EMA((EMA(c1,29)+EMA(c1,31)+EMA(c1,33))/3,3),colorwhite;   
  20. rn

  21. PARTLINE(c1>a,a),colormagenta,linethick2;   
  22. rn

  23. PARTLINE(c1<a,a),colorgreen,linethick2;   
  24. rn

  25. PARTLINE(a1>ref(a1,1),a1),colormagenta,POINTDOT;   
  26. rn

  27. PARTLINE(a2>ref(a2,1),a2),colormagenta,POINTDOT;   
  28. rn

  29. PARTLINE(a3>ref(a3,1),a3),colormagenta,POINTDOT;   
  30. rn

  31. PARTLINE(a4>ref(a4,1),a4),colormagenta,POINTDOT;   
  32. rn

  33. PARTLINE(a5>ref(a5,1),a5),colormagenta,POINTDOT;   
  34. rn

  35. PARTLINE(a6>ref(a6,1),a6),colormagenta,POINTDOT;   
  36. rn

  37. PARTLINE(a1<ref(a1,1),a1),colorgreen,POINTDOT;   
  38. rn

  39. PARTLINE(a2<ref(a2,1),a2),colorgreen,POINTDOT;   
  40. rn

  41. PARTLINE(a3<ref(a3,1),a3),colorgreen,POINTDOT;   
  42. rn

  43. PARTLINE(a4<ref(a4,1),a4),colorgreen,POINTDOT;   
  44. rn

  45. PARTLINE(a5<ref(a5,1),a5),colorgreen,POINTDOT;   
  46. rn

  47. PARTLINE(a6<ref(a6,1),a6),colorgreen,POINTDOT;   
  48. rn

  49. tj:=c1>a;   
  50. rn

  51. tj2:=c1>open or c1=open and c1>ref(c1,1);   
  52. rn

  53. STICKLINE(tj2,HIGH,LOW,0.5,0),colorred;    
  54. rn

  55. STICKLINE(tj,OPEN,CLOSE,8,0),color102088;   
  56. rn

  57. STICKLINE(tj,OPEN,CLOSE,7,0),color102099;   
  58. rn

  59. STICKLINE(tj,OPEN,CLOSE,6,0),color1020aa;   
  60. rn

  61. STICKLINE(tj,OPEN,CLOSE,5,0),color1020bb;   
  62. rn

  63. STICKLINE(tj,OPEN,CLOSE,4,0),color1020cc;   
  64. rn

  65. STICKLINE(tj,OPEN,CLOSE,3,0),color1020dd;   
  66. rn

  67. STICKLINE(tj,OPEN,CLOSE,2,0),color1020ee;   
  68. rn

  69. STICKLINE(tj,OPEN,CLOSE,1,0),color1020ff;   
  70. rn

  71.   
  72. rn

  73. STICKLINE(not(tj),OPEN,CLOSE,8,0),colorff7700;   
  74. rn

  75. STICKLINE(not(tj),OPEN,CLOSE,7,0),colorff8800;   
  76. rn

  77. STICKLINE(not(tj),OPEN,CLOSE,6,0),colorff9900;   
  78. rn

  79. STICKLINE(not(tj),OPEN,CLOSE,5,0),colorffaa00;   
  80. rn

  81. STICKLINE(not(tj),OPEN,CLOSE,4,0),colorffbb00;   
  82. rn

  83. STICKLINE(not(tj),OPEN,CLOSE,3,0),colorffcc00;   
  84. rn

  85. STICKLINE(not(tj),OPEN,CLOSE,2,0),colorffdd00;   
  86. rn

  87. STICKLINE(not(tj),OPEN,CLOSE,1,0),colorffee00;   
  88. rn

  89. c11:=ref(c,1);   
  90. rn

  91. c2:=hhv(c11,2);   
  92. rn

  93. c3:=llv(c11,1);   
  94. rn

  95. et:=hhv(c11,2);   
  96. rn

  97. et1:=ref(et,1);   
  98. rn

  99. xb:=llv(c11,1);   
  100. rn

  101. xb1:=ref(xb,1);   
  102. rn

  103. m:=BARSLAST(c<xb and c11>=xb1);   
  104. rn

  105. m1:=ref(m,1);   
  106. rn

  107. n9:=BARSLAST(c>et and c11<=et1);   
  108. rn

  109. n1:=ref(n9,1);   
  110. rn

  111. m2:=BARSLAST(m-n9>0 and m1<=n1)+1;   
  112. rn

  113. n2:=BARSLAST(n9-m>0 and n1<=m1)+1;   
  114. rn

  115. et2:=hhv(et,m2);   
  116. rn

  117. xb2:=llv(xb,n2);   
  118. rn

  119. app:=if(m-n9>0 and m1<=n1,1,if(n9-m>0 and n1<=m1,0,2));   
  120. rn

  121. h11:=if(m-n9>0,c,et2);   
  122. rn

  123. h2:=if(app=1,c,c2);   
  124. rn

  125. h3:=if(m-n9<0,c,xb2);   
  126. rn

  127. h4:=if(app=1,c,xb2);   
  128. rn

  129. 关键位:=if(m-n9>0  or app=1 ,c,h3);   
  130. rn

  131. p1:=l<a and c>a and 量比>1  and a1>ref(a1,1)  and 关键位>ref(关键位,1) or cross(c,a) and 量比>1 and 关键位>ref(关键位,1);   
  132. rn

  133. DRAWTEXT(p1,L*0.99,‘买’),COLORgreen,ALIGN0;   
  134. rn

  135.   
  136. rn

  137.   
  138. rn

  139. 量比:=v/ema(v,20);   
  140. rn

  141. c1:=(c+2*h+l+o)/5;   
  142. rn

  143. a1:=EMA((EMA(c1,2)+EMA(c1,4)+EMA(c1,6))/3,3);   
  144. rn

  145. a2:=EMA((EMA(c1,6)+EMA(c1,8)+EMA( c1,10))/3,3);   
  146. rn

  147. a3:=EMA((EMA(c1,10)+EMA(c1,12)+EMA( c1,14))/3,3);   
  148. rn

  149. a4:=EMA((EMA(c1,14)+EMA(c1,16)+EMA( c1,18))/3,3);   
  150. rn

  151. a5:=EMA((EMA(c1,18)+EMA(c1,20)+EMA( c1,22))/3,3);   
  152. rn

  153. a6:=EMA((EMA(c1,22)+EMA(c1,24)+EMA(c1,26))/3,3);   
  154. rn

  155. a:=EMA((EMA(c1,29)+EMA(c1,31)+EMA(c1,33))/3,3),colorwhite;   
  156. rn

  157. PARTLINE(c1>a,a),colormagenta,linethick2;   
  158. rn

  159. PARTLINE(c1<a,a),colorgreen,linethick2;   
  160. rn

  161. PARTLINE(a1>ref(a1,1),a1),colormagenta,POINTDOT;   
  162. rn

  163. PARTLINE(a2>ref(a2,1),a2),colormagenta,POINTDOT;   
  164. rn

  165. PARTLINE(a3>ref(a3,1),a3),colormagenta,POINTDOT;   
  166. rn

  167. PARTLINE(a4>ref(a4,1),a4),colormagenta,POINTDOT;   
  168. rn

  169. PARTLINE(a5>ref(a5,1),a5),colormagenta,POINTDOT;   
  170. rn

  171. PARTLINE(a6>ref(a6,1),a6),colormagenta,POINTDOT;   
  172. rn

  173. PARTLINE(a1<ref(a1,1),a1),colorgreen,POINTDOT;   
  174. rn

  175. PARTLINE(a2<ref(a2,1),a2),colorgreen,POINTDOT;   
  176. rn

  177. PARTLINE(a3<ref(a3,1),a3),colorgreen,POINTDOT;   
  178. rn

  179. PARTLINE(a4<ref(a4,1),a4),colorgreen,POINTDOT;   
  180. rn

  181. PARTLINE(a5<ref(a5,1),a5),colorgreen,POINTDOT;   
  182. rn

  183. PARTLINE(a6<ref(a6,1),a6),colorgreen,POINTDOT;   
  184. rn

  185. tj:=c1>a;   
  186. rn

  187. tj2:=c1>open or c1=open and c1>ref(c1,1);   
  188. rn

  189. STICKLINE(tj2,HIGH,LOW,0.5,0),colorred;    
  190. rn

  191. STICKLINE(tj,OPEN,CLOSE,8,0),color102088;   
  192. rn

  193. STICKLINE(tj,OPEN,CLOSE,7,0),color102099;   
  194. rn

  195. STICKLINE(tj,OPEN,CLOSE,6,0),color1020aa;   
  196. rn

  197. STICKLINE(tj,OPEN,CLOSE,5,0),color1020bb;   
  198. rn

  199. STICKLINE(tj,OPEN,CLOSE,4,0),color1020cc;   
  200. rn

  201. STICKLINE(tj,OPEN,CLOSE,3,0),color1020dd;   
  202. rn

  203. STICKLINE(tj,OPEN,CLOSE,2,0),color1020ee;   
  204. rn

  205. STICKLINE(tj,OPEN,CLOSE,1,0),color1020ff;   
  206. rn

  207.   
  208. rn

  209. STICKLINE(not(tj),OPEN,CLOSE,8,0),colorff7700;   
  210. rn

  211. STICKLINE(not(tj),OPEN,CLOSE,7,0),colorff8800;   
  212. rn

  213. STICKLINE(not(tj),OPEN,CLOSE,6,0),colorff9900;   
  214. rn

  215. STICKLINE(not(tj),OPEN,CLOSE,5,0),colorffaa00;   
  216. rn

  217. STICKLINE(not(tj),OPEN,CLOSE,4,0),colorffbb00;   
  218. rn

  219. STICKLINE(not(tj),OPEN,CLOSE,3,0),colorffcc00;   
  220. rn

  221. STICKLINE(not(tj),OPEN,CLOSE,2,0),colorffdd00;   
  222. rn

  223. STICKLINE(not(tj),OPEN,CLOSE,1,0),colorffee00;   
  224. rn

  225. c11:=ref(c,1);   
  226. rn

  227. c2:=hhv(c11,2);   
  228. rn

  229. c3:=llv(c11,1);   
  230. rn

  231. et:=hhv(c11,2);   
  232. rn

  233. et1:=ref(et,1);   
  234. rn

  235. xb:=llv(c11,1);   
  236. rn

  237. xb1:=ref(xb,1);   
  238. rn

  239. m:=BARSLAST(c<xb and c11>=xb1);   
  240. rn

  241. m1:=ref(m,1);   
  242. rn

  243. n9:=BARSLAST(c>et and c11<=et1);   
  244. rn

  245. n1:=ref(n9,1);   
  246. rn

  247. m2:=BARSLAST(m-n9>0 and m1<=n1)+1;   
  248. rn

  249. n2:=BARSLAST(n9-m>0 and n1<=m1)+1;   
  250. rn

  251. et2:=hhv(et,m2);   
  252. rn

  253. xb2:=llv(xb,n2);   
  254. rn

  255. app:=if(m-n9>0 and m1<=n1,1,if(n9-m>0 and n1<=m1,0,2));   
  256. rn

  257. h11:=if(m-n9>0,c,et2);   
  258. rn

  259. h2:=if(app=1,c,c2);   
  260. rn

  261. h3:=if(m-n9<0,c,xb2);   
  262. rn

  263. h4:=if(app=1,c,xb2);   
  264. rn

  265. 关键位:=if(m-n9>0  or app=1 ,c,h3);   
  266. rn

  267. p1:=l<a and c>a and 量比>1  and a1>ref(a1,1)  and 关键位>ref(关键位,1) or cross(c,a) and 量比>1 and 关键位>ref(关键位,1);   
  268. rn

  269. DRAWTEXT(p1,L*0.99,‘买’),COLORgreen,ALIGN0 ;   
  270. rn

rn

rn

rn

 

© 版权声明
THE END
喜欢就支持一下吧
点赞124 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容