PROTECTED SOURCE SCRIPT
Atualizado Position Size Calculator - R & ATR v1

# 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
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
Notas de Lançamento
Position Size Calculator with Long and Short supportCalculate 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.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.