AutoPivots(Source, Trend);
Source - This is the array that will be used for calculating the indicator. This can be the price or another indicator like RSI.
Trend - Number of datapoints that should be lower or higher at either side of the pivot.
Finds pivots on the target Source array.