Tushar Chande's Projected Range.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Tushar Chande's Projected Range
  4. //  Author/Uploader: Prakash Shenoi 
  5. //  E-mail:          
  6. //  Date/Time Added: 2006-08-13 12:14:03
  7. //  Origin:          
  8. //  Keywords:        Range Projection
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=679
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=679
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Plots projected price targets for the next day.
  17. //
  18. //------------------------------------------------------------------------------
  19. /*Tushar Chande's Range Projection */
  20. /* AFL Code by Prakash Shenoi */
  21. Av=MA(abs(C-Ref(C,-1)),10);
  22. r1=(C+Av);
  23. r2=(C+(2*Av));
  24. s1=(C-Av);
  25. s2=(C-(2*Av));
  26. Plot (Close,"",3,128);
  27. Plot (r1,"",24,16+8);
  28. Plot (r2,"",24,16+8);
  29. Plot (s1,"",26,16+8);
  30. Plot (s2,"",26,16+8);
  31. GraphXSpace=5;
  32. Title=Name ()+ "  Tushar Chande's Projected Range "+"n"+ "RES =" + WriteVal  (r1,1.2) + ", "+ WriteVal  (r2,1.2) + "  " + " SUPP= "+ WriteVal (s1,1.2)+ ", " + WriteVal(s2,1.2) ;