OPEN-SOURCE SCRIPT

Fed Rate Change Impact

52
๐Ÿ“Š Fed Rate Change Impact โ€” Macro Event-Driven Indicator

Fed Rate Change Impact is an advanced indicator designed to analyze the impact of Federal Reserve interest rate changes on financial markets. It integrates event-driven logic with dynamic visualization, percentage diagnostics, and multi-asset selection, offering a clear and customizable view of post-event effects.

๐Ÿ” Key Features ๐Ÿ“… Preloaded Fed Events: Includes over 30 historical rate cut (โ†“) and hike (โ†‘) dates from 2008 to 2024.

๐Ÿ“ˆ Post-Event Analysis: Calculates the percentage change of the selected asset 5, 10, and 30 days after each event.

๐Ÿ“Œ Vertical Chart Lines: Visually highlights each event directly on the chart, with dynamic coloring (red for hikes, green for cuts).

๐Ÿ“‹ Diagnostic Table: Displays real-time impact for each event, with color-coded values and a compact layout.

๐Ÿง  Interactive Filter: Choose to display only hikes, only cuts, or both.

๐Ÿงญ Flexible Asset Selection: Analyze the current chart asset, pick from a predefined list, or manually input any ticker via input.symbol().

๐ŸŽฏ Contextual Highlighting: The table highlights the analyzed asset if it matches the active chart symbol.

โš™๏ธ Customizable Parameters lookahead5, lookahead10, lookahead30: Define the time horizon for measuring post-event impact.

eventFilter: Choose which type of events to display.

presetAsset / customAsset: Select or input the asset to analyze.

๐Ÿงช Recommended Use Cases Macroeconomic analysis on indices, commodities, crypto, and forex

Studying delayed effects of rate changes on sensitive assets

Building event-driven strategies or diagnostic overlays

Visual backtesting and cross-asset comparison

๐Ÿง  Technical Notes The indicator is compatible with overlay=true and works best on Daily timeframe.

The table automatically adapts to the number of events and includes visual padding for improved readability.

All calculations are performed in real time and require no external data.

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.