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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Stochastic OSI & OBI
  4. //  Author/Uploader: Dimitris Tsokakis 
  5. //  E-mail:          
  6. //  Date/Time Added: 2002-03-24 14:28:53
  7. //  Origin:          
  8. //  Keywords:        
  9. //  Level:           advanced
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=178
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=178
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  An example Of Overbought Issues (OBI) and Oversold Issues(OSI), based on
  17. //  Stochastic(14), smoothed, complementary to RSIobi and RSIosi.
  18. //
  19. //------------------------------------------------------------------------------
  20. /*STOCHD OSI OBI*/
  21. s1=StochD(14);
  22. os=s1<=30;
  23. ob=s1>70;
  24. values11 = os>0;
  25. values12= ob>0;
  26. AddToComposite(Values11,"~stochdosi","V");
  27. AddToComposite(Values12,"~stochdobi","V");
  28. Buy=0;