build_universal_bracket_order
Build risk-sized, leverage-aware bracket order payloads for Alpaca, MetaTrader 5, and Tradovate/TradingView webhooks, converting entry, stop-loss, and take-profit levels into broker-ready JSON.
Instructions
Generates risk-sized, leverage-aware bracket order payloads for Alpaca (Equities/Crypto), MetaTrader 5 (Forex/CFD/Metals with 100 oz Gold lot sizing and USD/JPY cross-rate conversion), and Tradovate/TradingView Webhooks (Futures).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"bias": "<bias>",
"entry_price": "<entry_price>",
"stop_loss": "<stop_loss>",
"take_profit": "<take_profit>"
},
"name": "build_universal_bracket_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bias | Yes | Trade direction. | |
| symbol | Yes | Asset ticker (e.g., 'XAU/USD', 'GBP/JPY', 'NVDA', 'MNQ'). | |
| stop_loss | Yes | Planned stop-loss price. | |
| asset_class | No | Target asset class for lot/share/contract math. | EQUITY |
| entry_price | Yes | Planned entry price. | |
| take_profit | Yes | Planned take-profit price. | |
| broker_format | No | Target broker payload schema. | universal |
| account_leverage | No | Account leverage ratio (e.g., 1, 4, 20, 50, 100). | |
| account_equity_usd | No | Total account equity in USD. | |
| risk_per_trade_pct | No | Fraction of account equity to risk (0.02 = 2%). | |
| contract_multiplier | No | Point value multiplier for Futures (e.g., 2 for MNQ, 20 for NQ). |