Status
Not published yet. Prop Breach Lines will be a free, open-source indicator on TradingView. Until it's published there's no script page to link to, and we don't show mock-up screenshots. Join the waitlist to hear when it goes live.
What it does
You type your account numbers, your firm's loss rules and the open position. It draws three lines:
- Warning (dotted): the price at which you'd have used the share of a limit you choose, 80% by default.
- Daily limit (dashed): the price at which the account would reach the daily loss limit.
- Max limit (solid): the price at which the account would reach the maximum loss limit.
A line the price has crossed is marked "(passed)". Every line is moved toward the price by a spread and safety buffer, and its label says by how much.
It can't read your account, so every number comes from you. It never places, changes or closes orders.
Who it's for
- Traders holding a position on a prop account who want to see the loss-limit prices on the chart, not only the amounts.
- Forex, CFD and metals positions in lots, with profit and loss converted into the account currency, and futures positions in contracts.
- Accounts whose daily loss is measured from the balance, the equity or the higher of the two at the reset, with a static or trailing maximum loss, including accounts that start at 0.
It handles one position per chart. Positions on other symbols count through the open P&L you type for them.
What you see on the chart
The three lines with labels, and a panel. All money is in your account currency.
| Panel row | What it shows |
|---|---|
| Equity now (est.) | Your estimated equity, with this position valued at a price moved against it by the buffer. |
| Numbers from | When you last copied your numbers, shown in the reset time zone. |
| Daily floor | The floor, the room left and the share of the limit used. |
| Max floor | The same for the maximum loss, static or trailing. |
| Reached first | The limit the account would reach first. |
| Daily limit price, Max limit price | The two breach prices. |
| 1.0 price move = | What a 1.0 move in price is worth in your account currency, at your size. |
| Status | OK, WARNING, LIMIT REACHED, CHECK NUMBERS, UPDATE NUMBERS, UPDATE NUMBERS · LIMIT REACHED, or CHECK INPUTS. |
| Next reset in | Time left to the next daily reset. |
| Note | What to fix, or a reminder that your firm's dashboard is the reference. |
What the status means
| Status | Meaning |
|---|---|
| OK | Below the warning level on both limits. |
| WARNING | The warning share of at least one limit is used. |
| LIMIT REACHED | Estimated equity is at or below the floor reached first. |
| CHECK NUMBERS | Amber, lines still drawn. Flags balances or equity that don't fit the limits. A field was probably left at its default; the note says which values to check. |
| UPDATE NUMBERS | A daily reset has passed since your last update. The daily and warning lines are hidden, and a trailing max line turns gray. Only the max floor still counts: at or below it, the status reads UPDATE NUMBERS · LIMIT REACHED. |
| CHECK INPUTS | Something is missing or wrong, and no lines are drawn. The note says what to fix. |
How to use it
- Add the indicator to the chart of the symbol you hold, and pick that symbol in Position symbol. Another symbol shows CHECK INPUTS. On futures, pick the contract month you hold, not a continuous symbol such as ES1!.
- Under Account, copy the starting balance, balance now, and balance and equity at today's reset from your firm's dashboard. Set Numbers last updated to the time you copied them, in the chart's time zone. The "Numbers from" row shows that time in the reset time zone.
- Under Loss rules, enter your firm's limits and how they're measured, and under Daily reset, its reset time and time zone. For a trailing maximum loss, enter the peak your firm trails in Highest balance or equity reached. Turn on Trailing floor stops at only if your firm's rules name a level. On an account that starts at 0, use a starting balance of 0, fixed amounts and your real peak.
- Under Open position on this chart, enter the direction, average entry price and size. Auto picks the unit on forex, futures, stocks and funds. On CFDs, metals, indices and crypto, choose Lots with your broker's Units per lot (100 if a gold lot is 100 ounces), or Units. Contracts is for futures only. Set Direction to None when you hold nothing here.
- On silver, oil, crypto and exotic pairs, the automatic buffer can be smaller than your spread. Enter your spread in ticks or as a price.
- With intraday trailing, the chart's history must reach back to "Numbers last updated", or the status is CHECK INPUTS.
- If "1.0 price move =" matches your platform, and "Equity now (est.)" is your platform's equity minus the buffer, your inputs are probably right. The lines are still estimates.
Settings
The settings are grouped as they appear in the indicator. They're hidden from the chart's status line.
Account (copy from your firm's dashboard)
| Setting | What to enter |
|---|---|
| Account currency | USD, EUR, GBP, JPY, CHF, CAD, AUD or NZD. Default USD. |
| Starting balance | Account size at the start of the challenge or funded stage. 0 for accounts that start at 0. Default 100,000. |
| Balance now (closed trades only) | May be 0 or negative on accounts that start at 0. Default 100,000. |
| Balance at today's reset; Equity at today's reset | The values at the last daily reset, from your firm's dashboard. Default 100,000 each. |
| Open P&L on other symbols | Floating profit (+) or loss (−) of positions on other symbols. Update it when they move. Default 0. |
| Open costs not yet in balance | Commission and swap your firm counts against the limits. Default 0. |
| Numbers last updated | When you copied the numbers, in the chart's time zone. |
| Manual conversion rate (0 = automatic) | The value of 1 unit of the symbol's quote currency in your account currency. 0 uses TradingView's daily rate. Default 0. |
Loss rules (copy from your firm's rules)
| Setting | What to enter |
|---|---|
| Daily loss measured from | Balance at reset, Equity at reset, or Higher of the two. Default Balance at reset. |
| Daily loss limit | % of starting balance, % of daily reference, Fixed amount, or Off, and a value. Default 5.0% of starting balance. |
| Max loss limit | % of starting balance, Fixed amount, or Off, and a value. Default 10.0% of starting balance. |
| Max loss type | Static or Trailing. Default Static. |
| Trailing follows | Closed or end-of-day balance, or Intraday equity (incl. open P&L). Default Closed or end-of-day balance. |
| Highest balance or equity reached | Trailing only: the peak your firm trails. If your dashboard shows only the max-loss level, enter that level + the limit. Default 100,000. |
| Trailing floor stops at | On or off, and a level, for example the starting balance. A level below the starting balance is refused. Default off. |
| Warn when this % of a limit is used | Level for the warning line, status and alert. Default 80. |
Open position on this chart
| Setting | What to enter |
|---|---|
| Position symbol | The symbol of the position: pick this chart's symbol. On futures, the contract month you hold. |
| Direction | None, Long or Short. Default None. |
| Average entry price; Size | The position on this chart. The size unit is Auto, Lots, Contracts or Units. Default Auto. |
| Units per lot | Used only for lots. For metals, indices and CFDs, from your broker's contract specification. Default 100,000. |
| Automatic spread buffer | 10 ticks on forex (1 pip on 5-digit pairs), 2 ticks on futures, stocks and funds, and 0.015% of the entry price on metals, indices, CFDs and crypto. Default on. |
| Spread and safety buffer (ticks) | Equity is valued this far against the position, and every line moves this far toward the price. Default 2. |
| Spread and safety buffer (price) | The same buffer as a price amount, rounded up to a whole tick, for example 0.08 on silver. Default 0 (not used). |
The largest of the three buffers is used. Under Daily reset you enter the reset hour, minute and time zone (default 17:00 America/New_York). Under Display you set the lines, their length in bars, the panel position, the text size, and the Daily, Max and Warning colors.
How the lines are worked out
- Equity = balance now + open P&L of this position + open P&L on other symbols (as typed) − open costs. The position is valued with the spread and safety buffer against it.
- Daily floor = daily reference (balance, equity or the higher of the two at the reset) − daily limit.
- Max floor = starting balance − max limit (static), or peak − max limit (trailing), never above the "Trailing floor stops at" level when that is on.
- Peak = the highest of the typed peak, starting balance, balance now and balance at the reset. Intraday trailing adds the equity at the reset, current equity and this position's best price on each bar since "Numbers last updated", rescanned on every recalculation.
- The higher floor is reached first. While the numbers are out of date, only the max floor still counts.
- Breach price = entry + (floor − equity without this position) ÷ (direction × size × units per lot × point value × rate), then moved toward the price by the buffer. When the symbol's base currency is your account currency, for example USDJPY on a USD account, the conversion is exact.
- Buffer = the largest of: automatic (10 ticks on forex; 2 ticks on futures, stocks and funds; otherwise 0.015% of the entry, rounded up to a tick), your ticks, your price amount.
A worked example
Example inputs, not real account data: a $100,000 account in USD with a 5.0% daily loss limit measured from the balance at the reset and a 10.0% static maximum loss, all balances at $100,000, and a long position of 2 lots of gold (XAUUSD) at a made-up entry of 4,000.00, with 100 ounces per lot.
| Step | Value |
|---|---|
| 1.0 price move (2 lots × 100 ounces) | $200 |
| Automatic buffer (0.015% of 4,000.00) | 0.60 |
| Warning line (80% of the $5,000 daily limit = $4,000, or 20.00 below the entry) | 3,980.60 |
| Daily limit line ($5,000 ÷ $200 = 25.00 below the entry) | 3,975.60 |
| Max limit line ($10,000 ÷ $200 = 50.00 below the entry) | 3,950.60 |
| Equity now (est.) with the price at the entry | $99,880.00 |
Each line sits 0.60 closer to the price than the plain arithmetic, because of the buffer. The equity estimate is your platform's equity minus the buffer: 0.60 × $200 = $120. Point value, tick size and symbol type come from your data feed, so the buffer and the lines can differ on another feed.
Alerts
- "Any alert() function call": messages when the warning level or a loss-limit price is reached, with the limit prices and the time of your numbers, and once when a daily reset passes.
- "Warning level reached" and "Loss limit price reached": simple alerts with a fixed message.
An alert keeps the numbers it was created with. Delete it and create it again after each update of your numbers.
How it differs
Breach-price lines are not new: public scripts draw them for futures or in US dollars. This script also handles the lot sizes and currency conversion above, in 8 account currencies. The code is original.
Limits
- TradingView scripts can't read your account: the lines are only as good as the numbers you type.
- With end-of-day trailing, today's closed profit raises the floor early. From this effect the panel shows less room than your firm, not more.
- Slippage and gaps can carry the price through a line.
- TradingView's contract data and daily currency rate can differ from your broker's. For crosses, where neither currency is the account currency, the daily rate is used.
- The panel updates on new prices or settings changes. On a closed market or delayed data, a reset can pass before the panel shows it.
- Positions on other symbols count only as the open P&L you typed, as if they stay there.
- Some firm rules, such as consistency rules, are not modeled.
Risk
Trading involves substantial risk of loss. This tool is not financial advice and does not provide trade signals. It does not guarantee profits or a passed prop-firm evaluation.
Check every number against your firm's dashboard and current rules before you trade. Read the full risk disclosure.
Related
- Risk Position Size: the largest trade size that fits your loss limits.
- Prop Day Map: your firm's trading day, reset and no-trade times on the chart.
- Static vs trailing drawdown: where your line is
- What daily drawdown means in a prop-firm challenge