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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Volume Weighted Moving Average
  4. //  Author/Uploader: Jack Kutzer 
  5. //  E-mail:          jack.kutzer@mail.com
  6. //  Date/Time Added: 2002-07-10 11:23:59
  7. //  Origin:          Neuro Dimensions Trading Solutions Implementation of Volume Weighted Moving Average
  8. //  Keywords:        
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=197
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=197
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Conversion of the Volume Weighted Moving Average from Neuro Dimensions
  17. //  Tading Solutions to AFL.
  18. //
  19. //------------------------------------------------------------------------------
  20. /* The Volume Weighted Moving Average calculates the sum of the volume times the data field for each day in the average, then divides this value by the sum of the volumes in that period. */
  21. Graph0 = Sum((Volume*Close),10)/Sum (Volume,10);