Relative strength comparison with moving average.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Relative strength comparison with moving average
  4. //  Author/Uploader: Don McKay 
  5. //  E-mail:          
  6. //  Date/Time Added: 2004-01-15 09:30:50
  7. //  Origin:          
  8. //  Keywords:        Relative strength comparison
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=322
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=322
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Compare current stock against another with a moving average.
  17. //
  18. //------------------------------------------------------------------------------
  19. /* Relative Strength Comparison with Relative Strength Moving Average*/
  20. RSTick = "^AORD"; //Replace with ticker of your choice
  21. WMAvalue = Param("RelStre WMA", 30, 1, 55, 1);
  22. Plot ( RelStrength( RSTick),"RelStrength "+ RSTick, -8 );// Plot Relative Strength 
  23. Plot (WMA( RelStrength( RSTick),WMAvalue)," RelStrength WMA "+ WMAvalue, colorBrightGreen, styleLine);