OPEN-SOURCE SCRIPT

Pakistan Macro Dashboard [invincible3]

357
Pakistan Macro Dashboard [invincible3]

Pakistan Macro Dashboard is a macroeconomic cycle oscillator and dashboard designed to analyze Pakistan’s equity-market environment using policy-rate, inflation, currency, liquidity, external-balance, commodity, and KSE100 trend conditions.

The core oscillator focuses on Pakistan’s monetary cycle. It uses the Pakistan policy rate, its cumulative historical mean, inflation trend, inflation level, and real-rate balance to create a macro score from 0 to 100. Higher values suggest improving liquidity and a more supportive equity backdrop, while lower values suggest restrictive conditions and elevated macro pressure.

A key feature of this indicator is the policy-rate cycle background. The background color is based on the relationship between the current Pakistan policy rate and its cumulative mean:

Red background: policy rate is above its mean and rising, indicating restrictive tightening.

Orange background: policy rate is above its mean but falling, indicating early easing or potential recovery.

Green background: policy rate is below its mean and falling, indicating liquidity expansion.

Yellow background: policy rate is below its mean but rising, indicating early tightening or late-cycle caution.

The oscillator pane also includes optional curves for the macro oscillator, policy rate, cumulative mean policy rate, and inflation rate. Users can independently enable or disable each curve, each label, the background cycle color, and the horizontal risk levels.

The dashboard is displayed on the main chart and provides a structured macro view of Pakistan’s market conditions. It includes policy and inflation readings, real rates, GDP growth, unemployment, USD/PKR, FX reserves, current account, trade balance, remittances, external debt, Brent oil, DXY, emerging-market risk, gold, KSE100 trend, RSI, and sector tilt readings.

The table is divided into two parallel panels:

Left panel: policy cycle, core macro, growth, liquidity, FX view, inflation action, sector tilt, and final PSX bias.

Right panel: external pressure, global commodity pressure, KSE100 trend, and sector read.

The scoring system uses a simple green/yellow/orange/red color structure:

Green: supportive or improving conditions.

Yellow: neutral, mixed, or transition phase.

Orange: caution or pressure building.

Red: high macro risk or unfavorable condition.

This tool is designed for top-down macro analysis of the Pakistan equity market. It can help traders and investors understand whether the broader environment is supportive, neutral, or defensive before evaluating individual stocks or sectors.

Important: This indicator is for educational and analytical use only. It is not financial advice and should not be used as a standalone buy or sell signal. Users should combine it with price action, market structure, risk management, and their own independent analysis.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.