OPEN-SOURCE SCRIPT
Strategy Bias Dashboard

📘 Strategy Bias Dashboard (Bullish, Bearish, Sideways)
Overview
This script provides a Bias Dashboard that helps traders quickly evaluate whether the current market condition is Bullish, Bearish, Sideways, or All.
The dashboard is displayed in a styled table with configurable filters, showing market trend, strength, and volatility in a clean format.
It’s designed for NIFTY, BANKNIFTY, and other liquid instruments, and can be applied on any timeframe, while calculations are based on Daily ATR for consistency.
✨ Features
🔎 Bias Selection Filter → Choose to view only Bullish, Bearish, Sideways, or All conditions.
📊 Dynamic Table → Automatically redraws whenever bias is changed, avoiding empty rows or holes.
🎨 Readable Table Layout → Compact fonts, bold headers, and color-coded cells for clarity.
📈 Trend & Strength Calculation → Uses ADX, RSI, and moving averages to classify trend quality.
⚡ ATR% Volatility → Normalized ATR as % of price, giving a volatility snapshot.
🧩 Strategy Suggestions → Displays best-suited F&O strategies (Credit Spread, Strangle, Iron Condor, Iron Butterfly) depending on bias.
🔔 Real-Time Updates → Table updates dynamically with live data from the chart.
📐 How It Works
Trend Detection
EMA crossovers and RSI bias identify bullish vs. bearish conditions.
Weak trend + low ADX = Sideways bias.
Strength Measurement
ADX is used to classify weak, moderate, and strong trends.
RSI confirms direction and momentum.
ATR % Volatility
Daily ATR normalized by price helps identify whether credit spreads or wider strangles are suitable.
Dashboard Rendering
A top-right aligned table shows the filtered rows.
Redraw occurs when bias is changed, keeping the table compact.
⚙️ User Inputs
Bias Filter → Select All, Bullish, Bearish, Sideways.
Timeframe → Default is current chart timeframe.
Volume Confirmation → Optional filter to check volume spikes.
Table Position → Fixed to top-right for visibility.
📊 Example Output
Bias Trend Strength ATR% Best Strategy
Bullish Uptrend Strong 1.2% Bull Put Spread
Bearish Downtrend Moderate 1.4% Bear Call Spread
Sideways Neutral Weak 0.6% Iron Condor
✅ Best Use Cases
Intraday & Swing traders who want quick bias confirmation.
Options traders selecting credit strategies based on volatility and bias.
Portfolio managers tracking broader market bias on indices.
⚠️ Disclaimer
This script is provided for educational purposes only.
It does not constitute financial advice and should not be used as the sole basis for investment decisions.
Trading involves risk, and you are solely responsible for your own trades.
Overview
This script provides a Bias Dashboard that helps traders quickly evaluate whether the current market condition is Bullish, Bearish, Sideways, or All.
The dashboard is displayed in a styled table with configurable filters, showing market trend, strength, and volatility in a clean format.
It’s designed for NIFTY, BANKNIFTY, and other liquid instruments, and can be applied on any timeframe, while calculations are based on Daily ATR for consistency.
✨ Features
🔎 Bias Selection Filter → Choose to view only Bullish, Bearish, Sideways, or All conditions.
📊 Dynamic Table → Automatically redraws whenever bias is changed, avoiding empty rows or holes.
🎨 Readable Table Layout → Compact fonts, bold headers, and color-coded cells for clarity.
📈 Trend & Strength Calculation → Uses ADX, RSI, and moving averages to classify trend quality.
⚡ ATR% Volatility → Normalized ATR as % of price, giving a volatility snapshot.
🧩 Strategy Suggestions → Displays best-suited F&O strategies (Credit Spread, Strangle, Iron Condor, Iron Butterfly) depending on bias.
🔔 Real-Time Updates → Table updates dynamically with live data from the chart.
📐 How It Works
Trend Detection
EMA crossovers and RSI bias identify bullish vs. bearish conditions.
Weak trend + low ADX = Sideways bias.
Strength Measurement
ADX is used to classify weak, moderate, and strong trends.
RSI confirms direction and momentum.
ATR % Volatility
Daily ATR normalized by price helps identify whether credit spreads or wider strangles are suitable.
Dashboard Rendering
A top-right aligned table shows the filtered rows.
Redraw occurs when bias is changed, keeping the table compact.
⚙️ User Inputs
Bias Filter → Select All, Bullish, Bearish, Sideways.
Timeframe → Default is current chart timeframe.
Volume Confirmation → Optional filter to check volume spikes.
Table Position → Fixed to top-right for visibility.
📊 Example Output
Bias Trend Strength ATR% Best Strategy
Bullish Uptrend Strong 1.2% Bull Put Spread
Bearish Downtrend Moderate 1.4% Bear Call Spread
Sideways Neutral Weak 0.6% Iron Condor
✅ Best Use Cases
Intraday & Swing traders who want quick bias confirmation.
Options traders selecting credit strategies based on volatility and bias.
Portfolio managers tracking broader market bias on indices.
⚠️ Disclaimer
This script is provided for educational purposes only.
It does not constitute financial advice and should not be used as the sole basis for investment decisions.
Trading involves risk, and you are solely responsible for your own trades.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.