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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    AO+ Momentum indicator
  4. //  Author/Uploader: Steve Wiser 
  5. //  E-mail:          slwiserr@erols.com
  6. //  Date/Time Added: 2001-07-05 19:06:27
  7. //  Origin:          
  8. //  Keywords:        
  9. //  Level:           semi-advanced
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=55
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=55
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Supports the William's Alligator Trend following system
  17. //
  18. //------------------------------------------------------------------------------
  19. /* Exploration, System and Indicator */
  20.     Author: Steve Wiser
  21.    Email address: slwiserr@erols.com
  22.    May 5, 2001 */
  23. outsidebar = outside();
  24. insidebar = H <= Ref(H,-1) and L >= Ref(L,-1);
  25. upbar = H > ref(H,-1) and L >= ref(L, -1);
  26. downbar = L < ref(L,-1) and H <= ref(H,-1);
  27. barcolor=iif(outsidebar, 1, 
  28.                iif(downbar,   4, 
  29.                iif(upbar,        5, 
  30.                iif(insidebar,6, 0 ) ) ) );
  31. /*barcolor=
  32.       iif(outsidebar, 1, iif(downbar, 4, iif(upbar,5, 0) ) );*/
  33. var1=ma( A , 34);
  34. var2=ma( A,5);
  35. graph0=var2-var1;
  36. Graph0Style=2+4;
  37. graph1=wilders(var2-var1,5);
  38. Graph1Style=4+1;
  39. Graph0BarColor=Barcolor;