OPEN-SOURCE SCRIPT
The Next Pivot [Kioseff Trading]

Hello!
This script "The Next Pivot" uses various similarity measures to compare historical price sequences to the current price sequence!
Features

The image above shows/explains some of the indicator's capabilities!

The image above highlights the projected zig zag (pivots) pattern!
Colors are customizable (:

Additionally, you can plot a forecasted LinReg channel.
Should load times permit it, the script can search all bar history for a correlating sequence. This won't always be possible, contingent on the forecast length, correlation length, and the number of bars on the chart.
Reasonable Assessment
The script uses various similarity measures to find the "most similar" price sequence to what's currently happening. Once found, the subsequent price move (to the most similar sequence) is recorded and projected forward.
So,
1: Script finds most similar price sequence
2: Script takes what happened after and projects forward
While this may be useful, the projection is simply the reaction to a possible one-off "similarity" to what's currently happening. Random fluctuations are likely and, if occurring, similarities between the current price sequence and the "most similar" sequence are plausibly coincidental.
That said, if you have any ideas on cool features to add please let me know!
Thank you (:
This script "The Next Pivot" uses various similarity measures to compare historical price sequences to the current price sequence!
Features
- Find the most similar price sequence up to 100 bars from the current bar
- Forecast price path up to 250 bars
- Forecast ZigZag up to 250 bars
- Spearmen
- Pearson
- Absolute Difference
- Cosine Similarity
- Mean Squared Error
- Kendall
- Forecasted linear regression channel
The image above shows/explains some of the indicator's capabilities!
The image above highlights the projected zig zag (pivots) pattern!
Colors are customizable (:
Additionally, you can plot a forecasted LinReg channel.
Should load times permit it, the script can search all bar history for a correlating sequence. This won't always be possible, contingent on the forecast length, correlation length, and the number of bars on the chart.
Reasonable Assessment
The script uses various similarity measures to find the "most similar" price sequence to what's currently happening. Once found, the subsequent price move (to the most similar sequence) is recorded and projected forward.
So,
1: Script finds most similar price sequence
2: Script takes what happened after and projects forward
While this may be useful, the projection is simply the reaction to a possible one-off "similarity" to what's currently happening. Random fluctuations are likely and, if occurring, similarities between the current price sequence and the "most similar" sequence are plausibly coincidental.
That said, if you have any ideas on cool features to add please let me know!
Thank you (:
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
•Access to Next-Gen Optimization Tools: kiosefftrading.com
•Discord Server: discord.gg/3cKVU28Z9Z
•Discord Server: discord.gg/3cKVU28Z9Z
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
•Access to Next-Gen Optimization Tools: kiosefftrading.com
•Discord Server: discord.gg/3cKVU28Z9Z
•Discord Server: discord.gg/3cKVU28Z9Z
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.