公式网 股票指标公式源码分享 登录 注册
公式指标平网
未来函数检测
首页 金钻指标 通达信公式 大智慧公式 同花顺公式 文华财经公式 东财通公式 飞狐公式 操盘手公式 其他公式 公式解答 股票软件 股票池
当前位置:→ 公式网 > 飞狐公式 > 正文 → 正文

全息主图==非常好的看趋势操盘主图

发布时间:2009/9/2 22:10:08  浏览次数:

C/C++ Code复制内容到剪贴板
  1. SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);   
  2. DRAWTEXTREL(12,5,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK3,Color8000FF;   
  3. AA10:MA(CLOSE,8),color0000FF;   
  4. AA12:MA(CLOSE,12),color0000FF;   
  5. BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);   
  6. BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);   
  7. MA13:=MA(CLOSE,13);   
  8. FILLRGN((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1)),AA10,AA12),Color0098FF;   
  9. FILLRGN((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1)),AA10,AA12),color00FF00;   
  10. x1:=(C+L+H)/3;   
  11. bb13:=atan(ema(x1,13)-ref(ema(x1,13),1))*3.1416*10;   
  12. ema8:=ema(c,8);   
  13. DRAWTEXT(filter(bb13>1 and ema(x1,13)>ref(ema(x1,8),1),10),   
  14. ema8,'∠45上升'),colorwhite;   
  15. 压力:MA(REF(HHV(C,30),1),2),Color9DFFFF;   
  16. 支撑:MA(REF(LLV(C,30),1),2),ColorABFF46;    
  17. AA1:=AMOUNT/V;   
  18. BB1:=L<AA1*0.9;   
  19. CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;   
  20. DD1:=L<MA(C,5)*0.921;   
  21. EE1:=V<MA(V,5)*1.5;   
  22. FF1:=BB1 AND CC1 AND DD1 AND EE1;   
  23. DRAWTEXT(ff1,(LOW* 0.99),'老鼠仓'),Color4080FF;   
  24. A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);   
  25. 黑马线:=EMA(A51,5);   
  26. A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;   
  27. 趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));   
  28. DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH* 0.94),'▲'),COLORYELLOW,align;   
  29. DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH* 0.92),'大黑马'),COLORYELLOW;   
  30.   
  31. LC:=REF(CLOSE,1);   
  32. RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);   
  33. FF:=EMA(CLOSE,3);   
  34. MA15:=EMA(CLOSE,21);   
  35. DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),'底背离'),ColorA6E500;   
  36. DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),Color1880FF;   
  37. VAR2:=LLV(LOW,27);   
  38. VAR3:=HHV(HIGH,34);   
  39. VAR4:=EMA((CLOSE-Var2)/(Var3-Var2)*4,4)*25;   
  40. 注意买:=IF((Var4<10),80,100);   
  41. RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;   
  42. K:=SMA(RSV,3,1);   
  43. D:=SMA(K,3,1);   
  44. J:=3*K-2*D;   
  45. 超跌:=IF(J<0,10,0);   
  46. BDDD:=LLV(J,2)=LLV(J,8);   
  47. 买入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);   
  48. DRAWTEXT(买入 AND 注意买=100 AND 超跌=0,low,'短线'),Color8000FF;   
  49. MTM:=C-REF(C,1);   
  50. DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);   
  51. 买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);   
  52. DRAWTEXT(filter(买=1,5),LOW-0.03,'拉升'),ColorFFDE00;   
  53. STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLOR0000FF;    
  54. STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLOR0000FF;   
  55. STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLOR00FF00;    
  56. STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLOR00FF00;   
  57. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff7700;   
  58. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff9900;   
  59. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb00;   
  60. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc00;   
  61. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd00;   
  62. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee00;   
  63. STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF00;   
  64. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000055;   
  65. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000066;   
  66. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;   
  67. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;   
  68. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000bb;   
  69. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000dd;   
  70. STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000ff;   
  71. var9Q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);   
  72.      stickline(var9Q,c,(o+c)/2,7,0),color000055;   
  73.      stickline(var9Q,c,(o+c)/2,6,0),color000066;   
  74.      stickline(var9Q,c,(o+c)/2,5,0),color000077;   
  75.      stickline(var9Q,c,(o+c)/2,4,0),color000099;   
  76.      stickline(var9Q,c,(o+c)/2,3,0),color0000bb;   
  77.      stickline(var9Q,c,(o+c)/2,2,0),color0000dd;   
  78.      stickline(var9Q,c,(o+c)/2,1,0),color0000ff;   
  79. varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);   
  80.      stickline(varaQ,c,(o+c)/2,7,0),colorff11ff;   
  81.      stickline(varaQ,c,(o+c)/2,6,0),colorff33ff;   
  82.      stickline(varaQ,c,(o+c)/2,5,0),colorff55ff;   
  83.      stickline(varaQ,c,(o+c)/2,4,0),colorff77ff;   
  84.      stickline(varaQ,c,(o+c)/2,3,0),colorff99ff;   
  85.      stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;   
  86.      stickline(varaQ,c,(o+c)/2,1,0),colorffddff;   
  87. varbQ:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);   
  88.      stickline(varbQ,c,(o+c)/2,7,0),color333333;   
  89.      stickline(varbQ,c,(o+c)/2,6,0),color555555;   
  90.      stickline(varbQ,c,(o+c)/2,5,0),color777777;   
  91.      stickline(varbQ,c,(o+c)/2,4,0),color999999;   
  92.      stickline(varbQ,c,(o+c)/2,3,0),colorbbbbbb;   
  93.      stickline(varbQ,c,(o+c)/2,2,0),colordddddd;   
  94.      stickline(varbQ,c,(o+c)/2,1,0),colorffffff;   
  95. varcQ:=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,4) and c>=ref(c,1);   
  96.      stickline(varcQ,o,(o+c)/2,7,0),color003300;   
  97.      stickline(varcQ,o,(o+c)/2,6,0),color005500;   
  98.      stickline(varcQ,o,(o+c)/2,5,0),color007700;   
  99.      stickline(varcQ,o,(o+c)/2,4,0),color009900;   
  100.      stickline(varcQ,o,(o+c)/2,3,0),color00bb00;   
  101.      stickline(varcQ,o,(o+c)/2,2,0),color00dd00;   
  102.      stickline(varcQ,o,(o+c)/2,1,0),color00ff00;   
  103. vardQ:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(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<ref(c,1);   
  104. stickline(vardQ,o,(o+c)/2,7,0),colorff1100;   
  105. stickline(vardQ,o,(o+c)/2,6,0),colorff3300;   
  106. stickline(vardQ,o,(o+c)/2,5,0),colorff5500;   
  107. stickline(vardQ,o,(o+c)/2,4,0),colorff7700;   
  108. stickline(vardQ,o,(o+c)/2,3,0),colorff9900;   
  109. stickline(vardQ,o,(o+c)/2,2,0),colorffbb00;   
  110. stickline(vardQ,o,(o+c)/2,1,0),colorffdd00;   
  111.   
  112. STICKLINE(C>=O,C,O,7,0),COLOR0000AA;   
  113. STICKLINE(C>=O,C,O,6,0),COLOR0000bb ;   
  114. STICKLINE(C>=O,C,O,5,0),COLOR0000cc;   
  115. STICKLINE(C>=O,C,O,4,0),COLOR0000DD ;   
  116. STICKLINE(C>=O,C,O,3,0),COLOR0000ee;   
  117. STICKLINE(C>=O,C,O,2,0),COLOR0000FF;   
  118. STICKLINE(C>=O,C,O,1,0),COLOR0000ff;   
  119. STICKLINE(C>=O,H,L,0,0),COLORRED;   
  120. STICKLINE(C<=O,C,O,7,0),Coloraaaa00;   
  121. STICKLINE(C<=O,C,O,6,0),Colorbbbb00;   
  122. STICKLINE(C<=O,C,O,5,0),Colorcccc00;   
  123. STICKLINE(C<=O,C,O,4,0),Colordddd00;   
  124. STICKLINE(C<=O,C,O,3,0),Coloreeee00;   
  125. STICKLINE(C<=O,C,O,2,0),COLORffff00;   
  126. STICKLINE(C<=O,C,O,1,0),Colorffff00;   
  127. STICKLINE(C<=O,H,L,0,0),COLORffff00;   
  128. STICKLINE(c/ref(c,1)>1.05,(c+o)/2,c,7,0),color00AAAA;   
  129. STICKLINE(c/ref(c,1)>1.05,(c+o)/2,c,5,0),color00CCCC;   
  130. STICKLINE(c/ref(c,1)>1.05,(c+o)/2,c,3,0),color00EEEE;   
  131. STICKLINE(c/ref(c,1)>1.05,(c+o)/2,c,1,0),coloryellow;//当涨幅大于3--5%,要主图K线的实体的一半变为另一色。   
  132. stickline(varbQ,c,(o+c)/2,7,0),color333333;       
  133. stickline(varbQ,c,(o+c)/2,6,0),color555555;       
  134. stickline(varbQ,c,(o+c)/2,5,0),color777777;       
  135. stickline(varbQ,c,(o+c)/2,4,0),color999999;       
  136. stickline(varbQ,c,(o+c)/2,3,0),colorbbbbbb;       
  137. stickline(varbQ,c,(o+c)/2,2,0),colordddddd;       
  138. stickline(varbQ,c,(o+c)/2,1,0),colorffffff;   
  139. SS:=30;   
  140. HhC:=HHV(h,SS);   
  141. LLc:=LLV(L,SS);   
  142. AA:PARTLINE(BARPOS>=SYSPARAM(1)-SS,hHC[SYSPARAM(1)]),COLORGREEN;{1}   
  143. DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,hHC[SYSPARAM(1)],hHC[SYSPARAM(1)],2),COLORFF88CC,PXUP25;   
  144. BB:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]*3+LLc[SYSPARAM(1)])/4),COLORYELLOW,POINTDOT;{2}   
  145. CC:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)])/2),COLORWHITE;{3}   
  146. DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)])/2,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)])/2,2),COLORFF88CC,PXUP25;   
  147. DD:PARTLINE(BARPOS>=SYSPARAM(1)-SS,(hHC[SYSPARAM(1)]+LLc[SYSPARAM(1)]*3)/4),COLORYELLOW,POINTDOT;{4}   
  148. EE:PARTLINE(BARPOS>=SYSPARAM(1)-SS,LLc[SYSPARAM(1)]),COLORRED;{5}   
  149. DRAWNUMBER(BARPOS=SYSPARAM(1)-SS,LLc[SYSPARAM(1)],LLc[SYSPARAM(1)],2),COLORFF88CC,PXUP25;   

 

资源下载链接   资源大小:5KB

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