ICT Daily Bias based on weekly by RKGiven that Weekly bias is determined ,This indicator helps you to identify the Daily Bias.
So best of this indicator to determine Daily bias is to first Implement it on weekly and then Daily
If weekly and Daily both are bullish then look for LONG in lower timeframe.
If weekly and Daily both are bearish then look for SHORTS in lower timeframe.
Indikatoren und Strategien
EMA BY C4RLOZ📈 Example:
A 150 EMA is the average price of the last 150 candles, but the most recent prices influence it more.
Traders often use EMAs to identify trend direction and crossovers for buy/sell signals.
👉 In practice:
If price is above the EMA → uptrend bias.
If price is below the EMA → downtrend bias.
Nikkei PER Curve (EPS Text Area Input)
This indicator visualizes the PER levels of the Nikkei 225 based on the dates and EPS data entered in the text area.
By plotting multiple PER multiplier lines, it helps users to understand the following:
Potential support and resistance levels based on PER multipliers
Comparison between the current stock price and theoretical valuation levels
Observation of PER trends and detection of deviations from standard valuation levels
Trading Decisions:
When the stock price approaches a specific PER line, it can serve as a reference for support or resistance.
During intraday chart analysis, PER lines are drawn based on the most recent EPS, making them useful as reference levels even during market hours.
Valuation Analysis:
On daily charts, it helps to assess whether the Nikkei is overvalued or undervalued compared to historical levels, or to identify changes in valuation levels.
Risk Management:
The theoretical price lines based on PER can be used as reference points for stop-loss or profit-taking decisions.
Simple Data Input:
EPS data is entered in a text area, one line per date, in comma-separated format:
YYYY/MM/DD,EPS
YYYY/MM/DD,EPS
Multiple entries can be input by using line breaks between each date.
Note: Dates for which no candlestick exists in the chart will not be displayed.
This allows easy updating of PER lines without complex spreadsheets or external tools.
EPS Data Input: Manual input of date and EPS via the text area; supports multiple data entries.
PER Multiplier Lines:
For evenly spaced lines, simply set the central multiplier and the interval between lines. The indicator automatically generates 11 lines (center ±5 lines).
For non-even spacing or individual multiplier settings, you can choose to adjust each line.
Close PER Labels: Displays the PER of the close price relative to the current EPS.
Timeframe Limitation: Use on daily charts (1D) or lower. PER lines cannot be displayed on higher timeframes.
Label Customization: Allows adjustment of text size, color, and position.
EPS Parsing: The indicator reads the input text area line by line, splitting each line by a comma to obtain the date and EPS value.
Data Storage: The dates and EPS values are stored in arrays. These arrays allow the script to efficiently look up the latest EPS for any given date.
PER Calculation: For each chart bar, the indicator calculates the theoretical price for multiple PER multipliers using the formula:
Theoretical Price = EPS × PER multiplier
Line Plotting: PER lines are drawn at these calculated price levels. Labels are optionally displayed for the close price PER.
Date Matching: If a date from the EPS data does not exist as a candlestick on the chart, the corresponding PER line is not plotted.
PER lines are theoretical values: They serve as psychological reference points and do not always act as true support or resistance.
Market Conditions: Lines may be broken depending on market circumstances.
Accuracy of EPS Data: Be careful with EPS input errors, as incorrect data will result in incorrect PER curves.
Input Format: Dates and EPS must be correctly comma-separated and entered one per line. Dates with no corresponding candlestick on the chart will not be plotted. Incorrect formatting may prevent lines from displaying.
Reliability: No method guarantees success in trading; use in combination with backtesting and other technical analysis tools.
このインジケータは、入力した日付とEPSデータを基に日経225のPER水準を視覚化するものです
複数のPER倍率ラインを描画することで、以下を把握するのに役立ちます:
PER倍率に基づく潜在的なサポート・レジスタンス水準や目安
現在の株価と理論上の評価水準との比較
過去から現在までのPER推移の観察
トレード判断:
株価が特定の倍率のPERラインに近づいたとき、抵抗や支持の目安としての活用
日中足表示時は、前日(最新日)のEPSに基づいたPERラインを表示するように作成しているので、場中でも参考目安として使用可能
評価分析:
過去の推移と比較して日経が割高か割安か、またはPER評価水準が変化したかの確認
リスク管理:
PERに基づく理論価格ラインを、損切りや利確の目安としての利用
簡単なデータ入力:
EPSデータはテキストエリアに手動入力。1行につき1日付・EPSをカンマ区切りで記入します
例
2025/09/19,2492.85
2025/09/18,2497.43
行を改行することで複数データ入力が可能
注意: チャート上にローソク足が存在しない日付のデータは表示されません
表計算や外部ツールを使わずに倍率を掛けたPERラインの作成・更新が簡単に行える
PER倍率ライン:
等間隔ラインの場合、中心倍率と各ラインの間隔を設定するだけで、自動的に中心値±5本、計11本のラインを作成
等間隔以外や個別設定したい場合は で調整可能
終値PERラベル: 現在のEPSに対する終値PERを表示
時間足制限: 日足(1日足)以下で使用すること。高い時間足ではPERラインは表示できません
ラベルカスタマイズ: 文字サイズ、色、位置を調整可能
EPSデータの読み取り: 改行を検知し1日分のデータとして識別し、カンマで分割して日付とEPS値を取得
配列への格納: 日付とEPSを配列に格納し、各バーに対して最新のEPSを参照できるようにする
PER計算: 各バーに対して、以下の式で複数のPER倍率の理論価格を計算:
理論価格 = EPS × PER倍率
日付照合: EPSデータの日付がチャート上にローソク足として存在したら格納した配列からデータを取得。ローソク足が存在しない場合、そのPERラインは表示されない
ライン描画: 計算した価格にPERラインを描画。必要に応じて終値PERラベルも表示。
PERラインは理論値であり心理的目安として機能することがありますが、必ずしも機能する訳ではない
その為、過去の検証や他のテクニカル指標と併用推奨
市況によってはラインを無視するように突破する可能性ことがある
EPSデータの入力ミスに注意すること。誤入力するとPER曲線が誤表示される
日付とEPSの入力は1行ずつ、正しい位置でカンマ区切りをいれること
ローソク足が存在しない日付のデータは正しく表示されないことがあるので注意
誤った入力形式ではラインが表示されない場合がある
EMA + VWMA + ATR Smoothed BuySell (merged) - TOM ZENG 202509Logic and Functionality Analysis
The script is divided into three main logical sections: EMA trend analysis, ATR-based signal generation, and VWMA smoothing.
1. EMA Trend Analysis (EMA Fan) 📈
This section uses a series of Exponential Moving Averages (EMAs) to identify trends. You've wisely chosen a set of EMA lengths (8, 21, 50, 200) that are commonly used in trading. These numbers are often derived from the Fibonacci sequence and are believed to offer a good balance of sensitivity to recent price action while still reflecting the underlying trend.
Purpose: The EMAs serve as dynamic support and resistance levels. When the price is above the EMAs and they are fanned out in ascending order (short-term EMA above long-term EMA), it indicates a strong uptrend. Conversely, a descending order indicates a downtrend.
Customization: The code allows you to easily adjust the EMA lengths in the inputs section, giving you control over the sensitivity of your trend analysis.
2. ATR Trailing Stop (Buy/Sell Signals) 🎯
This is the core of the indicator's signal-generating capability. It uses the Average True Range (ATR) to create a dynamic trailing stop line. The ATR measures volatility, so the stop line adjusts automatically to wider price swings.
Logic: The script uses a var float variable xATRTrailingStop to store the value of the stop line from the previous bar. The code then determines the current bar's stop line by comparing the current price to the previous bar's stop line and using math.max and math.min to smoothly move the line along with the trend.
Signal Generation: The pos variable tracks whether the trend is long (pos = 1) or short (pos = -1). The isLong and isShort variables act as a state machine, ensuring that the "Buy" and "Sell" signals are only triggered once at the exact point of a crossover, rather than on every subsequent bar.
Visuals & Alerts: The plotshape functions create labels directly on the chart, and the barcolor function changes the color of the candlesticks, providing a clear visual representation of the current trend state. The alertcondition functions are crucial for automation, allowing you to set up notifications for when a signal occurs.
3. VWMA and Combined Average 🌊
This section introduces a Volume-Weighted Moving Average (VWMA), which gives more weight to periods of high trading volume. This makes the VWMA more responsive to significant moves that are backed by strong institutional buying or selling.
Combined Logic: The avg1 variable creates a new line by averaging the VWMA and the xATRTrailingStop line. This is an innovative approach to blend two different types of analysis—volume-based trend and volatility-based risk management—into a single, smoothed line. It can act as an additional filter or a unique trading signal on its own.
Summary
Your code is a very effective and clean example of a multi-faceted indicator. It correctly implements a robust ATR trailing stop for signals while also providing valuable trend context through EMAs and volume analysis through VWMA. The combination of these elements makes it a powerful tool for a trader looking for a comprehensive view of the market.
Futures Playbook: VWAP + OR + Cross-Asset TellsFutures Playbook: VWAP + OR + Cross-Asset Tells (with Trade Messages + Coach Panel)
This all-in-one futures trading toolkit combines Opening Range (OR) levels, VWAP, and cross-asset signals to help traders quickly read intraday structure, manage execution, and filter noise.
Core Features
• Opening Range (OR):
• Customizable OR window with High/Low and Midpoint.
• Automatic shading of the OR zone.
• VWAP & Bands:
• Built-in or session-anchored VWAP.
• Optional standard deviation bands for context.
• Cross-Asset Tells:
• Live reads on US 10Y yield, DXY, Crude, and Gold.
• Regime detection: rates risk, USD strength, energy softness, and real-rate easing.
• Confirmations:
• Volume vs. moving average filter.
• Cumulative delta with smoothing.
• ATR-based chop filter to avoid low-quality trends.
Trade Messages + Coach Panel
• Trade Messages (labels): Automatic on-chart prompts for OR completion, VWAP reclaim/loss, long/short setups, and EU close flows.
• Coach Panel (table): Real-time dashboard with regime context, directional bias, execution notes, risk reminders, and key levels (ORH, ORL, VWAP).
Alerts
• OR breakout (long/short with confirmations).
• VWAP reclaim or loss.
• 10Y yield crossing risk threshold.
Use Case
Designed for futures traders and scalpers who rely on VWAP + OR dynamics and need cross-asset confirmation before committing to trades. Great for structuring entries, managing risk, and filtering market noise throughout the session.
Dynamic Gamma Inspired IndicatorDynamic Gamma Inspired Indicator
This indicator identifies potential market regime shifts between low-volatility (mean-reverting) and high-volatility (trending) environments by using a dynamic, volatility-adaptive framework inspired by options market gamma exposure concepts.
Core Concepts
This indicator uses a volatility-based model that mimics how market maker hedging can influence price stability and volatility. While it's not possible to calculate true Gamma Exposure (GEX) in Pine Script without external options data, this script uses the Average True Range (ATR) as a proxy to create dynamic zones that adapt to current market conditions.
Positive Gamma Environment (Green Background) When price is contained within the upper and lower walls, it suggests a period of stability where market makers' hedging may suppress volatility. In this "mean-reversion" regime, prices tend to revert to the central pivot.
Negative Gamma Environment (Orange Background) When price breaks outside the walls, it signals a potential increase in volatility, where hedging can amplify price moves. This "trend-amplification" regime suggests the potential for strong breakout or trend-following moves.
How It Works
The indicator is built on three key components that dynamically adjust to market volatility:
Dynamic Pivot (Blue Line) An Exponential Moving Average (EMA) acts as the central "zero gamma" pivot point.
Dynamic Walls (Red & Green Lines) These upper and lower bands are calculated by adding or subtracting a multiple of the Average True Range (ATR) from the central EMA pivot. This is similar to how Keltner Channels use ATR to create volatility-based envelopes. The walls expand during high volatility and contract during low volatility.
How to Use This Indicator
The indicator automatically plots signals based on the current market regime:
Mean-Reversion Signals (Inside the Walls)
Long Reversion: Appears when the price crosses up through the central pivot, suggesting a potential move toward the upper wall.
Short Reversion: Appears when the price crosses down through the central pivot, suggesting a potential move toward the lower wall.
Breakout Signals (Outside the Walls)
Long Breakout: Appears when the price breaks and closes above the upper wall, signaling the start of a potential uptrend.
Short Breakout: Appears when the price breaks and closes below the lower wall, signaling the start of a potential downtrend.
Customization
You can tailor the indicator to different assets and timeframes by adjusting the following inputs:
Central Pivot EMA Length: Determines the period for the central moving average.
ATR Length for Walls: Sets the lookback period for the Average True Range calculation.
ATR Multiplier for Walls: Adjusts the width of the channel. A larger multiplier creates wider walls, filtering out more noise but providing fewer signals.
Disclaimer: This indicator is a tool for analysis and should not be used as a standalone trading signal. Always use proper risk management and combine it with other analysis methods. Past performance is not indicative of future results.
Monday's Range Superpowerkyu🔔 Settings
You can customize the colors and toggle ON/OFF in the indicator settings.
Works on daily, hourly, and minute charts.
Easily visualize Monday’s high, low, and mid-line range.
📌 1. Support & Resistance with Monday’s Range
Monday High: Acts as the first resistance of the week.
◽ Example: If price breaks above Monday’s high after Tuesday, it signals potential bullish continuation → long setup.
Monday Low: Acts as the first support of the week.
◽ Example: If price breaks below Monday’s low, it signals bearish continuation → short setup.
📌 2. Mid-Line Trend Confirmation
Monday Mid-Line = average price of Monday.
Price above mid-line → bullish bias.
Price below mid-line → bearish bias.
Use mid-line breaks as entry confirmation for long/short positions.
📌 3. Breakout Strategy
Break of Monday’s High = bullish breakout → long entry.
Break of Monday’s Low = bearish breakout → short entry.
Place stop-loss inside Monday’s range for a conservative approach.
📌 4. False Breakout Strategy
If price breaks Monday’s high/low but then falls back inside Monday’s range, it is a False Breakout.
Strategy: Trade in the opposite direction.
◽ False Breakout at High → short.
◽ False Breakout at Low → long.
Stop-loss at the wick (extreme point) of the failed breakout.
📌 5. Range-Based Scalping
Use Monday’s high and low as a trading range.
Sell near Monday’s High, buy near Monday’s Low, repeat until breakout occurs.
📌 6. Weekly Volatility Forecast
Narrow Monday range → higher chance of strong trend later in the week.
Wide Monday range → lower volatility expected during the week.
📌 7. Pattern & Trend Analysis within Monday Range
Look for candlestick patterns around Monday’s High/Low/Mid-Line.
◽ Example: Double Top near Monday’s High = short setup.
◽ Repeated bounce at Mid-Line = strong long opportunity.
✅ Summary
The Monday’s Range (Superpowerkyu) Indicator helps traders:
Identify weekly support & resistance
Confirm trend direction with Mid-Line
Trade breakouts & false breakouts
Apply range scalping strategies
Forecast weekly volatility
⚡ Especially, the False Breakout strategy is powerful as it captures failed moves and sudden sentiment reversals.
Breakout Probability BBto identify breakout using BB RSI and Volume
Will help traders to identify the breakout
Candle de Reversão//@version=5
indicator("Candle de Reversão", overlay=true)
// Condição de reversão
bullish_reversal = close > open and close < open and close > high
bearish_reversal = close < open and close > open and close < low
// Pintando o candle
barcolor(bullish_reversal ? color.green : bearish_reversal ? color.red : na)
Squeeze Momentum Indicator [Comunidad Rafael Cepeda]Este indicador fue adaptado para el uso de la comunidad de Rafael cepeda Trader
Squeeze Momentum Indicator [Carlos Mauricio Vizcarra]El squezee Momentum para la comunidad de Rafael Cepeda trader
EMA ± ATR Channel (True Range)EMA ± ATR Channel (True Range)
Tagline: Adaptive EMA channel with ATR-based volatility bands — perfect for swing trading, intraday setups, and managing risk on high-volatility stocks.
This script plots a dynamic price channel around a configurable EMA using the Average True Range (ATR, Wilder’s True Range) as a volatility buffer.
Upper band = EMA + (ATR × multiplier)
Lower band = EMA – (ATR × multiplier)
📊 Features:
Adjustable EMA length, ATR length, and ATR multiplier
Visual channel fill between upper and lower bands
Optional on-chart help panel with practical combos
⚡ Practical Combos for Volatile Stocks:
EMA 20 + ATR 14 × 2.0 → most common swing trading setup
EMA 10 + ATR 14 × 1.5 → very responsive, good for intraday/high-beta names
EMA 20 + ATR 20 × 2.5 → smoother, wider channel, avoids whipsaws in chaotic stocks
✅ Use cases:
Identify dynamic support/resistance zones
Volatility-based stop-loss & take-profit placement
Spot overextensions from the trend midline
🔖 Tags:
ema, atr, channel, volatility, trend, support resistance, stop loss, swing trading, intraday, risk management, indicator
Stochastic Divergence MarkerThis script marks all the times the price movement moves contradictory to the Stochastic. This usually shows a change in momentum and thus a possible reversal.
Long Multi-TimeframeTo be used on a 30 minute time frame with Market Bias changing from red to light red or green, 4 or more consecutive red dots on the 15 minute and 30 minute frames inside the market bias, and a red to green Bx-Trender, backed up with good flow (real-time plus green net cumulative flow).
主力资金进出监控器Main Capital Flow Monitor-MEWINSIGHTMain Capital Flow Monitor Indicator
Indicator Description
This indicator utilizes a multi-cycle composite weighting algorithm to accurately capture the movement of main capital in and out of key price zones. The core logic is built upon three dimensions:
Multi-Cycle Pressure/Support System
Using triple timeframes (500-day/250-day/90-day) to calculate:
Long-term resistance lines (VAR1-3): Monitoring historical high resistance zones
Long-term support lines (VAR4-6): Identifying historical low support zones
EMA21 smoothing is applied to eliminate short-term fluctuations
Dynamic Capital Activity Engine
Proprietary VARD volatility algorithm:
VARD = EMA
Automatically amplifies volatility sensitivity by 10x when price approaches the safety margin (VARA×1.35), precisely capturing abnormal main capital movements
Capital Inflow Trigger Mechanism
Capital entry signals require simultaneous fulfillment of:
Price touching 30-day low zone (VARE)
Capital activity breaking recent peaks (VARF)
Weighted capital flow verified through triple EMA:
Capital Entry = EMA / 618
Visualization:
Green histogram: Continuous main capital inflow
Red histogram: Abnormal daily capital movement intensity
Column height intuitively displays capital strength
Application Scenarios:
Consecutive green columns → Main capital accumulation at bottom
Sudden expansion of red columns → Abnormal main capital rush
Continuous fluctuations near zero axis → Main capital washing phase
Core Value:
Provides 1-3 trading days early warning of main capital movements, suitable for:
Medium/long-term investors identifying main capital accumulation zones
Short-term traders capturing abnormal main capital breakouts
Risk control avoiding main capital distribution phases
Parameter Notes: Default parameters are optimized through historical A-share market backtesting. Users can adjust cycle parameters according to different market characteristics (suggest extending cycles by 20% for European/American markets).
Formula Features:
Multi-timeframe weighted synthesis technology
Dynamic sensitivity adjustment mechanism
Main capital activity intensity quantification
Early warning function for capital movements
Suitable Markets:
Stocks, futures, cryptocurrencies and other financial markets with obvious main capital characteristics.
指标名称:主力资金进出监控器
指标描述:
本指标通过多周期复合加权算法,精准捕捉主力资金在关键价格区域的进出动向。核心逻辑基于三大维度构建:
多周期压力/支撑体系
通过500日/250日/90日三重时间框架,分别计算:
长期压力线(VAR1-3):监控历史高位阻力区
长期支撑线(VAR4-6):识别历史低位承接区
采用EMA21平滑处理,消除短期波动干扰
动态资金活跃度引擎
独创VARD波动率算法:
当价格接近安全边际(VARA×1.35)时自动放大波动敏感度10倍,精准捕捉主力异动
资金进场触发机制
资金入场信号需同时满足:
价格触及30日最低区域(VARE)
资金活跃度突破近期峰值(VARF)
通过三重EMA验证的加权资金流:
资金入场 = EMA / 618
可视化呈现:
绿色柱状图:主力资金持续流入
红色柱状图:当日资金异动量级
柱体高度直观显示资金强度
使用场景:
绿色柱体连续出现 → 主力底部吸筹
红色柱体突然放大 → 主力异动抢筹
零轴附近持续波动 → 主力洗盘阶段
核心价值:
提前1-3个交易日预警主力资金动向,适用于:
中长线投资者识别主力建仓区间
短线交易者捕捉主力异动突破
风险控制规避主力出货阶段
参数说明:默认参数经A股历史数据回测优化,用户可根据不同市场特性调整周期参数(建议欧美市场延长周期20%)
Prima de Riesgo High Yield + Eventos HistóricosPrima de risgo de los bonos basura. Muetra los periodos de recesión económica en las bolsas.
Super SignalWhen all lines are below the 20 line its a super signal to buy. When all trends are above the 80 line it is a super signal to sell.
Trinity Multi-Timeframe MA TrendOriginal script can be found here: {Multi-Timeframe Trend Analysis } www.tradingview.com
1. all credit the original author www.tradingview.com
2. why change this script:
- added full transparency function to each EMA
- changed to up and down arrows
- change the dashboard to be able to resize and reposition
How to Use This Indicator
This indicator, "Trinity Multi-Timeframe MA Trend," is designed for TradingView and helps visualize Exponential Moving Average (EMA) trends across multiple timeframes. It plots EMAs on your chart, fills areas between them with directional colors (up or down), shows crossover/crossunder labels, and displays a dashboard table summarizing EMA directions (bullish ↑ or bearish ↓) for selected timeframes. It's useful for multi-timeframe analysis in trading strategies, like confirming trends before entries.
Configure Settings (via the Gear Icon on the Indicator Title):
Timeframes Group: Set up to 5 custom timeframes (e.g., "5" for 5 minutes, "60" for 1 hour). These determine the multi-timeframe analysis in the dashboard. Defaults: 5m, 15m, 1h, 4h, 5h.
EMA Group: Adjust the lengths of the 5 EMAs (defaults: 5, 10, 20, 50, 200). These are the moving averages plotted on the chart.
Colors (Inline "c"): Choose uptrend color (default: lime/green) and downtrend color (default: purple). These apply to plots, fills, labels, and dashboard cells.
Transparencies Group: Set transparency levels (0-100) for each EMA's plot and fill (0 = opaque, 100 = fully transparent). Defaults decrease from EMA1 (80) to EMA5 (0) for a gradient effect.
Dashboard Settings Group (newly added):
Dashboard Position: Select where the table appears (Top Right, Top Left, Bottom Right, Bottom Left).
Dashboard Size: Choose text size (Tiny, Small, Normal, Large, Huge) to scale the table for better visibility on crowded charts.
Understanding the Visuals:
EMA Plots: Five colored lines on the chart (EMA1 shortest, EMA5 longest). Color changes based on direction: uptrend (your selected up color) if rising, downtrend (down color) if falling.
Fills Between EMAs: Shaded areas between consecutive EMAs, colored and transparent based on the faster EMA's direction and your transparency settings.
Crossover Labels: Arrow labels (↑ for crossover/uptrend start, ↓ for crossunder/downtrend start) appear on the chart at EMA direction changes, with tooltips like "EMA1".
Dashboard Table (top-right by default):
Rows: EMA1 to EMA5 (with lengths shown).
Columns: Selected timeframes (converted to readable format, e.g., "5m", "1h").
Cells: ↑ (bullish/up) or ↓ (bearish/down) arrows, colored green/lime or purple based on trend, with fading transparency for visual hierarchy.
Use this to quickly check alignment across timeframes (e.g., all ↑ in multiple TFs might signal a strong uptrend).
Trading Tips:
Trend Confirmation: Look for alignment where most EMAs in higher timeframes are ↑ (bullish) or ↓ (bearish).
Entries/Exits: Use crossovers on the chart EMAs as signals, confirmed by the dashboard (e.g., enter long if lower TF EMA crosses up and higher TFs are aligned).
Customization: On lower timeframe charts, set dashboard timeframes to higher ones for top-down analysis. Adjust transparencies to avoid chart clutter.
Limitations: This is a trend-following tool; combine with volume, support/resistance, or other indicators. Backtest on historical data before live use.
Performance: Works best on trending markets; may whipsaw in sideways conditions.
Supertrend DashboardOverview
This dashboard is a multi-timeframe technical indicator dashboard based on Supertrend. It combines:
Trend detection via Supertrend
Momentum via RSI and OBV (volume)
Volatility via a basic candle-based metric (bs)
Trend strength via ADX
Multi-timeframe analysis to see whether the trend is bullish across different timeframes
It then displays this info in a table on the chart with colors for quick visual interpretation.
2️⃣ Inputs
Dashboard settings:
enableDashboard: Toggle the dashboard on/off
locationDashboard: Where the table appears (Top right, Bottom left, etc.)
sizeDashboard: Text size in the table
strategyName: Custom name for the strategy
Indicator settings:
factor (Supertrend factor): Controls how far the Supertrend lines are from price
atrLength: ATR period for Supertrend calculation
rsiLength: Period for RSI calculation
Visual settings:
colorBackground, colorFrame, colorBorder: Control dashboard style
3️⃣ Core Calculations
a) Supertrend
Supertrend is a trend-following indicator that generates bullish or bearish signals.
Logic:
Compute ATR (atr = ta.atr(atrLength))
Compute preliminary bands:
upperBand = src + factor * atr
lowerBand = src - factor * atr
Smooth bands to avoid false flips:
lowerBand := lowerBand > prevLower or close < prevLower ? lowerBand : prevLower
upperBand := upperBand < prevUpper or close > prevUpper ? upperBand : prevUpper
Determine direction (bullish / bearish):
dir = 1 → bullish
dir = -1 → bearish
Supertrend line = lowerBand if bullish, upperBand if bearish
Output:
st → line to plot
bull → boolean (true = bullish)
b) Buy / Sell Trigger
Logic:
bull = ta.crossover(close, supertrend) → close crosses above Supertrend → buy signal
bear = ta.crossunder(close, supertrend) → close crosses below Supertrend → sell signal
trigger → checks which signal was most recent:
trigger = ta.barssince(bull) < ta.barssince(bear) ? 1 : 0
1 → Buy
0 → Sell
c) RSI (Momentum)
rsi = ta.rsi(close, rsiLength)
Logic:
RSI > 50 → bullish
RSI < 50 → bearish
d) OBV / Volume Trend (vosc)
OBV tracks whether volume is pushing price up or down.
Manual calculation (safe for all Pine versions):
obv = ta.cum( math.sign( nz(ta.change(close), 0) ) * volume )
vosc = obv - ta.ema(obv, 20)
Logic:
vosc > 0 → bullish
vosc < 0 → bearish
e) Volatility (bs)
Measures how “volatile” the current candle is:
bs = ta.ema(math.abs((open - close) / math.max(high - low, syminfo.mintick) * 100), 3)
Higher % → stronger candle moves
Displayed on dashboard as a number
f) ADX (Trend Strength)
= ta.dmi(14, 14)
Logic:
adx > 20 → Trending
adx < 20 → Ranging
g) Multi-Timeframe Supertrend
Timeframes: 1m, 3m, 5m, 10m, 15m, 30m, 1H, 2H, 4H, 12H, 1D
Logic:
for tf in timeframes
= request.security(syminfo.tickerid, tf, f_supertrend(ohlc4, factor, atrLength))
array.push(tf_bulls, bull_tf ? 1.0 : 0.0)
bull_tf ? 1.0 : 0.0 → converts boolean to number
Then we calculate user rating:
userRating = (sum of bullish timeframes / total timeframes) * 10
0 → Strong Sell, 10 → Strong Buy
4️⃣ Dashboard Table Layout
Row Column 0 (Label) Column 1 (Value)
0 Strategy strategyName
1 Technical Rating textFromRating(userRating) (color-coded)
2 Current Signal Buy / Sell (based on last Supertrend crossover)
3 Current Trend Bullish / Bearish (based on Supertrend)
4 Trend Strength bs %
5 Volume vosc → Bullish/Bearish
6 Volatility adx → Trending/Ranging
7 Momentum RSI → Bullish/Bearish
8 Timeframe Trends 📶 Merged cell
9-19 1m → Daily Bullish/Bearish for each timeframe (green/red)
5️⃣ Color Logic
Green shades → bullish / trending / buy
Red / orange → bearish / weak / sell
Yellow → neutral / ranging
Example:
dashboard_cell_bg(1, 1, colorFromRating(userRating))
dashboard_cell_bg(1, 2, trigger ? color.green : color.red)
dashboard_cell_bg(1, 3, superBull ? color.green : color.red)
Makes the dashboard visually intuitive
6️⃣ Key Logic Flow
Calculate Supertrend on current timeframe
Detect buy/sell triggers based on crossover
Calculate RSI, OBV, Volatility, ADX
Request Supertrend on multiple timeframes → convert to 1/0
Compute user rating (percentage of bullish timeframes)
Populate dashboard table with colors and values
✅ The result: You get a compact, fast, multi-timeframe trend dashboard that shows:
Current signal (Buy/Sell)
Current trend (Bullish/Bearish)
Momentum, volatility, and volume cues
Trend across multiple timeframes
Overall technical rating
It’s essentially a full trend-strength scanner directly on your chart.
RSI + Stoch + Bollinger — Tableau compact (coin sup. droit)RSI + Stoch + Bollinger — Tableau compact (coin sup. droit)