# Pivot Points 2.0

• Overview

Are you looking for a high-quality pivot points indicator? The Pivot Points indicator is for you because...

• It displays historical levels for backtesting purposes
• It allows you to select the reference timeframe
• It implements customizable colors and sizes
• It draws the middle points between pivot points
• You can use it to build a reliable expert advisor

Boost your trading returns with the most useful pivot points indicator, just like hundreds of users have already done!

#### So, what are Pivot Points?

A pivot point analysis is often used in conjunction with calculating support and resistance levels, similar to a trend line analysis. In a pivot point analysis, the first support and resistance levels are calculated by using the width of the trading range between the pivot point and either the high or low prices of the previous day. The second support and resistance levels are calculated using the full width between the high and low prices of the previous day.

• ? FAQ
Does the indicator repaint?
No, the indicator never repaints.
Can I hide the historical pivot points?
No, the indicator displays historical pivot points as well for backtesting purposes.
• </> Developers

In order to build your expert advisor, you can read data from the indicator using the iCustom() function as exemplified below. The indicator has one extra buffer which only purpose is to store trading signals as constants: this is the only buffer you need to read from. Copy and paste the code below into your EA, and replace the indicator name of the iCustom() call with your own.

``````int start()
{
// Read values from the indicator
double r1      = iCustom(Symbol(), Period(), "PZ_PivotPoints", 0, 1);
double r2      = iCustom(Symbol(), Period(), "PZ_PivotPoints", 1, 1);
double r3      = iCustom(Symbol(), Period(), "PZ_PivotPoints", 2, 1);
double pivot   = iCustom(Symbol(), Period(), "PZ_PivotPoints", 6, 1);
double s1      = iCustom(Symbol(), Period(), "PZ_PivotPoints", 3, 1);
double s2      = iCustom(Symbol(), Period(), "PZ_PivotPoints", 4, 1);
double s3      = iCustom(Symbol(), Period(), "PZ_PivotPoints", 5, 1);
//--
// Now do something with those values
//--
// Exit
return(0);
}``````