OPEN-SOURCE SCRIPT

Pattern Similarity Projection

102
This indicator identifies historical price patterns that mathematically resemble recent market behavior to forecast potential future movements. It works by:

* **Scanning History:** Comparing the most recent price action (defaulting to the last 30 bars) against all available historical data using a Min-Max normalization and Mean Absolute Error algorithm.
* **Visualizing Matches:** Highlighting the top historical matches on the chart with similarity scores (e.g., "88.4% match").
* **Projecting Outcomes:** Drawing projection lines from the current price that mimic how those historical patterns played out.
* **Calculating Agreement:** analyzing the collective trajectory of all found matches to generate an "Agreement Score," indicating the consensus confidence of the projection.

The script is fully customizable, allowing users to select specific data points (Open, High, Low, Close, Volume) for comparison and adjust window sizes to fit different trading strategies.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。