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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Ergodic Oscillator
  4. //  Author/Uploader: Prakash Shenoi 
  5. //  E-mail:          
  6. //  Date/Time Added: 2006-08-10 10:08:00
  7. //  Origin:          
  8. //  Keywords:        
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=672
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=672
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Ergodic Oscillator uses a double-smoothed ratio of the difference between
  17. //  the Close and Open prices and the difference between High and Low. The
  18. //  default periods of average1 is between 11 and 32 and the default of
  19. //  average2 ranges between 4 and 13, which can be varied by right clicking the
  20. //  Param function.
  21. //
  22. //------------------------------------------------------------------------------
  23. /*Ergodic Oscillator */
  24. /*Coded by Prakash Shenoi */
  25. x=Param(" Average 1",11,2,32);
  26. y=Param(" Average 2",4,3,12);
  27. erg=(EMA(EMA(C-O,x),y)/EMA(EMA(H-L,x),y))*100;
  28. Sg=EMA(erg,5);
  29. Plot (erg,"Ergodic Oscillator ",styleLine,1);
  30. Plot (Sg,"Signal",colorRed,styleLine,1);
  31. GraphXSpace=3;