Skip to content
EN
Log in Start free
← Back to the blog

Following Trading Rules: What's Really Behind It

by Sebastian Saupe · Published on November 23, 2026 · Updated on November 23, 2026

Following Trading Rules: What's Really Behind It

You wrote a rule: stop at a certain price, exit when a condition hits. On the chart it looked clear. Then you're in the trade, price moves against you, and you shift the stop a few points, just this once. Or you hold a loser longer than planned because it might still turn around. Afterward comes the familiar question: why don't I stick to my own trading rules?

Part of the answer has little to do with willpower. In StrategyQuant X, a rule is something very concrete: a condition and an action, with no room for interpretation. And some of what feels like a broken promise to yourself is actually a structural result you can check before you blame yourself for it. This article covers both: how a rule is technically built in the software, and four spots where an apparent rule break means something different from what it feels like in the moment.

What a rule in StrategyQuant X actually is

In the StrategyQuant product family, a trading rule consists of a condition and an action. When the condition becomes true, the linked action runs, for example opening or closing a position. That holds for the rule-based setup in the EA Wizard and in AlgoWizard. There's no in-between step where the software checks the condition and then decides differently, the way you sometimes do in the moment of a trade.

In the newer SQX architecture, there's an additional layer. The first rule of a strategy is a special signal rule that checks all trading conditions at once. The remaining rules then just read the result of that signal and open or close the trade accordingly. Checking the condition and executing the action are two separate steps.

In the newer SQX architecture, the signal rule checks all conditions, and the follow-up rules only open or close the position afterward.
In the newer SQX architecture, the signal rule checks all conditions, and the follow-up rules only open or close the position afterward.

This separation doesn't turn the software into a substitute for your own discipline. It doesn't let you off the hook for formulating the conditions carefully yourself, because a poorly worded condition stays poor no matter how clean the architecture behind it is. But it does show what a rule break inside the software would actually mean: an error in the condition, not hesitation in the moment. That difference is worth remembering before you mix the two up.

Where the builder itself allows no exceptions

The builder in StrategyQuant X enforces its own kind of discipline, but only for the building blocks of a strategy, not for your behavior before or after. When generating rules at random, it checks the type of each element: what goes in a condition group must be boolean, true or false. What goes in a value group must be a price or a number. For each individual element you can also set whether the builder is allowed to optimize it or whether it stays fixed.

That's a kind of built-in discipline: the builder doesn't accidentally mix a price with a truth statement. It doesn't prevent every pointless strategy, though, it just makes sure the building blocks fit together. Whether a rule makes sense in substance is a separate question, one the builder doesn't answer for you. The parallel to your own rulebook is that discipline is needed in two places: once when building the rule, once when following it. The software only handles the first one.

When the market shifts, a good plan suddenly looks bad

One reason a plan suddenly feels wrong has nothing to do with the moment of the trade. A strategy tuned to a particular market condition usually performs worse once that condition changes. That can happen without you changing anything about the strategy itself, and without any way to have seen it coming.

For you as a trader, that means: before you pin a string of losses entirely on your own hesitation or rule-bending, it's worth asking whether the conditions the plan once worked under have shifted. That's usually easier to spot in hindsight than in advance, and it's no excuse for changing a rule mid-trade. It's a second possible cause you can check before you take on the whole blame yourself. The article Backtest vs live difference: why a robot loses money in live trading goes into how a robot in live trading can diverge from its own backtest.

A what-if result is not yet proof

After a loss, something similar often happens: you run a small change in your head, a tighter stop, a different exit, and wonder if that wouldn't have been the better rule. StrategyQuant X has a dedicated tool for this, the what-if scenario. It shows how a strategy would have behaved with changed settings.

The official documentation warns explicitly here: an improvement in the what-if scenario can be chance, or it can come from individual trades affecting each other, not because the new rule is actually better. So it's recommended to test the strategy again on its own, with the adopted settings, before you trust the result.

An improvement in the what-if scenario only holds up after you retest it with the adopted settings on its own.
An improvement in the what-if scenario only holds up after you retest it with the adopted settings on its own.

That holds for every rule change, not just the ones you make mid-trade. Even a change you think through calmly at your desk needs this second look before it counts as a better rule.

Why the builder discards most of its own suggestions

Another point that looks like failure but isn't: a very large share of the strategies the builder generates gets discarded automatically. Part of that is simply because random generation naturally produces a lot of pointless strategies. Another part comes down to settings like a stop loss set too tight, or wrong settings for trading close time or trading range, which cause trades to close too early or still within the same candle.

That says nothing about your psychology as a trader, it says something about how a rule is built. If a rule you wrote by hand behaves oddly in practice, the same check is worth doing: is the stop set at a realistic level, do the time windows fit, does the rule actually close the trade where you expect it to? Sometimes the problem isn't that you're breaking a good rule, it's that the rule itself was never quite cleanly defined.

When a single run makes the whole result

One last point concerns results that looked good in the backtest and weaker live. Up through version 3.6.1, the Optimizer in StrategyQuant X had a success criterion called Distribution. It measures how much of a strategy's total profit comes from a single optimization run. If more than half of the total profit came from a single run, the remaining runs performed weakly by comparison. That can reveal a result that looks good overall but whose consistency is fragile underneath. Later product versions may use different criteria; the behavior described here applies to the version named.

For you as a trader, that means: if a plan that looked solid in testing suddenly falls apart live, one reason can be that the good overall number already came from a single strong run in the backtest, not from a consistent rule. That too is first a question about how the strategy was built, not about your discipline in executing it. The article Overfitting in a trading strategy: when a backtest looks too good to be true covers how a backtest can end up looking too good overall.

What this mechanism shows, and what it doesn't

The mechanics in StrategyQuant X explain part of what feels like broken discipline: a market condition that shifted, an unverified what-if result, a rule that wasn't built cleanly, or a backtest result that depended on a single run. What it doesn't explain is the moment itself, when you move the stop even though you know better. This mechanism describes how a strategy is built and tested, not why a person deviates from their own plan at a particular moment.

That remains a question for your own routine: what you look at again after a trade, and whether you reread the rule before the next one. Talking it through with other traders instead of brooding alone in front of the chart often gives you a different view of your own decision. The QANTERIS Community exists for exactly these questions.

This article is for education only and is not investment advice. Past results, including backtests, do not guarantee future results. Trading financial instruments involves risk, and you can lose money.

This article is for education only and is not investment advice. Past results do not guarantee future results.

How do you do it? Share it in the community. Free, in your language.

Sign up free