OPEN-SOURCE SCRIPT
Gestor de Riesgo Visual Adaptable

📘 Script Description: Risk Management Visual Tool (Auto-Adaptive)
This Pine Script indicator is a dynamic Risk Management Visual Tool designed for discretionary traders who want precise, real-time control over position sizing and trade planning. It automatically adapts to the currency pair you're trading and calculates key risk metrics based on your inputs.
🔧 Features:
- Auto-detects the active symbol and adjusts pip value calculations accordingly (including JPY pairs and USD as base or quote).
- Calculates:
- Pip value based on current price and pair structure
- Ideal position size (lots) based on account capital, risk %, and stop loss
- Risk in USD per trade
- Expected profit in USD
- Risk-to-Reward ratio (R/R)
- Displays all metrics in a clean, real-time on-chart table
- Fully customizable inputs: capital, risk %, stop loss, take profit, and lot size base
🧠 Ideal for:
- Traders who want to enforce consistent risk management
- Those preparing for prop firm challenges or scaling strategies
- Anyone trading multiple pairs and needing automatic pip value adaptation
This Pine Script indicator is a dynamic Risk Management Visual Tool designed for discretionary traders who want precise, real-time control over position sizing and trade planning. It automatically adapts to the currency pair you're trading and calculates key risk metrics based on your inputs.
🔧 Features:
- Auto-detects the active symbol and adjusts pip value calculations accordingly (including JPY pairs and USD as base or quote).
- Calculates:
- Pip value based on current price and pair structure
- Ideal position size (lots) based on account capital, risk %, and stop loss
- Risk in USD per trade
- Expected profit in USD
- Risk-to-Reward ratio (R/R)
- Displays all metrics in a clean, real-time on-chart table
- Fully customizable inputs: capital, risk %, stop loss, take profit, and lot size base
🧠 Ideal for:
- Traders who want to enforce consistent risk management
- Those preparing for prop firm challenges or scaling strategies
- Anyone trading multiple pairs and needing automatic pip value adaptation
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.