520量化编程

标题: 宁俊明135战法之波浪 [打印本页]

作者: 520量化编程    时间: 2024-11-4 09:19
标题: 宁俊明135战法之波浪
[attach]4679[/attach]


  1. M1:MA(CLOSE,13),COLORYELLOW,LINETHICK2;
  2. M2:MA(CLOSE,34),COLORWHITE,LINETHICK2;
  3. 生命线:MA(CLOSE,55),COLORGREEN,LINETHICK2;
  4. A:MA(C,5)COLORBLUE,LINETHICK3;
  5. B:=A<REF(A,1);
  6. IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;
  7. DRAWTEXT(LAST(MA(C,5)<MA(C,10),5,0) AND "CCI.CCI">REF("CCI.CCI",1) AND CROSS("CCI.CCI",-100),L*0.975,'⊕底');
  8. DRAWTEXT(CROSS(A,M1),M1,'◣周加'),COLORWHITE;
  9. DRAWTEXT(A>=REF(A,1) AND REF(A,1)<REF(A,2),A,'◣周买'),COLORRED;{周线上买入,中期持有,月线上更好}
  10. AR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
  11. 短趋势:=(EMA(AR1,3)+EMA(AR1,6)+EMA(AR1,12)+EMA(AR1,24))/4;
  12. BS1:=EMA(AR1,1)*1.028;
  13. BS2:=MA(OPEN,1)*1.028,COLORWHITE;
  14. AR2:=(C+H+O+L)/4;
  15. 上轨:EMA(AR2,20)*(1+32/1000),CIRCLEDOT,COLORGREEN;
  16. 下轨:EMA(AR2,80)*(1-100/1000),CIRCLEDOT,COLORLIMAGENTA;
  17. DRAWICON((CROSS(BS1,下轨) AND CROSS(BS2,下轨)),下轨,13);
  18. DRAWICON(A>上轨 AND A<REF(A,1),A,21);
  19. DRAWTEXT_FIX(2>1,0.5,0.2,0,'520量化编程——编译通过'),COLOR80FFFF;
复制代码







欢迎光临 520量化编程 (https://520lhjy.com/) Powered by Discuz! X3.4