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.
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. יהיה עליך לשלוח בקשת גישה ולקבל אישור לשימוש. בדרך כלל, הגישה ניתנת לאחר תשלום. למידע נוסף, עקוב אחר ההוראות של היוצר בהמשך או צור קשר עם gurple ישירות.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין כיצד הוא פועל. ייתכן שתוכל גם למצוא חלופות חינמיות וקוד פתוח ב-סקריפטים הקהילתיים שלנו.
הוראות המחבר
כתב ויתור
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. יהיה עליך לשלוח בקשת גישה ולקבל אישור לשימוש. בדרך כלל, הגישה ניתנת לאחר תשלום. למידע נוסף, עקוב אחר ההוראות של היוצר בהמשך או צור קשר עם gurple ישירות.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין כיצד הוא פועל. ייתכן שתוכל גם למצוא חלופות חינמיות וקוד פתוח ב-סקריפטים הקהילתיים שלנו.