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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Ichimoku Chart
  4. //  Author/Uploader: Prakash Shenoi 
  5. //  E-mail:          
  6. //  Date/Time Added: 2006-08-11 12:30:12
  7. //  Origin:          Adapted from Ken Muranaka's formula and article
  8. //  Keywords:        Trend Following System
  9. //  Level:           medium
  10. //  Flags:           system,indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=677
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=677
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Ichimoku Chart is a trend following system similar to Moving averages. Time
  17. //  spans of 9, 26 and 52 are used. According to Ken Muranaka, Ichimoku charts
  18. //  depicts market timing, resistance/support,and possibly false break outs,
  19. //  all in one chart, in one panoramic view. For more details, check this link:
  20. //  http://www.forex-books.com/articles/techan/ichimoku.pdf
  21. //
  22. //------------------------------------------------------------------------------
  23. /* ICHIMOKU CHART */
  24. /* AFL code by Prakash Shenoi */
  25. SL=(HHV(H,26)+LLV(L,26))/2;
  26. TL=(HHV(H,9)+LLV(L,9))/2;
  27. DL=Ref(C,25);
  28. Sp1=Ref((SL+TL)/2,-25);
  29. Sp2=Ref((HHV(H,52)+LLV(L,52))/2,-25);
  30. MaxGraph=6;
  31. Graph0=C;
  32. Graph0Style=styleCandle;
  33. Graph0Color=1;
  34. Graph1=SL;
  35. Graph1Color=3;
  36. Graph2=TL;
  37. Graph2Color=4;
  38. Graph3=DL;
  39. Graph3Color=32;
  40. Graph4=Sp1;
  41. Graph4Color=5;
  42. Graph5=Sp2;
  43. Graph5Color=6;
  44. Graph1Style=Graph2Style= styleLine | styleThick;
  45. Graph3Style=Graph4Style= styleLine | styleThick;
  46. Graph5Style=styleLine | styleThick;
  47. Title=Name ()+ "  Ichimoku Chart  " + WriteVal ( Graph0,format=1.2);