INVITE-ONLY SCRIPT

Multi-Account Lot Calculator (@JP7FX)

141
Multi-Account Lot Calculator (JP7FX)

Multi-Account Lot Calculator shows a single trade idea across multiple accounts and currencies. It builds a panel on the chart that displays risk per account and the lot size needed for a chosen stop distance and R multiple.

Trade and asset settings
You define the shared trade settings once: direction (long or short), stop loss distance in pips, risk to reward, and entry price or use close.
The script supports Forex, stock, crypto, XAU/USD and index/CFD, with automatic or manual pip size and contract size. It also includes inputs for index point size and value per point when using index or CFD symbols.

Entry, SL and TP visuals
The script plots entry, stop loss and take profit lines on the chart.
Labels can show the exact prices and the R multiple for the take profit.
Optional zones between entry and SL, and entry and TP, can be drawn on the right side of the chart.
A lock feature lets you freeze the trade window and price levels manually or when price touches entry. When locked, the script can keep zones visible using line fills and can auto extend the right edge as new bars print.

Multi account panel
Up to six accounts can be configured at the same time.
For each account you can set:
• a custom name
• account balance
• account currency (USD, EUR, GBP, AUD, NZD, CAD, CHF, JPY)
• risk mode (percent or cash)
• preset risk percent or fixed cash risk

The panel calculates, per account:
• risk amount in that account’s currency
• lot size for the given stop loss distance

Currency conversion
Risk and lot sizing use the symbol’s quote currency and convert it into each account currency with request.currency_rate.
A fallback conversion rate can be set if live data is not available.

Table layout and style
The on-chart table shows columns for Account, CCY, Balance, Mode, R%, Risk Amt and Lot.
You can choose the panel position, border width, title and subheader colours, row colours and optional zebra rows.

Use cases
This tool is intended for traders who run several accounts or prop firm accounts in different currencies and want a single view of position size per account for the same trade idea.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.