PROTECTED SOURCE SCRIPT
Zaktualizowano

Position Size Calculator - R & ATR v1

107
# Position Size Calculator - R & ATR

Professional position sizing tool for crypto traders using risk management principles and ATR-based stop loss placement.

## Features

✅ **Automatic ATR Calculation** - Uses ATR(14) by default, customizable period
✅ **Risk Management** - Calculate position size based on portfolio % risk
✅ **Tranche Support** - Split positions into multiple entries
✅ **Visual Stop Loss** - Red line showing stop loss placement on chart
✅ **Real-time Results** - Table displays all calculations instantly
✅ **Clean Interface** - Professional table with all key metrics

## How It Works

The indicator calculates optimal position size using this formula:

1. **Risk Amount** = Portfolio Size × (Risk % / 100)
2. **Stop Distance** = ATR × Multiplier
3. **Stop Loss Price** = Entry Price - Stop Distance
4. **Position Size** = Risk Amount / Stop Distance
5. **Tranche Size** = Position Size / Number of Tranches

## Settings

**Portfolio & Risk**
- Portfolio Size (USD): Your total trading capital
- Risk per Trade (R in %): Percentage of portfolio to risk per trade
- Number of Tranches: Split position into multiple entries

**ATR Settings**
- ATR Length: Period for ATR calculation (default: 14)
- ATR Multiplier: Multiply ATR for stop loss distance (0.5x, 1x, 1.5x, etc.)

**Display**
- Show Stop Loss Line: Toggle red stop loss line on chart
- Show Calculation Table: Toggle results table

## Results Displayed

- Risk Amount (1R): Dollar amount risked on trade
- Stop Distance: Distance from entry to stop loss
- Stop Loss: Exact stop loss price
- Risk per Coin: Amount risked per unit
- Position Size (coins): Number of coins to buy
Informacje o Wersji
Position Size Calculator with Long and Short support

Calculate optimal position size based on Risk (R) and ATR for both long and short positions.

NEW in this version:
✅ Support for SHORT positions
✅ Automatic stop loss adjustment (above entry for shorts, below for longs)
✅ Position Type selector in settings (Long/Short)

Features:
- ATR-based stop loss calculation
- Risk management (% of portfolio)
- Tranche support for scaling into positions
- Visual stop loss line on chart
- Real-time calculation table
- Customizable ATR period and multiplier

Perfect for crypto traders using daily or weekly charts.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.