Candlestick Volume Bars with Moving Average.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Candlestick Volume Bars with Moving Average
  4. //  Author/Uploader: Mr. Valley 
  5. //  E-mail:          
  6. //  Date/Time Added: 2001-10-27 22:29:03
  7. //  Origin:          
  8. //  Keywords:        Candlestick Volume Bars
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=130
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=130
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Candlestick Volume Bars with a 16 period moving average of volume
  17. //
  18. //------------------------------------------------------------------------------
  19. upbar = C > Ref(C,-1);
  20. downbar = C< Ref(C,-1);
  21. barcolor=IIf(downbar, 4, IIf(upbar, 5,19) );
  22. O = IIf(downbar, V, 0); 
  23. C = IIf(downbar, 0, V);
  24. L=0; H = V;
  25. Graph2=C; 
  26. Graph2Style=64;
  27. Graph2BarColor=barcolor;
  28. Graph1=MA(Volume,16); /* Matches with default volume indicator in AMI