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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Woodies CCI
  4. //  Author/Uploader: Mark 
  5. //  E-mail:          mleonsprint@yahoo.com
  6. //  Date/Time Added: 2004-10-30 20:39:54
  7. //  Origin:          www.woodiescciclub.com
  8. //  Keywords:        
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=393
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=393
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  I didn't see it on the list so here is what I coded up, enjoy!
  17. //
  18. //  Thanks Woodie!!
  19. //
  20. //------------------------------------------------------------------------------
  21. Title = "Woodies CCI " + " " + FullName() + " " + Date( ) ;
  22. A=Param("CCI TURBO PERIODS",6,3,14,1);
  23. A1=Param("CCI 14 PERIODS",14,7,20,1);
  24. A2=ParamColor("CCI TURBO",colorBrightGreen);
  25. A3=ParamColor("CCI 14",colorRed);
  26. A4=CCI(A);
  27. A5=CCI(A1);
  28. A6=IIf(A5<0,colorBrightGreen,colorRed);
  29. A7=IIf(Ref(A5,-5) <0 AND Ref(A5,-4) <0 AND Ref(A5,-3) <0 AND Ref(A5,-2) <0 AND Ref(A5,-1) <0,colorRed,A6);
  30. A8=IIf(Ref(A5,-5) >0 AND Ref(A5,-4) >0 AND Ref(A5,-3) >0 AND Ref(A5,-2) >0 AND Ref(A5,-1) >0,colorBrightGreen,A7);
  31. Plot(A5,"CCI TURBO HISTOGRAM",A8,styleHistogram);
  32. Plot(A4,"CCI TURBO",A2,styleThick);
  33. Plot(A5,"CCI 14",A3,styleThick);
  34. Plot(0,"ZERO LINE",colorBlack,styleThick);
  35. Plot(100,"HUNDRED LINE",colorBlack,styleDots);
  36. Plot(-100,"MINUS LINE",colorBlack,styleDots);