OPEN-SOURCE SCRIPT

Trader Assistant 2

62
Title
Trader Assistant 2 — Multi‑Timeframe ATR Volatility and Intrabar Range Monitor

Summary
Trader Assistant 2 is a compact, multi‑timeframe dashboard that helps you instantly gauge market conditions across 1m, 5m, 15m, 30m, 1h, and 4h. It blends two ATR‑based views:
- Volatility regime: current ATR vs its baseline (ATR moving average).
- Intrabar range usage: how much of ATR the current bar has already traveled from its open.

Each timeframe is color‑coded by the worst of the two signals, so you see risk and heat at a glance. An optional lead cell summarizes active alerts and lists the timeframes that triggered them.

What you see on the chart
- Single‑row table positioned at the bottom‑right of the chart.
- One cell per enabled timeframe:
- Green (soft): normal conditions
- Orange: elevated risk/volatility
- Red: high/critical risk/volatility
- Text turns white when a warning/critical condition is present
- Optional “alert” cell on the left:
- Yellow when any warning is present
- Red when any critical condition is present
- Message indicates which timeframes fired due to Volatility and/or ATR usage (e.g., “Volatility (5m, 15m) | ATR (1m)”)

How it works (high level)
- Volatility regime: compares current ATR to a smoothed ATR baseline. If the ratio exceeds your Elevated or High thresholds, the timeframe escalates to orange or red.
- Intrabar ATR usage: measures absolute distance from the bar’s open. If the move exceeds your Yellow or Red percentage of ATR, the timeframe escalates accordingly.
- Combined color: the cell shows the highest severity between the two checks.

Mermaid (logic overview)
flowchart LR
A[Current ATR per TF] --> B[ATR Baseline (MA)]
B --> C[Volatility Ratio]
C --> D{Vol Severity<br/>(Normal/Elevated/High)}

E[Abs move from Open] --> F[Percent of ATR used]
F --> G{ATR Usage Severity<br/>(Normal/Yellow/Red)}

D --> H[Max Severity]
G --> H
H --> I[Cell Color per TF]
H --> J[Optional Alert Cell + Message]

Inputs and defaults
- Timeframe toggles: 1m, 5m, 15m, 30m, 1h, 4h (enable/disable any mix)
- ATR periods per timeframe (defaults):
- 1m: 60
- 5m: 24
- 15m: 16
- 30m: 14
- 1h: 12
- 4h: 12
- ATR baseline smoothing:
- Moving average period: 20 (used to compare current ATR vs average)
- Volatility thresholds (percent of baseline):
- Elevated: 80%
- High: 120%
- Intrabar ATR usage thresholds:
- Yellow: 50% of ATR
- Red: 75% of ATR

Typical use cases
- Session open scan: Quickly see where heat is building and which timeframes require caution.
- News and high‑impact events: Identify heightened conditions before entering or managing positions.
- Trade filtering: Avoid entries during red conditions or tighten risk; favor normal/green regimes for cleaner structure.
- Risk sizing: Reduce size or switch to passive management when multiple timeframes show elevated/high conditions.

Tips and best practices
- Threshold tuning: Different markets/venues need different percentages. Start with defaults, then adjust to your symbol’s volatility.
- Baseline smoothing: Increase the MA period to reduce noise in the volatility regime.
- Multi‑TF alignment: When higher timeframes turn orange/red, treat lower‑TF signals with extra caution.
- Combine with structure and volume tools for a complete decision framework.

Notes and limitations
- Visual monitor: This is an on‑chart dashboard/visual alert. It does not emit TradingView alert() notifications.
- Multi‑timeframe behavior: Values update according to each source timeframe’s bar closes.
- Strategy‑agnostic: This does not generate buy/sell signals. Use it for context, regime awareness, and risk control.
- Educational only: Not financial advice. Always backtest and validate on your own instruments.

Color legend
- Green: Normal conditions
- Orange: Elevated volatility and/or significant intrabar range usage
- Red: High/critical conditions (exercise caution)
- Yellow alert cell: Warning present in at least one timeframe
- Red alert cell: Critical condition present in at least one timeframe

Quick start
1) Add the indicator to your chart.
2) Enable the timeframes relevant to your trading horizon.
3) Keep defaults or tune ATR periods and thresholds to your symbol.
4) Read the row from left to right: alert cell (if present), then timeframes. Prioritize management when you see orange/red, and be selective with entries during heat.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.