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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    garythompson
  4. //  Author/Uploader: Gary Thompson 
  5. //  E-mail:          picard@ten-forward.co.uk
  6. //  Date/Time Added: 2005-04-07 06:29:05
  7. //  Origin:          
  8. //  Keywords:        
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=454
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=454
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Bill Williams Awesome Oscillator ( a momentum Oscillatr) based on the
  17. //  profitunity trading approach. See "Trading Chaos" Bill williams for full
  18. //  description
  19. //
  20. //------------------------------------------------------------------------------
  21. /* Awesome Oscillator code for Amibroker
  22. Written By Gary Thompson 
  23. 07th April 2005  */
  24. SlowMA=MA( Avg ,34);
  25. FastMA=MA( Avg,5);
  26. barcolor= IIf((SlowMA - FastMA) <= Ref(SlowMA - FastMA, -1),colorGreen,colorRed); 
  27.                
  28. Graph0=FastMA-SlowMA;
  29. Graph0Style=2+5;
  30. Graph0BarColor=barcolor;
  31. /* the following is to put the 5 period signal line on the oscillator if you choose*/
  32. /*Graph1=Wilders(SlowMA-FastMA,5);
  33. Graph1Style=4+1;*/