PROTECTED SOURCE SCRIPT
Multi-Entry Position Sizer

Multi-Entry Position Sizer (with Risk, Margin & Tables)
This tool is designed for traders who manage multiple staggered entries (scaling in) with fixed risk allocation. It calculates position sizes, margin requirements, and liquidation levels for up to 5 custom entry points, based on a defined stop loss and wallet risk.
🔧 Features
Entry Management
Supports up to 5 entries.
Use 0 to ignore an entry, -1 to auto-use current price.
Valid entries are drawn as colored dashed lines.
Invalid entries (e.g., entry on wrong side of stop loss) are flagged with red dotted lines and labels.
Risk Control
Risk defined in Direct USDT or % of wallet size.
Risk automatically split across all valid entries.
Per-entry quantity and margin calculated dynamically.
Visualization
Stop loss line in red.
Liquidation levels drawn as faded dotted lines.
Entry labels show price and required margin in USDT.
Summary table (top-right) with symbol, side, risk, SL, leverage.
Entries table (bottom-right) listing each valid entry with:
Price
Quantity
Margin in USDT
Risk/entry in USDT
Liquidation level
Alerts
Alerts trigger when price touches a valid entry.
Separate alert for stop loss hit.
📊 How to Use
Select Side (Long or Short).
Enter your Wallet Size, Risk Parameters, and Leverage.
Define your Stop Loss Price.
Configure up to 5 Entry Points.
0 = disabled
-1 = current market price
Any positive value = custom entry price
Watch tables and chart update automatically:
Invalid entries turn red (ignored in sizing).
Valid entries show correct margin and liquidation prices.
✅ Who Is It For?
Traders who scale in with multiple orders.
Traders who want precise risk per trade.
Anyone who needs to see margin requirements and liquidation prices before placing orders.
⚠️ Disclaimer:
This script is for educational purposes. It does not place orders automatically and should not be considered financial advice. Always double-check calculations with your exchange before trading.
This tool is designed for traders who manage multiple staggered entries (scaling in) with fixed risk allocation. It calculates position sizes, margin requirements, and liquidation levels for up to 5 custom entry points, based on a defined stop loss and wallet risk.
🔧 Features
Entry Management
Supports up to 5 entries.
Use 0 to ignore an entry, -1 to auto-use current price.
Valid entries are drawn as colored dashed lines.
Invalid entries (e.g., entry on wrong side of stop loss) are flagged with red dotted lines and labels.
Risk Control
Risk defined in Direct USDT or % of wallet size.
Risk automatically split across all valid entries.
Per-entry quantity and margin calculated dynamically.
Visualization
Stop loss line in red.
Liquidation levels drawn as faded dotted lines.
Entry labels show price and required margin in USDT.
Summary table (top-right) with symbol, side, risk, SL, leverage.
Entries table (bottom-right) listing each valid entry with:
Price
Quantity
Margin in USDT
Risk/entry in USDT
Liquidation level
Alerts
Alerts trigger when price touches a valid entry.
Separate alert for stop loss hit.
📊 How to Use
Select Side (Long or Short).
Enter your Wallet Size, Risk Parameters, and Leverage.
Define your Stop Loss Price.
Configure up to 5 Entry Points.
0 = disabled
-1 = current market price
Any positive value = custom entry price
Watch tables and chart update automatically:
Invalid entries turn red (ignored in sizing).
Valid entries show correct margin and liquidation prices.
✅ Who Is It For?
Traders who scale in with multiple orders.
Traders who want precise risk per trade.
Anyone who needs to see margin requirements and liquidation prices before placing orders.
⚠️ Disclaimer:
This script is for educational purposes. It does not place orders automatically and should not be considered financial advice. Always double-check calculations with your exchange before trading.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.
Script protegido
Este script se publica como código cerrado. Sin embargo, puede utilizarlo libremente y sin limitaciones: obtenga más información aquí.
Exención de responsabilidad
La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.