[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pivot Point



PureBytes Links

Trading Reference Links

Hi there,
I've written my first indicator using AFL.
It draws the pivot point, the first and second level of support and resistance.
Does someone see some mistakes in this formula ?

/* --------------- */

P = ((H + L + C) / 3);
R1 = ((2 * P) - L);
S1 = ((2 * P) - H);
R2 = ((P - S1) + R1);
S2 = (P - (R2 - 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 = 6;
graph4color = 6;

/* ------------ */

Best regards,
Tiziano.


--
"And the whole world could have passed through me
But I don't know that it means much to me"