PINE LIBRARY

XXPivotsBreakouts

Library "XXPivotsBreakouts"
Utilizes k-NN machine learning to predict breakout zones from pivot points, aiding traders in identifying potential bullish and bearish market movements. Ideal for trend-following and breakout strategies.

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.
MATH

Pine腳本庫

在真正的TradingView精神中,作者將這段Pine程式碼發佈為開源程式庫,以便我們社群的其他Pine程式設計師可以重複使用它。請向作者致敬!您可以私下使用這個函式庫,或在其他開源出版品中使用,但在出版物中再次使用這段程式碼將受到網站規則的約束。

免責聲明