Pivot Point Graph.afl
上传用户:shiqiang
上传日期:2009-06-12
资源大小:1289k
文件大小:1k
源码类别:

金融证券系统

开发平台:

Others

  1. //------------------------------------------------------------------------------
  2. //
  3. //  Formula Name:    Pivot Point Graph
  4. //  Author/Uploader: Tiziano Fogliata 
  5. //  E-mail:          
  6. //  Date/Time Added: 2001-06-23 13:30:29
  7. //  Origin:          
  8. //  Keywords:        pivot point support resistance
  9. //  Level:           medium
  10. //  Flags:           indicator
  11. //  Formula URL:     http://www.amibroker.com/library/formula.php?id=32
  12. //  Details URL:     http://www.amibroker.com/library/detail.php?id=32
  13. //
  14. //------------------------------------------------------------------------------
  15. //
  16. //  This indicator, using data from the previous trading day, calculates the
  17. //  next day's pivot point as well as support and resistance levels.
  18. //
  19. //  High, Low, and Close data are needed.
  20. //
  21. //------------------------------------------------------------------------------
  22. /* Calcolo dei pivot point 
  23. e dei supporti e resistenze
  24. */
  25. P  =  ((H + L + C) / 3);
  26. R1  =  ((2 * P) - L);
  27. S1  =  ((2 * P)  - H);
  28. R2  =  ((P - S1) + R1);
  29. S2  =  (P - (R1 - S1));
  30. maxgraph = 5;
  31. graph0 = P;
  32. graph1 = R1;
  33. graph2 = S1;
  34. graph3 = R2;
  35. graph4 = S2;
  36. graph0style = 4;
  37. graph1style = 1;
  38. graph2style = 1;
  39. graph3style = 1;
  40. graph4style = 1;
  41. graph0color = 7;
  42. graph1color = 5;
  43. graph2color = 5;
  44. graph3color = 9;
  45. graph4color = 9;