An Indicator that calculates the Pivot Point line,along with the 2 levels of support and resistance lines, known as S1, S2, R1, R2 respectively.
The formulas for calculation are as follows:
Pivot point (PP) = (High + Low + Close) / 3
First level support and resistance:First resistance (R1) = (2 x PP) – LowFirst support (S1) = (2 x PP) – High
Second level of support and resistance:Second resistance (R2) = PP + (High – Low)Second support (S2) = PP – (High – Low)
The trader can adjust the number called pivot_timeframe to adjust which timeframe is calculated andshown on the charts.The number is the timeframe expressed as number of minutes.1 min: 15 min: 515 min: 1530 min: 301 hour: 604 hour: 2401 day: 14401 week: 100801 month: 43200