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

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Rainbow Charts
  4. //  Author/Uploader: Anthony Faragasso 
  5. //  E-mail:          ajf1111@epix.net
  6. //  Date/Time Added: 2001-08-13 21:47:59
  7. //  Origin:          July 1997 TASC Traders Tips
  8. //  Keywords:        
  9. //  Level:           basic
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=102
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=102
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  Produce colorful Charts with 10 moving averages.
  17. //
  18. //------------------------------------------------------------------------------
  19. /* Rainbow Charts */
  20. /* July 1997 TASC Traders Tips*/
  21. /* coded by Anthony Faragasso*/
  22. maxgraph = 15;
  23. graph0 = close;
  24. graph1 = Ma(C,2);
  25. graph2 = Ma(Ma(C,2),2);
  26. graph3 = Ma(Ma(Ma(C,2),2),2);
  27. graph4 = Ma(Ma(Ma(Ma(C,2),2),2),2);
  28. graph5 = Ma(Ma(Ma(Ma(Ma(C,2),2),2),2),2);
  29. graph6 = Ma(Ma(Ma(Ma(Ma(Ma(C,2),2),2),2),2),2);
  30. graph7 = Ma(Ma(Ma(Ma(Ma(Ma(Ma(C,2),2),2),2),2),2),2);
  31. graph8 = Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(C,2),2),2),2),2),2),2),2);
  32. graph9 = Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(C,2),2),2),2),2),2),2),2),2);
  33. graph10 = Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(Ma(C,2),2),2),2),2),2),2),2),2),2);
  34. graph0style =128;
  35. graph1style=graph2style=graph3style=graph4style=graph5style=graph6style=graph7style=graph8style=graph9style=graph10style = 1;
  36. graph0color = 2;
  37. graph1color = 3;
  38. graph2color = 5;
  39. graph3color =7;
  40. graph4color = 6;
  41. graph5color =15;
  42. graph6color = 8;
  43. graph7color =16;
  44. graph8color = 10;
  45. graph9color = 11;
  46. graph10color = 12;
  47. title=name() + "  Rainbow Charts " + " Today's Close : " +"(" +writeval(close,format=1.2)+")" +" Change from Previous : " +"("+writeval(close - ref(close,-1)) +")";