Interest Rate Direction Probability

It uses a simple rolling‑lookback of historical data to count how often a chosen predictor (currently 10‑bar momentum) correctly forecasted the direction of the next move.
The resulting probability curves are plotted on the chart, and optional strategy entries can be generated when those probabilities cross user‑defined thresholds.
Important: This is a research / back‑testing tool only.
Predicting macro‑economic rates is inherently noisy and uncertain; never rely on this script for live trading without extensive validation.
What it tries to do:
•Historical Probability: Calculates the frequency of correct predictions over a user‑defined lookback window.
•Momentum Predictor: Uses 10‑bar momentum (close – SMA) as the primary signal.
•Correlation Preview: Correlation between the rate and unemployment (20‑bar) is computed but not yet used in the probability calculation – a placeholder for future extensions.
•Plotting: Two curves: green = probability of an up‑move, red = probability of a down‑move.
•Strategy Mode: Optional strategy() logic that goes long when prob_up > thresh_up and short when prob_down > thresh_dn.
•Customizable Inputs: Rate symbol, unemployment symbol, lookback length, probability thresholds.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact gurple directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact gurple directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.