Elder Ray - Bull Bear.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Elder Ray - Bull Bear
  4. //  Author/Uploader: Noor_Doodie 
  5. //  E-mail:          muhd.noor.sn@gmail.com
  6. //  Date/Time Added: 2006-02-23 12:10:44
  7. //  Origin:          
  8. //  Keywords:        
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=595
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=595
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  I have constructed it in color and joined the two lines together instead.
  17. //  Violet = Bull, Orange = Bear.
  18. //
  19. //  If im not wrong, Dr. Elder's teaching goes like this:
  20. //
  21. //  In uptrends, use Elder Ray-Bull(Violet)
  22. //
  23. //  In Downtrends, use Elder Ray-Bear(Orange)
  24. //
  25. //  Pls correct me if im wrong.
  26. //
  27. //------------------------------------------------------------------------------
  28. _SECTION_BEGIN("Elder Ray");
  29. ERayBull= High - EMA(Close,13);
  30. ERayBear= Low - EMA(Close, 13);
  31. Plot(ERayBull,"Elder Bull", colorViolet, styleHistogram|styleThick);
  32. Plot(ERayBear,"Elder Bear", colorOrange, styleHistogram|styleThick);
  33. _SECTION_END();