pivot point graph.afl

来自「一个更精度的平滑涵数, 可用于股票交易系统.用于Amibroker 平台」· AFL 代码 · 共 51 行

AFL
51
字号
//------------------------------------------------------------------------------
//
//  Formula Name:    Pivot Point Graph
//  Author/Uploader: Tiziano Fogliata 
//  E-mail:          
//  Date/Time Added: 2001-06-23 13:30:29
//  Origin:          
//  Keywords:        pivot point support resistance
//  Level:           medium
//  Flags:           indicator
//  Formula URL:     http://www.amibroker.com/library/formula.php?id=32
//  Details URL:     http://www.amibroker.com/library/detail.php?id=32
//
//------------------------------------------------------------------------------
//
//  This indicator, using data from the previous trading day, calculates the
//  next day's pivot point as well as support and resistance levels.
//
//  High, Low, and Close data are needed.
//
//------------------------------------------------------------------------------

/* Calcolo dei pivot point 
e dei supporti e resistenze
*/

P  =  ((H + L + C) / 3);
R1  =  ((2 * P) - L);
S1  =  ((2 * P)  - H);
R2  =  ((P - S1) + R1);
S2  =  (P - (R1 - S1));

maxgraph = 5;

graph0 = P;
graph1 = R1;
graph2 = S1;
graph3 = R2;
graph4 = S2;

graph0style = 4;
graph1style = 1;
graph2style = 1;
graph3style = 1;
graph4style = 1;

graph0color = 7;
graph1color = 5;
graph2color = 5;
graph3color = 9;
graph4color = 9;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?