OPEN-SOURCE SCRIPT

AsturRiskPanel

131
Indicator Summary
ATR Engine

Length & Smoothing: Choose how many bars to use (default 14) and the smoothing method (RMA/SMA/EMA/WMA).

Median ATR: Computes a rolling median of ATR over a user-defined look-back (default 14) to derive a “scalp” target.

Scalp Target

Automatically set at ½ × median ATR, snapped to the nearest tick.

Optional rounding to whole points for simplicity.

Stop Calculation

ATR Multiplier: Scales current ATR by a user input (default 1.5) to produce your stop distance in points (and ticks when appropriate).

Distortion Handling: Switches between point-only and point + tick displays based on contract specifications.

Risk & Sizing

Risk % of account per trade (default 2 %).

Calculates dollar risk per contract and optimal contract count.

Displays all metrics (scalp, stop, risk/contract, max contracts, max risk, account size) in a customizable on-chart table.

ATR-Based Stop Placement Guidelines
  • Trade Context ATR Multiplier Notes
  • Tight Range Entry 1.0 × ATR High-conviction, precise entries. Expect more shake-outs.
  • Standard Trend Entry 1.5 × ATR Balanced for H2/L2, MTR, DT/DB entries.
  • Breakouts/Microchannels 2.0 × ATR Wide stops through chop—Brooks-style breathing room.


How to Use
Select ATR Settings

Pick an ATR length (e.g. 14) and smoothing (RMA for stability).

Adjust the median length if you want a faster/slower scalp line.

Align Multiplier with Your Setup

For tight-range entries, set ATR Multiplier ≈ 1.0.

For standard trend trades, leave at 1.5.

For breakout/pullback setups, increase to 2.0 or more.

Customize Risk Parameters

Enter your account size and desired risk % per trade (e.g. 2 %).

The table auto-calculates how many contracts you can take.

Read the On-Chart Table

Scalp shows your intraday target.

Stop gives Brooks-style stop distance in points (and ticks).

Risk/Contract is the dollar risk per contract.

Max Contracts tells you maximum position size.

Max Risk confirms total dollar exposure.

Visual Confirmation

Place your entry, then eyeball the scalp and stop levels against chart structure (e.g. swing highs/lows).

Adjust the ATR multiplier if market context shifts (e.g. volatility spikes).

By blending this sizing panel with contextual ATR multipliers, you’ll consistently give your trades the right amount of “breathing room” while keeping risk in check.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。