Lux Calculator True Break Even
- Utilities
- Version: 2.0
- Activations: 10
Lux Calculator: the lot size you meant to risk, and a break-even that really closes at zero.
Most calculators size the trade on the stop distance only. Then commissions are added on top, and the "break-even" stop placed at the entry price still closes in loss. Lux Calculator fixes both.
Risk with commissions included
Choose your risk in % of balance or in account currency. The lot is computed so that loss at stop plus commissions (entry and exit) equals your risk. Example: risk $1,000 with $20 of commissions gives $980 on price plus $20 of commissions, $1,000 in total.
Automatic commissions
MetaTrader does not publish commissions before a trade, so the calculator learns them from your account history: first from closed trades on the same symbol, otherwise from symbols of the same type (forex in $ per lot, metals, indices and crypto as % of position value). On a brand new account with no closed trades it shows "no data" until your first closed trade. You can also type them in the inputs (example: XAUUSD=7;EURUSD=5, $ per lot round turn).
True break-even
The BREAK-EVEN button moves the stop beyond the entry by exactly what covers that trade's commissions, any negative swap and a slippage buffer (the current spread, then the slippage measured on your own executions, capped at 0.1R). If it is hit, you close at zero. Two clicks to avoid mistakes, optional automatic break-even at the R level you choose, and a dashed "true break-even" line on the chart for every open trade.
Everything on the chart
- Draggable entry, stop and target lines; market or pending order (limit or stop chosen automatically)
- Partials: add lines with the % to close; the target closes the rest. Waiting partials stay on the chart after the trade opens
- Panel: lots, total risk split into stop and commissions, potential profit, R:R, spread with "usual" and "wide" warning, stop distance
- "Why" field: each trade is saved with your reason in a journal file (MQL5/Files/LuxCalcolatore/journal.csv)
- Daily loss warning (default 2% of balance)
- The X button clears the lines; the setup survives timeframe changes; English or Italian from the panel
- Collapsible panel in the Lux dark theme
Type and use
Manual trading utility. It opens a trade only when you press OPEN and confirm. It checks free margin before sending the order. Works on any symbol and timeframe: forex, indices, metals, energy, crypto. Any account size and leverage. Keep the utility running on the chart while the trade is open: partials and automatic break-even are managed by the utility. The full user guide is at the bottom of this page.
Main inputs
Language, initial risk, risk in account currency, automatic break-even and its R level, slippage buffer, buffer cap, manual commissions, daily loss warning, initial stop and target, maximum slippage at market, panel position.
Risk disclaimer
Trading CFDs and leveraged products involves a high risk of losing money. This tool does not provide financial advice and does not guarantee profits. Results depend on the user's decisions and on broker conditions.
User guide
User guide for Lux Calculator True Break Even and Lux Chart Sessions and Spread, MetaTrader 5. Lux Trading, version 1.0, November 2026.
1. Installation
- From the Market, installation is automatic: the two programs appear in the Navigator, Lux Calculator under Market (Expert Advisors) and Lux Chart under Indicators.
- Drag Lux Calculator onto the chart. In the window that opens, tick Allow Algo Trading and press OK. The Algo Trading button in the toolbar must be green, otherwise the panel cannot send orders.
- Drag Lux Chart onto the same chart or another one.
- Each chart can hold only one Expert Advisor: if the chart already has one, open another chart for Lux Calculator.
2. Quick start in 5 steps
- Open a chart of the symbol you want to trade and start Lux Calculator.
- Type your risk in the risk field, for example 0.5 with the unit set to %.
- Choose LONG or SHORT, then drag the stop and target lines where you want them. Lots, total risk and R:R update as you move them.
- Press OPEN MARKET: a dialog shows the order details, press Yes to send it.
- When price has moved in your favour, use BREAK-EVEN to move the stop to the true break-even.
Try everything on a demo account first, to see how commissions, spread and confirmations behave with your broker.
3. The panel
- Header: direction, lots, R:R and loss at stop. IT/EN switches language, the arrow collapses the panel to this bar.
- LONG / SHORT and MARKET / PENDING.
- risk: value and unit, % of balance or account currency.
- lots: computed from the risk.
- total risk: loss at stop plus commissions, what you would really lose.
- commissions: entry and exit, and where they come from.
- potential: profit at target, commissions deducted.
- R:R: risk to reward, lime from 1:2 up.
- spread: now and usual for this hour; amber "wide" when at least double.
- stop: distance and source of the slippage buffer.
- break-even at: where the stop must go to close at zero.
- auto break-even: ON/OFF and R level.
- partials: add partial closes, each with its own %.
- why you enter: the sentence goes to the trade journal.
- OPEN and BREAK-EVEN buttons.
4. Lines on the chart
Every value has a line: drag it and the panel updates immediately.
- entry (white): drag it away from price and the order becomes pending.
- stop (pink): the label shows the money at risk, commissions included.
- target (lime): the label shows the R:R.
- partial (lavender): number, percentage and R:R, for example "P1 50% · 1:1.5".
- true break-even (dashed, open trades only): price, distance in R and money covered. It reads "ready" when you can move the stop there and turns solid lime when the stop is already at break-even.
5. Lot size from risk
The rule: loss at the stop price + commissions (entry and exit) = chosen risk. Commissions are not added on top of the risk, they are part of it.
Example on EURUSD: risk $1,000, stop 20 pips, $10 per pip per lot, commission $7 per lot round turn. Cost per lot $207, so $1,000 / $207 = 4.83 lots: $966 at the stop plus $33.81 of commissions = $999.81.
The lot is rounded down to the broker's lot step, so the real risk can be slightly below the chosen one. If even the minimum lot exceeds the risk, the panel warns you.
6. Automatic commissions
MetaTrader does not publish commissions before a trade, so the calculator learns them from your account history:
- closed trades on the same symbol, entry and exit as actually paid;
- otherwise symbols of the same type: forex in $ per lot, metals, indices and crypto as % of position value.
On a new account with no closed trades the panel reads "no data". Until then you can type them in the Inputs tab, in this format: XAUUSD=7;EURUSD=5 (dollars per lot, round turn). After the first closed trade on the symbol, the calculator switches to the real commissions.
7. The true break-even
A stop exactly at the entry price closes at a loss: commissions, negative swap and slippage eat into it. BREAK-EVEN moves the stop beyond the entry by exactly what covers:
- commissions of that trade, entry and exit;
- negative swap accrued so far;
- slippage buffer: the current spread with fewer than 5 trades on the asset, then the slippage measured on your executions (the value covering 9 cases out of 10), capped at 0.1R. The cap can be changed in the inputs; a manual buffer in pips can be set, -1 means automatic.
Example: 4 lots, $20 of commissions. Stop at entry: you close at -$20. Stop at true break-even: you close at $0.
Two clicks for safety: press BREAK-EVEN, the button becomes CONFIRM, press it within 5 seconds. The stop is moved only if price is at least 2 spreads beyond the break-even level, otherwise the panel reads "price too close: wait".
Auto break-even: switch it ON and choose the R level (default 1 R). When price gets there, the calculator moves the stop by itself with the same rules. It is OFF by default.
8. Partials and pending orders
Press + PARTIAL: a lavender line and a row appear. Drag the line and type the percentage. When price reaches it, the calculator closes that percentage of the initial volume; the target closes the rest. Example: 1 lot, P1 50% and P2 25%: 0.50 at P1, 0.25 at P2, the last 0.25 at the target.
After the trade opens, the partials still to do stay on the chart ("waiting") and disappear once executed. They are not broker orders: keep the calculator running on that chart while the position is open. The X button in the panel, or deleting any line by hand, clears the whole plan.
Pending orders: drag the entry away from price. LONG below price = BUY LIMIT, above = BUY STOP; SHORT above price = SELL LIMIT, below = SELL STOP.
9. Warnings, journal and memory
- Stop on the wrong side of the entry: move the line.
- Risk too small for the minimum lot: raise the risk or bring the stop closer.
- Partials at 100% or more, or a partial not between entry and target: fix the partials.
- Not enough free margin: the order is not sent.
- Daily loss: you passed the threshold, 2% of balance by default. It is a warning, not a block.
The why you enter sentence is saved with each trade in MQL5/Files/LuxCalcolatore/journal.csv.
Plans of open trades are kept if you restart the platform; language and panel state are remembered; the trade you are preparing comes back if you change timeframe or restart within 30 minutes. If the platform is closed, stop and target stay with the broker and partials resume when you reopen it.
10. Lux Chart (free)
- Lux colours, no grid, no period separators.
- Session bands, Rome time: Asia 01:00-08:00, London 09:00-15:30, New York 15:30-22:00. Last days plus the next trading day; any broker time zone and daylight saving handled automatically.
- Box with the session countdown ("LONDON · closes in 2h 10m", "next ASIA in 2h 15m") and the spread now versus usual at that hour.
- Bid line lavender, ask line pink: the gap is the spread.
11. Troubleshooting
- The panel does not appear or OPEN does nothing: Algo Trading is off. Turn the toolbar button green and tick "Allow Algo Trading" in the Expert properties.
- "price too close: wait": price is not yet 2 spreads beyond the true break-even. Wait and press BREAK-EVEN again.
- Commissions read "no data": new account. Type them in the inputs or wait for the first closed trade.
- Wrong language: press IT or EN in the header.
Risk disclaimer
Trading CFDs involves a high risk of losing money because of leverage. These tools are support tools for manual trading: they are not financial advice and do not guarantee profits. Calculations depend on data from the platform and the broker (prices, spread, commissions, swap, contract size, minimum lots); real execution and slippage can differ, especially around news and in fast markets. Try them on a demo account first and never risk money you cannot afford to lose.
