TradeViora AcademyLearn. Analyze. Practice. Trade Smarter.
Menu

FREE FINANCIAL EDUCATION

Intrabar ambiguity and performance bounds

Bound a bar-based pivot backtest when stop and target order is unknown.

Learning objectives

  • Bound a bar-based pivot backtest when stop and target order is unknown.
  • Report ambiguity instead of selecting the profitable path.

Prerequisites: Understand OHLC limitations and stop/target payoffs.

Mechanism and interpretation

Suppose an open position has both stop and target inside a later bar's high-low range. The bar alone does not reveal which was reached first. Construct at least two admissible assumptions:stop-first and target-first. The difference in aggregate performance measures the sensitivity of the result to unresolved path information rather than pretending one ordering is observed.

These bounds are conditional on the simplified fill prices. Gaps, spread and order timing can make even the optimistic and pessimistic point-fill outcomes incomplete. Use finer event data where available, or predeclare a conservative ambiguity policy. Record the number and share of ambiguous trades so a strategy whose apparent edge comes mostly from unknown ordering is immediately visible.

Worked case · synthetic data

A synthetic long enters 100 with stop 98, target 104. A later bar hasO=101, H=105, L=97, C=103. Both levels are inside the range. Stop-first yields−2 points; target-first yields+4 before costs. For 10 such ambiguous trades, the difference between assumptions is 60 points of aggregate per-unit payoff. Neither the positive close nor candle color resolves the first-hit order.

Failure modes and context

An entry occurring inside the same bar adds another unknown sequence. A target may have touched without filling a passive limit order. If a stop is crossed by a gap, the loss can exceed the distance to its trigger. Reporting only the favorable bound disguises a data limitation as evidence of strategy performance.

Practice assignment

A short enters 200 with stop 203, target 194. One later bar spans 193–204. Four ambiguous trades occur alongside six unambiguous trades totaling+12 points. Calculate total payoff under stop-first and target-first assumptions, ignoring costs, and state what further data would narrow the interval.

Worked answer

Each ambiguous short contributes−3 or+6. Totals are 12−4×3=0 and 12+4×6=36 points. Sequenced trades or quotes after the actual entry can establish ordering and improve execution modeling. The[0,36] interval is an assumption range, not a statistical confidence interval.

Check your understanding

Question 1

Can a bullish close prove the target occurred before the stop?

  1. No
  2. Yes
  3. Only when the high exceeds the target
Reveal answer and reasoning

A. No

OHLC contains no complete intrabar sequence.

Question 2

What is the per-trade ambiguity spread for−2 versus+4?

  1. 2 points
  2. 4 points
  3. 6 points
Reveal answer and reasoning

C. 6 points

The possible payoff difference is 4−(−2)=6.

Question 3

Is an assumption range a statistical confidence interval?

  1. Only with many trades
  2. No
  3. Yes
Reveal answer and reasoning

B. No

It varies unresolved path assumptions rather than sampling uncertainty.

Sources and further reading

The explanations, operational rules, numerical cases and questions on this page are original TradeViora Academy educational material. Source documents support definitions or conventions; they do not establish the profitability of an illustrated rule.

Third-party rights remain with their owners. TradeViora Academy is not affiliated with these organizations. Examples are hypothetical and exclude real orders. Source review: 26 November 2026.

Continue learning

Open related learning tools · Practice library · Learning downloads