Advertisement IC Markets

Inverting the price series: a simple test for whether a strategy only works because of one market direction

Discuss 1-minute to 15-minute price action setups, fading intraday momentum, key support/resistance zones, and proven short-term trading methodologies.
Post Reply
Shadow Trader
Posts: 6144
Joined: Wed Sep 09, 2026 5:19 pm

Inverting the price series: a simple test for whether a strategy only works because of one market direction

Post by Shadow Trader »

A strategy tested on a period where a pair mainly rose may be profitable just because it tends to buy. One simple check that's sometimes used is to invert the data: flip the price series upside down, so that every rise becomes a fall and vice versa, and run the same strategy on it.

How to do it: take your price series and transform it, for example by using the reciprocal of the price (which turns EUR/USD into USD/EUR), or by mirroring it around a fixed value. The mirror version preserves the size of the moves in pips, which is usually what you want for testing.

What the result can tell you:

If the strategy is symmetrical, meaning its long and short rules are mirror images, it should perform broadly the same on the inverted data. If it does much worse, the original result may have come from riding the trend of the test period rather than from the logic of the setups.

If the strategy is long-only or short-only, inversion shows what happens when the trend reverses.

It also checks the code. Bugs that treat longs and shorts differently, for example by calculating the spread on the wrong side, sometimes show up immediately.

Some limits: inverting doesn't create a truly new market. Volatility patterns, session behaviour and news reactions are all copied over. And real markets aren't symmetrical; sharp falls and slow rises are common in some instruments, so inverted data can look a little odd.

Still, as a quick sanity check, it's cheap. A strategy that only makes money in one direction isn't necessarily wrong, but it's good to know that's what you have before trusting it.
Recommended broker for automated trading & scalping IC Markets
Post Reply