v3
Updated:
breakouts(pivotBars, numNeighbors, maxData, predictionSmoothing)
Detects and predicts breakout points from pivot data.
Parameters:
pivotBars (int): int: Number of bars for pivot point detection.
numNeighbors (int): int: Neighbors count for k-NN prediction.
maxData (int): int: Maximum pivot data points for analysis.
predictionSmoothing (int): int: Smoothing period for predictions.
Returns: [series float, series float, series int]: Lower and higher prediction bands plus pivot signal, 1 for ph and -1 for pl.