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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Force index
  4. //  Author/Uploader: Thomas Youssef 
  5. //  E-mail:          thomasmejl@hotmail.com
  6. //  Date/Time Added: 2005-02-22 02:07:19
  7. //  Origin:          
  8. //  Keywords:        force index Alexander Elder indicator
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=433
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=433
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Alexander Elder磗 classic force index indicator
  17. //
  18. //  I use them on swedish stocks, weekly.
  19. //
  20. //  The rules are easy:
  21. //
  22. //  If the indicator is below zero AND there is a bullish divergence, then go
  23. //  LONG
  24. //
  25. //  If the indicator is above zero AND there is a bearish divergence, then go
  26. //  SHORT
  27. //
  28. //  Works well when you have a head and shoulder or a triangular formation
  29. //  against the zeroline.
  30. //
  31. //------------------------------------------------------------------------------
  32. /*Made by Thomas Youssef, 2005-01-15
  33. Alexander Elder磗 classic force index indicator
  34. I use them on swedish stocks, weekly.
  35. The rules are easy:
  36. If the indicator is below zero AND there is a bullish divergence, then go LONG
  37. If the indicator is above zero AND there is a bearish divergence, then go SHORT
  38. Works well when you have a head and shoulder or a triangular formation against the zeroline.
  39. */
  40. _SECTION_BEGIN("Force index");
  41. FI=EMA(((C-Ref(C,-1))*V),13);
  42. Plot(FI,"FI",12,5);
  43. Plot(0,"ZERO LINE",colorWhite,styleThick);
  44. _SECTION_END();