PROTECTED SOURCE SCRIPT
已更新 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
版本注释
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.
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用,没有任何限制 — 了解更多信息这里。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。