Future MA Projection.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Future MA Projection
  4. //  Author/Uploader: OzFalcon 
  5. //  E-mail:          OzFalconAB@BDen.org
  6. //  Date/Time Added: 2006-10-02 18:12:20
  7. //  Origin:          Home Brew
  8. //  Keywords:        Future MA Projection
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=728
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=728
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  A very basic example of Future Projection using various shift functionality
  17. //  of Amibroker. This example projects a Simple MA.
  18. //
  19. //------------------------------------------------------------------------------
  20. _SECTION_BEGIN("Future MA");
  21. // Plot Future MA.
  22. Fwd = Param( "Fwd Period", 5, -50, 50 );
  23. FwdC = Ref(Close,Fwd);
  24. FwdMA = MA(FwdC,Fwd);
  25. Plot(C,"Close",colorBlack,styleLine,0,0,-Fwd);
  26. Plot(FwdC,"FwdClose",colorRed,styleLine);
  27. Plot(FwdMA,"FwdMA",colorGreen,styleLine);
  28. _SECTION_END();