OPEN-SOURCE SCRIPT
Pattern Similarity Projection

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.
* **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 الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.