Why a take-profit can refuse to close a position

If a bot has hit its take-profit and the position is still open, it is almost always one of three things — and only one of them is a problem. Here they are in the order they are worth checking.

5 min read

1. The target armed, and is waiting for a pullback

On a grid level or an indicator rule's take-profit, a two-condition exit does not sell the instant a target is reached. Reaching it ARMS the exit; the engine then tracks the peak and sells once price pulls back from that peak by a set amount. A grid level never sells below its target, so a short spike past it closes at the target rather than giving back the gain. If price is still climbing, the exit is working exactly as configured and has not fired yet. A scalp has no such wait: it closes at market when its target on the average entry is reached.

This is deliberate. Selling on the first touch of a target guarantees you never capture a move that continued, and a run that continues is common enough to be worth waiting a little for. The cost is that a spike which retraces past your entry gets nothing — and that is the trade being made.

2. The target is below breakeven, so it was refused

Every round trip pays the venue twice, once to open and once to close. If the price your take-profit would execute at does not cover the entry plus both commissions, closing there books a loss while reporting a win.

DexMonk holds that close back. The position stays open and waits for a price that clears the costs, so a target set inside the fees holds rather than booking a loss.

It applies to take-profit only. A stop loss, a time limit or a trend reversal always executes, because a protective exit exists precisely for the case where the trade has gone wrong.

The arithmetic

At a 0.05% taker fee each way, a round trip costs about 0.1%. A 0.08% target is therefore a loss of roughly 0.02% every time it fires. The fix is a wider target, not a disabled floor.

3. The target is smaller than the spread it has to cross

On a thin pair the gap between the best bid and the best ask can be wider than the move you are aiming at. The target is reachable on paper and not reachable in the book. This shows up as a level that arms often and fills rarely.

The remedy is the pair or the target, not the bot. A market that cannot pay your target is not a market to run that target in.

How to tell which one it is

The three look identical from the outside — a target reached and a position still open — and the bot page shows each level's target, the live price and every fill, not the peak an exit is tracking. So check them in order. Has price fallen back from its high by the pullback yet? If not, it is the first case and nothing is wrong.

If it has and nothing closed, compare the price with your entry plus the round-trip fees: below that, the floor is holding it. And if the price only touched the target briefly on a thin pair, the book may never have traded there at all.

What to change, if anything

If it is the pullback, usually nothing. A smaller pullback closes sooner and captures less of a continuing run; a larger one holds out for more and gives more back when a move reverses. Neither is correct in the abstract, and the setting is worth touching only if you have watched it behave and disagree with what you saw.

If it is the floor, widen the target. A target that cannot clear its own round trip is not a small win — it is a loss that reports as a win, which is why the engine refuses rather than warns.

If it is the spread, change the pair. No configuration makes a market pay a target it cannot pay.

What it is not

It is very rarely a missed order. Every close that happens is in the bot's order history with its price and result, so a close that is not there did not happen, and one of the three reasons above is why.