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

以下是空中加油(无源码的请下载附件导入)

 

C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
  1. {空中加油★}   
  2. {背景色}   
  3. RSVCC:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;   
  4. STICKLINE( RSVCC>0,60,0,8,0),COLOR880022;   
  5. STICKLINE( RSVCC>0,-40,0,8,0),COLOR003300;   
  6. DIFF1:= EMA(C,3) - EMA(C,13);   
  7. DEA1 := EMA(DIFF1,9);   
  8. MACD1:= 2*(DIFF1-DEA1)*10;   
  9. DIFF2:= EMA(C,5) - EMA(C,26);   
  10. DEA2 := EMA(DIFF2,9);   
  11. MACD2:= 2*(DIFF2-DEA2)*10;   
  12. DIFF3:= EMA(C,7) - EMA(C,89);   
  13. DEA3 := EMA(DIFF3,21);   
  14. MACD3:= 2*(DIFF3-DEA3)*10;   
  15. {STICKLINE(C>0,0,10,6,0),COLORE5C3EA;   
  16. STICKLINE(C>0,0,-5,6,0),COLORF6B06C;}   
  17. STICKLINE(MACD3>=0,0,MACD3,5,0),COLOR9999FF;   
  18. STICKLINE(MACD3<0,0,-MACD3,5,0),COLOR9999AA;    
  19. STICKLINE(MACD2>=0,0,MACD2,5,0),COLOR9966FF;{COLOR007D19};   
  20. STICKLINE(MACD2<0,0,-MACD2,5,0),COLOR557799;{COLOR555555};   
  21. STICKLINE(MACD1>=0,0,MACD1,5,0),COLOR9900FF;   
  22. STICKLINE(MACD1<0,0,-MACD1,5,0),COLOR556688;    
  23. STICKLINE(MACD3,0,-ABS(MACD3)*0.6,5,0),COLOR232323;   
  24. STICKLINE(MACD1,0,-ABS(MACD1)*0.6,5,0),COLOR0F0F0F;   
  25.   
  26. VAR21:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;   
  27. 绿星持币:VAR21,COLORGREEN,POINTDOT,LINETHICK4;   
  28. 红星持股:IF(VAR21>0,VAR21,0),CIRCLEDOT,COLORRED,LINETHICK2;   
  29. 短顶:STICKLINE(VAR21>9 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+2,0,3,0),COLORFF4400;   
  30. STICKLINE(VAR21>9 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+2,0,2.4,0),COLORFF6600;   
  31. STICKLINE(VAR21>9 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+2,0,1.8,0),COLORFF9900;   
  32. STICKLINE(VAR21>9 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+2,0,1.2,0),COLORFFCC00;   
  33. STICKLINE(VAR21>9 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+2,0,0.6,0),COLORGREEN;   
  34. 大顶:STICKLINE(VAR21>20 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+20,0,7,0),COLOR003300;   
  35. STICKLINE(VAR21>20 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+20,0,6,0),COLOR005500;   
  36. STICKLINE(VAR21>20 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+20,0,5,0),COLOR007700;   
  37. STICKLINE(VAR21>20 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+20,0,3,0),COLOR009900;   
  38. STICKLINE(VAR21>20 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+20,0,0.5,0),COLOR00CC00;   
  39. VAR22:=HHV(VAR21>20,10);    
  40. 危险: STICKLINE(VAR22 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR21+10,0,4,0)COLORFF0033;    
  41. STICKLINE(VAR22 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR21+10,0,3.3,0)COLORFF0066;   
  42. STICKLINE(VAR22 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR21+10,0,2.4,0)COLORFF0099;   
  43. STICKLINE(VAR22 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR21+10,0,1.6,0)COLORFF00CC;   
  44. STICKLINE(VAR22 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR21+10,0,0.8,0)COLORFF00FF;    
  45. 注意止损:STICKLINE(VAR22 AND FILTER(VAR21< REF(VAR21,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR21+6,0,3,0)COLOR0035FF;   
  46. STICKLINE(VAR22 AND FILTER(VAR21< REF(VAR21,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR21+6,0,2.4,0)COLOR0064FF;   
  47. STICKLINE(VAR22 AND FILTER(VAR21< REF(VAR21,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR21+6,0,1.8,0)COLOR0093FF;   
  48. STICKLINE(VAR22 AND FILTER(VAR21< REF(VAR21,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR21+6,0,1.2,0)COLOR00C2FF;   
  49. STICKLINE(VAR22 AND FILTER(VAR21< REF(VAR21,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR21+6,0,0.6,0)COLOR00FFFF;   
  50. 短底:STICKLINE(VAR21<-9 AND VAR21> REF(VAR21,1),VAR21-2,0,3,0),COLOR000033;   
  51. STICKLINE(VAR21<-9 AND VAR21> REF(VAR21,1),VAR21-2,0,2.4,0),COLOR000066;   
  52. STICKLINE(VAR21<-9 AND VAR21> REF(VAR21,1),VAR21-2,0,1.8,0),COLOR000099;   
  53. STICKLINE(VAR21<-9 AND VAR21> REF(VAR21,1),VAR21-2,0,1.2,0),COLOR0000CC;   
  54. STICKLINE(VAR21<-9 AND VAR21> REF(VAR21,1),VAR21-2,0,0.6,0),COLOR0000FF;   
  55. DRAWTEXT(VAR21>9 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+2,'短顶'),COLORCYAN;   
  56. DRAWTEXT(VAR21>20 AND FILTER(VAR21<REF(VAR21,1),5),VAR21+21,'大顶'),COLORGREEN;   
  57. DRAWTEXT(VAR22 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR21+10,'危险'),COLOR0033FF;   
  58. DRAWTEXT(VAR22 AND FILTER(VAR21< REF(VAR21,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR21+6,'注意止损'),COLORYELLOW;   
  59. DRAWTEXT(FILTER(VAR21<-9 AND VAR21>REF(VAR21,1),18),1.8,'买票准备');   
  60. MA5:=MA(CLOSE,5);   
  61. MA10:=MA(CLOSE,10);   
  62. MA20:=MA(CLOSE,20);   
  63. MA30:=MA(CLOSE,30);   
  64. MA250:=MA(CLOSE,250),COLORRED;   
  65. N1:=BARSLAST(CROSS(MA5,MA10));   
  66. N2:=BARSLAST(CROSS(MA10,MA5));   
  67. 多:=IF(N1<N2,N1+1,0);   
  68. 空:=IF(N2<N1,N2+1,0);   
  69. QSXS:=MA5>MA20 AND MA10>MA20 AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);   
  70. 启动:=多*QSXS,COLORRED,LINETHICK0;   
  71. 跑道:=空*QSXS,COLORFFFF00,LINETHICK0;   
  72. HKFJ:=HHV(多,5)>=2 AND QSXS AND MA5>REF(MA5,1) AND MA5>MA10;   
  73. 空中拉升:HKFJ*多,COLOR000099,LINETHICK3;   
  74. HKSJ:=BARSLAST(空中拉升>0 AND NOT(REF(空中拉升,1)))+1;   
  75. 高度:=(C/REF(C,HKSJ)-1)*100,COLOR00FFFF;   
  76. 客机安全高度:高度,COLOR999999;   
  77. 空中加油:IF(高度>0,高度,0),COLORRED,LINETHICK3;  

空中加油


上一篇:自用战神主图    下一篇:生龙活虎KDJ

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