INVITE-ONLY SCRIPT

Pos Size R&ATR

289
Pos Size R&ATR – Description

Pos Size R&ATR is a risk management tool designed to help traders calculate position size based on ATR volatility and fixed R-based risk management.

Instead of using a fixed position size, the script adjusts the trade size dynamically depending on market volatility. This ensures that every trade risks the same percentage of the portfolio regardless of how volatile the market is.

How it works

The script uses Average True Range (ATR) to estimate the stop loss distance from the entry price. Once the stop distance is determined, the position size is calculated so that the predefined risk per trade remains constant.

The basic logic is:

Risk per trade = Portfolio Size × Risk %

Position size = Risk / Stop distance

Where the stop distance is based on:

Stop distance = ATR × Multiplier

What the script shows on the chart

The indicator visually displays the key levels for the trade:

Entry price

ATR-based stop loss

Risk distance (1R)

Reward targets (2R, 3R depending on settings)

It also displays trade information such as:

Position size

Risk amount

Stop distance

Risk-to-reward levels

Why use ATR-based position sizing

Market volatility constantly changes. Using a fixed position size means that some trades will risk much more than others.

ATR-based sizing solves this by automatically adjusting the position size:

Higher volatility → smaller position

Lower volatility → larger position

This keeps the risk per trade consistent, which is a key principle of professional risk management.

Intended use

This script is designed to assist traders who use systematic risk management and R-multiple based trading, particularly in:

trend trading

swing trading

ATR-based stop strategies

It works on any market including crypto, forex, indices, and stocks.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.