OPEN-SOURCE SCRIPT
Aggiornato

XAUUSD Position calculator

285
**XAUUSD Funded Position Calculator — Pro Risk Suite**

The XAUUSD Funded Position Calculator is a professional risk management and position sizing tool specifically designed for Gold traders and prop firm accounts.

This indicator allows traders to visually plan, size, and manage trades directly from the chart using a simple click-based workflow. Users can mark Entry, Stop Loss, and Take Profit levels, and the tool automatically calculates precise lot size based on account balance and selected risk percentage.

Key features include a real Break-Even engine that adjusts for fees and spread using position size, Risk-Reward analysis with a dynamic quality meter, and visual R-Lock levels (1R / 2R) to help traders secure profits systematically.

The integrated data panel displays both target risk and actual risk exposure, profit projections, lot size formatted for MT4/MT5 standards, and real-time trade quality evaluation.

Designed for funded traders, scalpers, and Gold specialists, this tool enhances execution discipline, capital protection, and trade planning efficiency — all within a clean, professional chart interface.

**Core Features**

• Click-to-set Entry / SL / TP
• Funded account risk % sizing
• Real Break-Even price calculation
• 1R & 2R profit lock levels
• Dynamic Risk-Reward meter
• Actual vs Target risk display
• MT4/MT5 lot formatting
• Clean visual trade panel

Built for precision. Designed for discipline. Optimized for funded trading.
Note di rilascio
This update introduces automatic trade direction detection, enhancing both visual clarity and decision-making workflow. The indicator now dynamically identifies whether the position setup is Long or Short based on the relationship between Entry and Take Profit levels. Once detected, the system displays a visual direction badge directly inside the data panel. A bullish setup is represented by a green **🐂 LONG** label, while bearish setups display a red **🐻 SHORT** label. This provides traders with an instant visual confirmation of trade bias without needing to manually interpret price positioning. The direction badge is color-coded and integrated into the main trade panel, maintaining a clean professional layout while improving situational awareness during execution and trade planning. **What’s new in this update:** • Automatic Long / Short detection • Visual trade bias badge • Bull (🐂) icon for Long positions • Bear (🐻) icon for Short positions • Dynamic color-coded direction display • Integrated into the main risk panel This enhancement improves chart readability, reduces execution errors, and adds a professional visual layer to the position management workflow.
Note di rilascio
Upgrades Since the First Version

Compared to the original release, the indicator has received the following enhancements:

1. Visual Risk-to-Reward Zones
Added dynamic risk (red) and reward (green) fills between Entry, SL, and TP for clearer on-chart trade visualization.

2. Projected Execution Lines
Introduced extended dashed projection lines for Stop Loss and Take Profit to map trade structure forward on the chart.

3. Break-Even System
Implemented an optional Break-Even feature with profit buffer, allowing users to lock in profit instead of closing at zero.

4. 1R and 2R Projection Levels
Added R-multiple levels (1R / 2R) with toggle controls for scaling and target planning.

5. R-Level Price Tags
Integrated price labels for 1R and 2R levels, matching the style of Entry, SL, and TP tags.

6. Enhanced Trade Panel
Upgraded the on-chart dashboard to include:

Direction detection (Long / Short)

Actual risk in USD

Position size (lot)

Profit projection

Risk-to-Reward ratio

Trade quality grading

7. Execution Price Labeling
Improved price tags for Entry, SL, and TP with cleaner formatting and consistent positioning.

8. Precision Formatting
All monetary values and prices standardized to two decimal precision for execution accuracy.

9. UI & Visual Refinements
General styling improvements for a cleaner, funded-trader-focused interface and screenshot readiness.

These upgrades transformed the tool from a basic lot calculator into a complete visual trade execution assistant.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.