Automated Stop Loss and Take Profit for Futures Bots
How an automated stop loss and take profit work in futures bots: broker-side brackets, points vs ticks, breakeven, kill switch, daily limits and mini vs micro risk.
An automated stop loss is a protective order that the system attaches to a position without you clicking anything. In futures automation it is the single most important piece of plumbing, because a bot that can open positions but cannot reliably limit them is a bot whose worst case is not defined. This guide explains how stops, targets and breakeven moves are usually handled in an automated futures setup: where the orders live, how points become ticks, why exits must be allowed through every risk rule, what a kill switch does, and how contract size changes the dollar risk of the same stop.
It describes general mechanics and the way WeCore handles them. It does not recommend any stop distance, target or strategy, and a stop does not remove risk: it can be filled at a worse price than its level, especially in fast markets. For the wider framework, read risk management for algo traders first.
Where the stop lives: bracket orders at the broker
There are two ways to implement an automated stop:
- A software stop. Your program watches the price and sends an exit when it is crossed. If the program, the server or the internet connection fails, nothing exits.
- A broker-side stop. The stop and target are working orders at the broker, linked to the entry. They are called bracket orders when the stop and the target are tied together so that when one fills the other is cancelled (one-cancels-other). They keep protecting the position even if your software goes offline.
Broker-side protection is the more robust base. Some features cannot be done by the broker alone, such as moving a stop after the price has moved in your favor, and those need software watching the market. So most setups combine the two: a bracket at the broker from the first fill, and software that adjusts it.
In WeCore, the entry alert can carry the stop and the target in the same message. The alert's JSON uses `stopLoss` with a type and an amount in points, and `takeProfit` with an amount in points. The exact format and an example are in how to connect TradingView alerts to WeCore. Default stop and target values can also be set per strategy in the dashboard, with an option to let the alert override them.
Some brokers have their own switch for this. For ProjectX / TopstepX accounts, for instance, the account's risk settings need the automatic OCO bracket mode turned on, otherwise the platform refuses an entry that comes with a stop or target. WeCore does not send the entry without the requested protection, so the symptom is a rejected order and not an unprotected position. Check your broker's current settings pages for details.
Points, ticks and dollars
Futures prices move in ticks. A point is a whole number of price units, and a tick is the smallest allowed price step. For the equity index contracts discussed in micro vs mini futures, the tick is 0.25 point, so one point is four ticks.
WeCore's alert format takes stop and target distances in points. For known futures contracts, WeCore converts those points to broker ticks for you, and prices are rounded to a valid tick. For a symbol it does not recognize, it does not attach a stop or target rather than guess a conversion. That is a deliberate safety choice, and it is why you should confirm in simulation that the stop actually appears on the order before trading live.
A quick check for any stop: distance in points, times point value, times contracts, gives the dollar risk if the stop fills exactly at its level. Fees and slippage are on top.
Mini vs micro: the same stop, ten times the dollars
Mini and micro contracts track the same index but have different point values. As shown in the micro-vs-mini article, MNQ is $2 per point and NQ is $20 per point; MES is $5 per point and ES is $50.
Hypothetical arithmetic, with invented numbers and no recommendation: a 15-point stop is $30 per contract on MNQ and $300 per contract on NQ. With 3 MNQ contracts the stop represents $90 if filled at its level; with 3 NQ contracts it is $900. Sending the wrong symbol in an alert multiplies exposure by ten while the stop distance in points looks unchanged. This is one of the most common avoidable mistakes in futures automation, so make the dollar risk, not only the points, part of your pre-trade check, and keep the symbol list in your risk settings narrow.
Exits always pass the risk blocks
Risk rules exist to stop the system from taking more risk: maximum daily loss, maximum open positions, maximum position size, allowed symbols and trading hours. A rule that blocks new entries must never block a protective exit, otherwise it would trap a losing position.
In WeCore, exit, cancel, breakeven and protect actions always pass, even when a risk rule is blocking new entries. This follows a simple principle: anything that reduces risk is allowed; only things that add risk are subject to limits. When you design your own flow, check that your tools follow the same principle.
Breakeven and protect actions
Two alert actions deal with a position that is already open:
- breakeven moves the stop to the entry price. In the WeCore trading room and copy-trading features, this happens only when the position is already in profit; if the trade is at a loss the move is skipped with a reason shown, and the original stop stays.
- protect attaches a stop and a target to an open position that does not have them, for example one that was opened without protection.
The alert for either is the same JSON with a different `action`, and the price levels are rounded to a valid tick. Some automated moves, such as trailing stops and automatic breakeven, depend on software watching the price. On a customer's own trading server this runs on that server, so the server needs to be on and connected. Check the current feature description for your specific broker and setup, since not every combination supports every action.
A moved stop is a design choice with a trade-off: moving to breakeven early protects against giving back an unrealized gain, but it can also exit a trade on ordinary noise that would have continued. Test how it behaves in simulation, not only in a backtest.
Daily loss limits and auto-close
A per-trade stop limits one position. A daily loss limit limits the day. In WeCore's risk settings you set a maximum daily loss in dollars. Once today's realized loss reaches it, new entries are blocked; unrealized profit and loss is not counted in that comparison. On the Prop and Fleet plans, an auto-close option can in addition close open positions and cancel working orders once per trading day; it counts today's realized loss plus the open (unrealized) loss, so it can act before any trade was closed. The limit is counted per broker account, and the trading day resets at 17:00 Chicago time.
Remember the firm's own rules. A prop firm's daily loss or drawdown rule applies at the firm, and WeCore's limit is an additional layer you configure, not a replacement. For what those rules look like, see daily loss limits explained.
The kill switch
The kill switch is an immediate action. When pressed, it cancels all working orders and closes all positions on the account at that moment. It is not a lock: the account is not blocked afterward, so a new signal that arrives after you press it can open a trade again. To stop trading, disable the account or disconnect the strategy. People are often surprised by this, so learn it in simulation before you need it.
Stops placed beyond structure: a design consideration
One idea some traders consider is the buffer: instead of placing a stop exactly at an obvious level such as a recent high or low, placing it some distance beyond that level, so a brief poke through the level does not end the trade. The reasoning is that obvious levels attract clusters of orders and brief moves through them. The trade-off is direct: a wider stop means more dollars at risk per contract, which for a fixed risk budget means fewer contracts. Whether any buffer improves results for a given strategy is an empirical question that cannot be answered in general, and nothing here is a recommendation of a distance. If you want to explore it, test it on your own rules and instruments, with costs included, and size positions from the stop distance, not the other way around.
A checklist for stops in an automated setup
- Every entry carries a stop, or is followed by a protect action.
- The stop is a working order at the broker whenever the broker supports it.
- You know the distance in points, the point value and the dollar risk for the symbol you actually send.
- Mini and micro are not mixed up; the allowed-symbols list is narrow.
- Exits, cancels and breakeven are not blocked by risk rules.
- A daily loss limit is saved, and you know whether auto-close is on.
- You have practiced the kill switch and know it does not lock the account.
- You tested the whole chain in simulation first.
Where WeCore fits
WeCore connects your TradingView alerts or your own strategies to your broker or prop-firm account, applies the risk rules you set, and starts new accounts in simulation mode so the stop and target orders can be inspected without any being sent to the broker. You can look at the plans or create an account and try the stop and target fields in simulation. If you want to describe your own rules in writing, the Strategy Builder inside the app (Tools, then Strategy Builder, with an active Start, Prop or Fleet plan) can turn them into a strategy, and ready-made options are described on the WeAlgo page. To set the limits themselves, see how to set risk limits in WeCore.
FAQ
Should an automated strategy always use a stop?
That is a design decision for you, but an automated system with no defined worst case per trade or per day is hard to reason about. A stop does not remove risk, because it can fill beyond its level in fast markets.
What is the difference between a stop in software and a stop at the broker?
A software stop depends on your program and connection staying alive. A broker-side stop is a working order that remains active even if your software is offline.
Does the kill switch stop my bot from trading?
No. It closes all positions and cancels all orders at that moment, but the account stays active. To stop new trades, disable the account or disconnect the strategy.
Why did breakeven not move my stop?
Breakeven moves the stop to the entry price only when the position is in profit. If the trade is at a loss, the move is skipped and the original stop remains.
Are stop distances in points or ticks?
In WeCore alerts they are in points, which WeCore converts to broker ticks for known futures contracts. Confirm in simulation that the order shows the stop you intended.
This article is general information, not investment advice, and does not promise any result. Stop orders do not assure a fill at a given price. Futures trading carries a high risk of loss.