主图叠加量(附图+说明)

[复制链接]
查看1876 | 回复0 | 2022-7-24 09:09:23 | 显示全部楼层 |阅读模式

93944081.jpg

93944081.jpg

 

C/C++ Code复制内容到剪贴板
  1. MA5:MA(CLOSE,5);   
  2. MA10:MA(CLOSE,10);   
  3. MA30:MA(CLOSE,30);   
  4. MA60:MA(CLOSE,60);   
  5. 红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;   
  6. 绿轨道:=MA(MA(CLOSE,3),3);   
  7. 上升:IF(红轨道>=绿轨道,绿轨道,DRAWNULL),COLORRED,LINETHICK2;   
  8. AA1:=3*SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1)-2*SMA(SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),3,1);   
  9. 加仓:=IF(CROSS(AA1,REF(AA1+0.01,1)) AND LLV(AA1,2)=LLV(AA1,8) AND BETWEEN(AA1,20,60),1,0);   
  10. 波段底:=(3)*(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1)) -   
  11. (2)*(SMA(SMA(((CLOSE - LLV(LOW,27))/(HHV(HIGH,27) - LLV(LOW,27)))*(100),5,1),3,1));   
  12. DRAWICON(加仓,L*0.97,7);   
  13. DRAWICON(CROSS(波段底,3),L*0.97,1);   
  14. A:=(3*C+L+O+H)/6;   
  15. X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+   
  16. 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)   
  17. +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+   
  18. REF(A,20))/210;   
  19. MTM:=C-REF(C,1);   
  20. DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);   
  21. CB:=EMA(X,13);   
  22. 卖:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);   
  23. DRAWTEXT(FILTER(卖=1,1),HIGH*1.02,'卖'),COLORWHITE;   
  24. 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);   
  25. DRAWTEXT(FILTER(买=1,5),LOW-0.03,'买'),COLORRED;   
  26. RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;   
  27. K:=SMA(RSV,3,1);   
  28. D:=SMA(K,3,1);   
  29. J:=3*K-2*D;   
  30. BDGD:=HHV(J,2)=HHV(J,8) AND J>80;   
  31. 注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);   
  32. DRAWTEXT(注意 AND 卖!=1,HIGH*1.02,'减'),COLORLIBLUE;   
  33. 加仓A:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;   
  34. DRAWTEXT(FILTER((CROSS(加仓A,0) OR CROSS(CLOSE,CB)) AND 买!=1,3),LOW-0.03,'加'),COLOR0080FF;   
  35. MA18:=MA(C,18);   
  36. 跟:=IF(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),1,0);   
  37. DRAWTEXT(MA18>=REF(MA18,3) AND CROSS(CLOSE,MA18),LOW*0.96,'跟'),COLOR7F52AF;   
  38. 买价:=((C-REF(MA5,1))/5+MA5)*1.004;     
  39. 买条件:=CROSS(C,买价) AND 买价>REF(买价,1);     
  40. 醉白K买进:IF(买条件,L,H),COLORWHITE,POINTDOT;     
  41. STICKLINE(买条件,H,L,0,1),COLORWHITE,LINETHICK2;     
  42. STICKLINE(买条件,O,C,4,1),COLORWHITE,LINETHICK2;     
  43. 加码价:=((C-REF(MA10,1))/20+MA10)*1.004;     
  44. 加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);     
  45. 醉黄K加码:IF(加码条件,L,H),COLORYELLOW,POINTDOT;     
  46. STICKLINE(加码条件,H,L,0,1),COLORYELLOW,LINETHICK2;     
  47. STICKLINE(加码条件,O,C,4,1),COLORYELLOW,LINETHICK2;   
  48.   
  49.   
  50. HH0:=CONST(HHV(H,120))*1;   
  51. LL0:=CONST(LLV(L,120))*1;   
  52. MM0:=CONST((HH0+LL0)/2);   
  53. HH1:=IF(CONST(C)<MM0,LL0-(HH0-LL0)*0.4,LL0-(HH0-LL0)*0.4),COLORRED;   
  54. LL1:=LL0;HLMAX:=MAX(HH1,LL1);   
  55. HLMIN:=MIN(HH1,LL1);   
  56. HLMN1:=(HLMAX+HLMIN)/2;   
  57. HLMN2:=(HLMAX-HLMIN);   
  58. HLMN3:=HHV(V,250)/2;   
  59. HLMN4:=HHV(V,250);   
  60. VZ:=(V-HLMN3)*HLMN2/HLMN4+HLMN1;   
  61. STICKLINE(C>=O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2.5,1),COLORRED;   
  62. STICKLINE(C<O,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2.5,0),COLORCYAN;   
  63. (MA(V,5)-HLMN3)*HLMN2/HLMN4+HLMN1,COLORFFFFFF;   
  64. (MA(V,10)-HLMN3)*HLMN2/HLMN4+HLMN1,COLOR00FFFF;   
  65.   
  66. T:=V=LLV(V,20);   
  67. DRAWICON(T,(V-HLMN3)*HLMN2/HLMN4+HLMN1,1);   
  68.   
  69. STICKLINE(C/REF(C,1)>1.099,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORRED;   
  70. STICKLINE(C/REF(C,1)<0.901,VZ,(0-HLMN3)*HLMN2/HLMN4+HLMN1,2,0),COLORGREEN;   
  71.   
  72. VY:=(0-HLMN3)*HLMN2/HLMN4+HLMN1;   
  73.   
  74. STICKLINE(V>=2*REF(V,1),VZ,VY,0.3,0),COLORWHITE;    
  75. STICKLINE(V>=3*REF(V,1),VZ,VY,0.3,0),COLORYELLOW;    
  76.   
  77. MA13:=MA(C,3);   
  78. UU:=1,V<=LLV(V,13) AND MA13>REF(MA13,1);   
  79. TJ:=1,REF(V,1)<=LLV(V,13) AND MA13>REF(MA13,1),COLORRED,LINETHICK3;   
  80. DRAWTEXT(TJ=1,(V-HLMN3)*HLMN2/HLMN4+HLMN1+0.2,'买')COLORMAGENTA;   
  81.   
  82.   
  83. 地:(0-HLMN3)*HLMN2/HLMN4+HLMN1-0.7,COLORBLACK;   
  84. 天:CONST(HHV(C,120))*1+0.7,COLORBLACK;   
  85. BIAS11:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;   
  86. BIAS12:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;   
  87. BIAS13:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;   
  88. 短跌BIAS:IF(BIAS11<=-6,0.6+地,地),COLORBLACK,LINETHICK2;   
  89. 中跌BIAS:IF(BIAS12<=-10,0.6+地,地),COLORBLUE,LINETHICK2;   
  90. 长跌BIAS:IF(BIAS13<=-16,0.6+地,地),COLORRED,LINETHICK2;   
  91. 短涨BIAS:IF(BIAS11>=6,天,天+0.6),COLORBLACK,LINETHICK2;   
  92. 中涨BIAS:IF(BIAS12>=10,天,天+0.6),COLORBLUE,LINETHICK2;   
  93. 长涨BIAS:IF(BIAS13>=16,天,天+0.6),COLORRED,LINETHICK2;   
  94.   
  95.   
  96. BIAS1:=(C-MA(C,6))/MA(C,6)*100;   
  97. BIAS2:=(C-MA(C,12))/MA(C,12)*100;   
  98. BIAS3:=(C-MA(C,24))/MA(C,24)*100;   
  99. BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;   
  100. 乖离:=MA(BIAS,3);   
  101. DRAWTEXT(CROSS(BIAS,乖离)  AND 乖离<-9,(V-HLMN3)*HLMN2/HLMN4+HLMN1+0.2,'底'),COLORRED;   

说明:主图用的是‘醉加减’加上自己一直在用的成交量和BIAS指标整和而成,抱着学习的态度请各位老师指教!
      成交量上标明了涨停和跌停,量柱中有白色细柱为此量为倍量(比前天量大2倍以上)有黄色细柱为3倍
      量,方便查看!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则