Specifiche
I’m looking for a developer to create a custom trade panel/tool that allows me to execute and manage multiple trades simultaneously with dynamic, risk-based position sizing.
Core Concept (Must Be Followed Exactly)
• I define a total risk percentage (example: 1% of account balance)
• That total risk is split across all trades
• Each trade has a different stop loss (in pips)
• The system must automatically calculate lot size per trade so that:
If all stop losses are hit, the TOTAL loss equals exactly the defined risk (e.g., 1%)
Core Features
1. Multi-Trade Execution
• Ability to place up to 10 trades simultaneously
• Each trade is independent (not grouped into one position)
2. Individual Stop Loss Per Trade
• Each trade must allow a custom stop loss (in pips)
Example:
• Trade 1 → 1 pip SL
• Trade 2 → 5 pip SL
• Trade 3 → 10 pip SL
3. Total Risk Input (Global)
• Single input field for total risk % (example: 1%)
• This risk is shared across all trades, NOT per trade
4. Automatic Risk Distribution (CRITICAL FEATURE)
• The system must:
• Divide total risk across all trades
• Calculate lot size per trade based on stop loss distance
Meaning:
• Smaller stop loss → larger lot size
• Larger stop loss → smaller lot size
Mathematical Logic (Must Be Implemented Exactly)
Let:
• Balance = Account balance
• Risk% = Total risk (example: 1%)
• Total Risk ($) = Balance × Risk%
• N = Number of trades
• SLᵢ = Stop loss (in pips) for trade i
• PipValue = Value per pip per lot
Step 1: Split Risk Across Trades
Each trade gets:
• Risk per trade ($) = Total Risk ÷ N
Step 2: Calculate Lot Size Per Trade
For each trade:
• Lot Sizeᵢ = (Risk per trade) ÷ (SLᵢ × PipValue)
Result:
• All trades combined = exactly the defined total risk
• Lot sizes automatically adjust based on stop loss distance
Important Requirement
The system must guarantee:
If all stop losses are triggered, total loss = exact risk % entered (no deviation).
Panel / UI Requirements
• Input fields:
• Number of trades (up to 10)
• Stop loss per trade
• Total risk %
• Display:
• Auto-calculated lot size per trade (before execution)
• Controls:
• One-click execution button
Order Types
• Must support:
• Market orders
• Pending orders (limit / stop)
Optional Features (Nice to Have)
• Take profit per trade
• Break-even function
• Trailing stop
• Save/load presets
Simple Explanation
I want to place multiple trades at once, each with different stop losses, while risking a fixed total percentage of my account. The system should automatically adjust each trade’s lot size so the combined risk stays constant.