OPEN-SOURCE SCRIPT
업데이트됨 CFD Lot Calculator [MT5 Optimized]

CFD Position Size Calculator for MT5 (ES/NQ)
A clean, professional Pine Script tool that calculates optimal position sizes in lots for ES/NQ CFDs based on:
Account balance
Risk percentage per trade
Stop loss in pips
Contract size (default = 1 for MT5)
Features:
✅ Bottom-right compact table
✅ Displays risk amount, stop loss, and lot size
✅ Works with any CFD broker (adjust pip/contract values if needed)
✅ Detailed tooltips explain all inputs
Perfect for traders who want precise position sizing without chart clutter.
A clean, professional Pine Script tool that calculates optimal position sizes in lots for ES/NQ CFDs based on:
Account balance
Risk percentage per trade
Stop loss in pips
Contract size (default = 1 for MT5)
Features:
✅ Bottom-right compact table
✅ Displays risk amount, stop loss, and lot size
✅ Works with any CFD broker (adjust pip/contract values if needed)
✅ Detailed tooltips explain all inputs
Perfect for traders who want precise position sizing without chart clutter.
릴리즈 노트
CFD Lot Calculator - DescriptionThis indicator calculates the optimal position size for trading CFDs (Contracts for Difference) based on:
Account balance
Risk percentage per trade
Stop-loss distance in pips
Instrument type
Default Contract Sizes:
Indices (ES/NQ): 1 contract per lot (point value = 0.1)
Gold (XAUUSD): 100 oz per lot (pip value = 0.1)
Forex (USDJPY, EURJPY, GBPJPY, etc.): 100,000 units per lot (standard forex lot size)
How It Works:
Input your account balance, risk %, and stop-loss in pips.
Select your trading instrument.
The calculator automatically:
Determines pip value based on the instrument
Calculates dollar risk amount
Outputs the exact lot size to match your risk parameters
Output Format:
Position size displayed with 2 decimal places (e.g., 1.23 lot)
Works for indices, metals, and forex pairs (including JPY crosses)
릴리즈 노트
CFD Lot CalculatorCalculate the perfect lot size for CFDs with ease! Just input your account balance, risk %, and stop loss—the tool does the rest.
🔹 Key Features:
✔ Flexible Contract Sizes – Default values for popular instruments (ES=1, NQ=1, XAUUSD=100, XAGUSD=5000, Forex=100k).
✔ Custom Adjustments – Manually change contract size if needed.
✔ Risk Management – Automatically computes position size based on your risk tolerance.
Double-check your broker’s contract sizes—if they differ, simply adjust the input!
릴리즈 노트
CFD Lot CalculatorThis tool helps traders calculate optimal lot sizes based on account balance, risk percentage, and stop loss in pips. It supports major forex pairs, metals, and indices like ES and NQ. You can also set a custom contract size. The script dynamically adjusts pip values and displays key trade metrics—risk amount, stop loss, and position size—in a clean table. Includes optional styling to match your chart layout.
릴리즈 노트
Updating XXX/JPY error오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.