Independent market intelligence
Research over noise · Risk before return
Crypto research guide

Stop or target first? BTC/USDT H1 and intrabar backtests

An hourly candle can reach a stop and a target. Its open, high, low and close describe the range but leave the order of those touches open. We follow BTC/USDT spot from H1 to M1 and then to individual trades, using a fixed rule on a full calendar month.

In simple terms

First mark the stop and target using the hour’s opening price. If both levels lie within the range, find the first minute that reaches either. When that minute reaches both, look up individual trades. A price touch and a modelled order fill are separate steps.

On this page
01

Read what the candle contains

For this spot series, open and close are the first and last trade prices of the hour. High and low are its extremes. The wicks show how far price travelled. Several sequences of trades can produce the same four values, so the order of the high and low is a separate question.

02

Set both levels before looking inside the hour

Use the opening price O as the reference for a hypothetical long in each hour. Set the stop 0.40% below O and the target 0.40% above O. A trade at or below the stop, or at or above the target, counts as a touch. Each hour starts a separate observation. Boundaries are calculated without rounding to the exchange price step.

S = O × 0.996
T = O × 1.004

03

Classify all hours by their extremes

We use BTC/USDT spot from 1 February through 28 February 2025 in UTC. Each of the 672 H1 candles is checked against its 60 M1 candles. Across the month 65 hours reached both levels. The other hours reached only one level or stayed between them.

Every hourly candle in the sample

BTC/USDT · Binance Spot · 2025-02 · UTC

Both levels
65
Stop only
153
Target only
143
Neither level
311
Classification from H1 extrema. Each candle belongs to exactly one category.
04

Two paths can draw one candle

Take the open, high, low and close of the first hour that reaches both levels. One possible path visits the low first. Another visits the high first. The two paths below share exactly the same OHLC values. This is a diagram of the ambiguity. The historical sequence is shown in the next charts.

One OHLC, two possible sequences

O OpenH HighL LowC Close
O Open 97,228.86S Stop 96,839.94456T Target 97,617.77544

Low first

Low firstUSDT96,50097,00097,50098,000STOLHC

High first

High firstUSDT96,50097,00097,50098,000STOHLC
Illustrative paths through the same real open, high, low and close. The paths are teaching diagrams.
05

Find the hour on H1

The highlighted bar begins at 2025-02-02 18:00 UTC. We use the earliest hour in the month that reaches both levels. The other candles show the surrounding price action. O, S and T mark the reference open, stop and target for the highlighted bar. Explore the candles to see their prices. The hourly candle closes below its open, although the target was reached first.

H1 context around the first double touch

BTC/USDT · H1 · 2025-02-02 18:00 UTC · Binance Spot

O Open 97,228.86S Stop 96,839.94456T Target 97,617.77544
H1 context around the first double touchUSDT96,00098,000100,0002025-02-02 14:00 UTC · Open 98,795.89 · High 99,439.05 · Low 98,705.88 · Close 99,205.082025-02-02 15:00 UTC · Open 99,205.08 · High 99,405.74 · Low 98,720.55 · Close 99,346.872025-02-02 16:00 UTC · Open 99,346.87 · High 99,361.97 · Low 98,075.02 · Close 98,264.002025-02-02 17:00 UTC · Open 98,264.01 · High 98,580.38 · Low 97,019.00 · Close 97,228.852025-02-02 18:00 UTC · Open 97,228.86 · High 97,931.65 · Low 96,821.54 · Close 97,087.922025-02-02 19:00 UTC · Open 97,087.92 · High 98,700.00 · Low 96,842.33 · Close 98,273.162025-02-02 20:00 UTC · Open 98,273.17 · High 98,628.74 · Low 97,650.54 · Close 97,798.002025-02-02 21:00 UTC · Open 97,798.01 · High 97,977.02 · Low 96,573.47 · Close 97,020.542025-02-02 22:00 UTC · Open 97,020.56 · High 98,022.20 · Low 96,150.00 · Close 97,994.46OST02-02 14:0002-02 18:0002-02 22:00
Open
97,228.86
High
97,931.65
Low
96,821.54
Close
97,087.92
The shaded hour is the case studied below. The three horizontal reference levels apply to that hour.
06

Follow the same hour on M1

The H1 range breaks down into one-minute candles. The numbered markers follow the chronological order of the touches. In this case the target is reached in the 18:24 UTC minute and the stop in the 18:52 UTC minute. The first one is enough to resolve the exit under the model.

Inside the same hour on M1

BTC/USDT · M1 · 2025-02-02 18:00 UTC · Binance Spot

O Open 97,228.86S Stop 96,839.94456T Target 97,617.77544
Inside the same hour on M1USDT96,50097,00097,50098,0002025-02-02 18:00 UTC · Open 97,228.86 · High 97,256.94 · Low 97,026.67 · Close 97,034.302025-02-02 18:01 UTC · Open 97,034.31 · High 97,140.00 · Low 97,019.00 · Close 97,118.522025-02-02 18:02 UTC · Open 97,118.51 · High 97,268.00 · Low 97,096.45 · Close 97,150.002025-02-02 18:03 UTC · Open 97,150.01 · High 97,360.00 · Low 97,136.06 · Close 97,255.052025-02-02 18:04 UTC · Open 97,255.05 · High 97,486.66 · Low 97,189.89 · Close 97,385.862025-02-02 18:05 UTC · Open 97,385.86 · High 97,534.76 · Low 97,293.11 · Close 97,494.892025-02-02 18:06 UTC · Open 97,494.89 · High 97,494.89 · Low 97,273.38 · Close 97,402.002025-02-02 18:07 UTC · Open 97,402.01 · High 97,451.29 · Low 97,242.00 · Close 97,373.632025-02-02 18:08 UTC · Open 97,373.62 · High 97,373.63 · Low 97,200.00 · Close 97,290.842025-02-02 18:09 UTC · Open 97,290.84 · High 97,364.00 · Low 97,279.80 · Close 97,364.002025-02-02 18:10 UTC · Open 97,364.00 · High 97,437.94 · Low 97,336.99 · Close 97,346.372025-02-02 18:11 UTC · Open 97,346.37 · High 97,468.00 · Low 97,250.00 · Close 97,372.152025-02-02 18:12 UTC · Open 97,372.15 · High 97,441.76 · Low 97,328.66 · Close 97,334.002025-02-02 18:13 UTC · Open 97,334.01 · High 97,442.22 · Low 97,328.66 · Close 97,442.222025-02-02 18:14 UTC · Open 97,442.21 · High 97,479.81 · Low 97,394.58 · Close 97,473.582025-02-02 18:15 UTC · Open 97,473.59 · High 97,477.73 · Low 97,358.69 · Close 97,372.402025-02-02 18:16 UTC · Open 97,372.39 · High 97,404.00 · Low 97,273.00 · Close 97,278.892025-02-02 18:17 UTC · Open 97,278.89 · High 97,285.66 · Low 97,195.30 · Close 97,195.302025-02-02 18:18 UTC · Open 97,195.30 · High 97,313.45 · Low 97,157.73 · Close 97,251.472025-02-02 18:19 UTC · Open 97,251.47 · High 97,283.55 · Low 97,215.20 · Close 97,222.052025-02-02 18:20 UTC · Open 97,222.06 · High 97,300.00 · Low 97,222.06 · Close 97,261.622025-02-02 18:21 UTC · Open 97,261.62 · High 97,282.82 · Low 97,153.94 · Close 97,180.742025-02-02 18:22 UTC · Open 97,180.75 · High 97,320.00 · Low 97,180.74 · Close 97,234.412025-02-02 18:23 UTC · Open 97,234.41 · High 97,560.00 · Low 97,220.00 · Close 97,552.792025-02-02 18:24 UTC · Open 97,552.80 · High 97,676.00 · Low 97,525.41 · Close 97,626.132025-02-02 18:25 UTC · Open 97,626.00 · High 97,882.06 · Low 97,615.58 · Close 97,857.782025-02-02 18:26 UTC · Open 97,857.79 · High 97,931.65 · Low 97,785.76 · Close 97,898.312025-02-02 18:27 UTC · Open 97,898.30 · High 97,912.75 · Low 97,758.49 · Close 97,841.792025-02-02 18:28 UTC · Open 97,841.78 · High 97,841.79 · Low 97,738.88 · Close 97,756.702025-02-02 18:29 UTC · Open 97,756.69 · High 97,831.99 · Low 97,756.69 · Close 97,831.992025-02-02 18:30 UTC · Open 97,831.99 · High 97,871.03 · Low 97,736.08 · Close 97,842.012025-02-02 18:31 UTC · Open 97,842.01 · High 97,842.01 · Low 97,736.33 · Close 97,823.822025-02-02 18:32 UTC · Open 97,823.81 · High 97,823.81 · Low 97,663.60 · Close 97,674.002025-02-02 18:33 UTC · Open 97,673.99 · High 97,713.19 · Low 97,591.34 · Close 97,591.352025-02-02 18:34 UTC · Open 97,591.35 · High 97,591.35 · Low 97,511.45 · Close 97,536.912025-02-02 18:35 UTC · Open 97,536.92 · High 97,544.00 · Low 97,500.00 · Close 97,507.032025-02-02 18:36 UTC · Open 97,507.04 · High 97,523.35 · Low 97,489.13 · Close 97,489.142025-02-02 18:37 UTC · Open 97,489.14 · High 97,489.14 · Low 97,411.20 · Close 97,470.362025-02-02 18:38 UTC · Open 97,470.35 · High 97,470.36 · Low 97,055.00 · Close 97,251.362025-02-02 18:39 UTC · Open 97,251.37 · High 97,449.95 · Low 97,236.00 · Close 97,417.742025-02-02 18:40 UTC · Open 97,417.75 · High 97,523.35 · Low 97,353.89 · Close 97,353.902025-02-02 18:41 UTC · Open 97,353.90 · High 97,368.00 · Low 97,174.17 · Close 97,251.282025-02-02 18:42 UTC · Open 97,251.28 · High 97,400.00 · Low 97,236.74 · Close 97,376.002025-02-02 18:43 UTC · Open 97,376.00 · High 97,382.00 · Low 97,304.00 · Close 97,332.002025-02-02 18:44 UTC · Open 97,332.00 · High 97,332.01 · Low 96,862.02 · Close 97,044.372025-02-02 18:45 UTC · Open 97,044.37 · High 97,467.52 · Low 97,031.85 · Close 97,313.172025-02-02 18:46 UTC · Open 97,312.07 · High 97,312.08 · Low 96,923.08 · Close 96,943.192025-02-02 18:47 UTC · Open 96,943.18 · High 97,158.30 · Low 96,913.33 · Close 97,110.612025-02-02 18:48 UTC · Open 97,110.62 · High 97,264.11 · Low 97,093.59 · Close 97,244.522025-02-02 18:49 UTC · Open 97,244.52 · High 97,315.06 · Low 97,104.00 · Close 97,315.062025-02-02 18:50 UTC · Open 97,315.06 · High 97,350.00 · Low 97,168.00 · Close 97,228.012025-02-02 18:51 UTC · Open 97,228.00 · High 97,228.01 · Low 96,879.00 · Close 96,899.072025-02-02 18:52 UTC · Open 96,899.07 · High 97,091.83 · Low 96,821.54 · Close 96,915.842025-02-02 18:53 UTC · Open 96,915.84 · High 97,151.61 · Low 96,864.36 · Close 97,110.732025-02-02 18:54 UTC · Open 97,110.72 · High 97,125.45 · Low 96,962.00 · Close 96,962.002025-02-02 18:55 UTC · Open 96,962.01 · High 97,072.00 · Low 96,946.69 · Close 97,010.012025-02-02 18:56 UTC · Open 97,010.00 · High 97,197.05 · Low 96,997.95 · Close 97,187.992025-02-02 18:57 UTC · Open 97,187.99 · High 97,230.76 · Low 97,109.03 · Close 97,190.232025-02-02 18:58 UTC · Open 97,190.01 · High 97,228.58 · Low 96,913.45 · Close 96,913.452025-02-02 18:59 UTC · Open 96,913.46 · High 97,111.57 · Low 96,902.01 · Close 97,087.92OST1218:0018:3018:59
Open
97,552.80
High
97,676.00
Low
97,525.41
Close
97,626.13
Marker 1 is the first threshold touch and marker 2 the second. The markers point to minutes containing those trades.
07

Read the individual trades

The exchange trade archive pinpoints the first print at or beyond each level. Look at the previous print and the crossing print. The marker shows the crossing, even if the price moved straight past the level. A stop or limit order would need its own rules for execution, size and costs.

The two crossings in the trade log

BTC/USDT · 2025-02-02 18:00 UTC · Binance Spot

1 · First touch · Target

1 · First touch · TargetUSDT97,61697,61797,61897,61997,620T45032842794503284327
Time (UTC)
Price (USDT)
97,618.02
Previous trade price
97,617.66
Trade ID
4503284303

2 · Second touch · Stop

2 · Second touch · StopUSDT96,83696,83896,84096,842S45036121794503612227
Time (UTC)
Price (USDT)
96,839.89
Previous trade price
96,840.00
Trade ID
4503612203
Dots show individual exchange trades in ID order around each crossing. The horizontal line marks the threshold. The highlighted dot is the first qualifying trade.
08

What to do when one minute also reaches both levels

Find the first minute that reaches either boundary. If that minute reaches both, read the ordered trades within it. Use the time and trade ID from the source to inspect the sequence. If the order stays unresolved, flag the hour and report the range of outcomes your assumptions allow. In this archive, the trade ID orders prints that share a timestamp.

09

Look at the earliest opposite case

The next chart uses the first hour with the opposite first touch, beginning at 2025-02-03 02:00 UTC. Here the stop is reached first. Both examples satisfy the same H1 condition. The labels on M1 show which boundary the prices reached first in each case. This hourly candle closes above its open, although the stop was reached first.

A second H1 candle with the opposite order

BTC/USDT · M1 · 2025-02-03 02:00 UTC · Binance Spot

O Open 93,436.97S Stop 93,063.22212T Target 93,810.71788
A second H1 candle with the opposite orderUSDT90,00092,00094,00096,0002025-02-03 02:00 UTC · Open 93,436.97 · High 93,771.99 · Low 93,050.00 · Close 93,737.992025-02-03 02:01 UTC · Open 93,737.99 · High 93,820.00 · Low 93,209.35 · Close 93,324.012025-02-03 02:02 UTC · Open 93,324.01 · High 93,369.81 · Low 92,913.15 · Close 93,077.992025-02-03 02:03 UTC · Open 93,085.99 · High 93,599.67 · Low 92,949.64 · Close 93,191.452025-02-03 02:04 UTC · Open 93,191.45 · High 93,412.36 · Low 92,886.50 · Close 93,007.262025-02-03 02:05 UTC · Open 93,007.26 · High 93,128.88 · Low 92,903.68 · Close 92,909.772025-02-03 02:06 UTC · Open 92,910.00 · High 93,108.37 · Low 92,287.47 · Close 92,335.992025-02-03 02:07 UTC · Open 92,335.99 · High 92,335.99 · Low 91,242.47 · Close 91,269.092025-02-03 02:08 UTC · Open 91,261.47 · High 93,021.40 · Low 91,231.00 · Close 92,507.962025-02-03 02:09 UTC · Open 92,512.01 · High 93,191.59 · Low 92,507.98 · Close 93,074.702025-02-03 02:10 UTC · Open 93,074.70 · High 93,397.32 · Low 92,925.11 · Close 93,177.172025-02-03 02:11 UTC · Open 93,177.16 · High 93,800.00 · Low 93,000.00 · Close 93,713.882025-02-03 02:12 UTC · Open 93,713.88 · High 94,184.00 · Low 93,629.58 · Close 93,675.942025-02-03 02:13 UTC · Open 93,675.98 · High 94,090.39 · Low 93,642.39 · Close 93,907.692025-02-03 02:14 UTC · Open 93,907.69 · High 94,280.89 · Low 93,658.74 · Close 94,046.032025-02-03 02:15 UTC · Open 94,046.03 · High 94,132.24 · Low 93,888.01 · Close 94,072.802025-02-03 02:16 UTC · Open 94,052.03 · High 94,366.73 · Low 93,747.96 · Close 94,360.002025-02-03 02:17 UTC · Open 94,360.02 · High 94,750.00 · Low 94,241.84 · Close 94,419.512025-02-03 02:18 UTC · Open 94,419.51 · High 94,680.00 · Low 94,253.12 · Close 94,519.452025-02-03 02:19 UTC · Open 94,519.44 · High 94,900.00 · Low 94,455.99 · Close 94,774.382025-02-03 02:20 UTC · Open 94,776.23 · High 94,951.77 · Low 94,669.42 · Close 94,895.512025-02-03 02:21 UTC · Open 94,895.52 · High 94,980.00 · Low 94,439.25 · Close 94,548.122025-02-03 02:22 UTC · Open 94,548.11 · High 94,600.00 · Low 94,247.77 · Close 94,283.292025-02-03 02:23 UTC · Open 94,283.28 · High 94,576.09 · Low 94,208.02 · Close 94,404.012025-02-03 02:24 UTC · Open 94,399.21 · High 94,579.79 · Low 93,999.00 · Close 94,088.402025-02-03 02:25 UTC · Open 94,088.85 · High 94,315.73 · Low 94,031.00 · Close 94,061.942025-02-03 02:26 UTC · Open 94,061.09 · High 94,126.42 · Low 93,558.74 · Close 94,002.002025-02-03 02:27 UTC · Open 94,002.00 · High 94,241.64 · Low 93,969.91 · Close 94,011.282025-02-03 02:28 UTC · Open 94,011.29 · High 94,300.00 · Low 93,932.80 · Close 94,240.012025-02-03 02:29 UTC · Open 94,239.37 · High 94,354.39 · Low 93,882.00 · Close 93,885.992025-02-03 02:30 UTC · Open 93,885.99 · High 93,977.21 · Low 93,618.03 · Close 93,809.412025-02-03 02:31 UTC · Open 93,809.29 · High 93,839.84 · Low 93,514.57 · Close 93,687.212025-02-03 02:32 UTC · Open 93,687.21 · High 93,749.00 · Low 93,453.56 · Close 93,506.852025-02-03 02:33 UTC · Open 93,506.84 · High 93,565.47 · Low 93,243.50 · Close 93,536.012025-02-03 02:34 UTC · Open 93,536.02 · High 93,765.60 · Low 93,408.40 · Close 93,484.062025-02-03 02:35 UTC · Open 93,484.06 · High 93,901.82 · Low 93,400.01 · Close 93,868.002025-02-03 02:36 UTC · Open 93,868.01 · High 94,175.47 · Low 93,593.36 · Close 94,132.222025-02-03 02:37 UTC · Open 94,132.23 · High 94,176.46 · Low 93,640.00 · Close 93,855.202025-02-03 02:38 UTC · Open 93,855.19 · High 94,065.32 · Low 93,733.61 · Close 93,992.072025-02-03 02:39 UTC · Open 93,992.06 · High 94,020.00 · Low 93,673.34 · Close 93,736.452025-02-03 02:40 UTC · Open 93,736.46 · High 93,749.84 · Low 93,554.65 · Close 93,570.062025-02-03 02:41 UTC · Open 93,570.06 · High 93,677.68 · Low 93,543.87 · Close 93,631.992025-02-03 02:42 UTC · Open 93,631.99 · High 93,716.73 · Low 93,560.66 · Close 93,708.012025-02-03 02:43 UTC · Open 93,708.00 · High 93,912.58 · Low 93,678.19 · Close 93,766.302025-02-03 02:44 UTC · Open 93,766.30 · High 93,924.05 · Low 93,669.60 · Close 93,859.992025-02-03 02:45 UTC · Open 93,860.00 · High 94,075.31 · Low 93,728.27 · Close 93,877.922025-02-03 02:46 UTC · Open 93,877.93 · High 94,075.12 · Low 93,712.99 · Close 93,735.992025-02-03 02:47 UTC · Open 93,735.99 · High 93,772.78 · Low 93,639.00 · Close 93,708.532025-02-03 02:48 UTC · Open 93,708.53 · High 93,880.00 · Low 93,629.01 · Close 93,782.122025-02-03 02:49 UTC · Open 93,781.59 · High 93,927.93 · Low 93,674.05 · Close 93,708.012025-02-03 02:50 UTC · Open 93,708.00 · High 93,783.75 · Low 93,643.49 · Close 93,770.002025-02-03 02:51 UTC · Open 93,768.51 · High 93,780.23 · Low 93,684.45 · Close 93,760.872025-02-03 02:52 UTC · Open 93,761.03 · High 93,786.40 · Low 93,660.01 · Close 93,678.012025-02-03 02:53 UTC · Open 93,678.00 · High 93,749.86 · Low 93,502.64 · Close 93,623.412025-02-03 02:54 UTC · Open 93,623.41 · High 93,679.09 · Low 93,501.87 · Close 93,550.342025-02-03 02:55 UTC · Open 93,550.34 · High 93,589.66 · Low 93,350.57 · Close 93,388.312025-02-03 02:56 UTC · Open 93,388.31 · High 93,562.10 · Low 93,311.10 · Close 93,440.712025-02-03 02:57 UTC · Open 93,440.70 · High 93,689.15 · Low 93,419.90 · Close 93,634.052025-02-03 02:58 UTC · Open 93,634.06 · High 93,787.81 · Low 93,580.01 · Close 93,611.332025-02-03 02:59 UTC · Open 93,611.33 · High 93,670.91 · Low 93,467.39 · Close 93,566.01OST1202:0002:3002:59
Open
93,436.97
High
93,771.99
Low
93,050.00
Close
93,737.99
The stop is reached first in this hour. The same calculation set the levels before reading the sequence.
10

Check the order across the month

Among the 65 hours that touched both levels, the stop came first in 33 and the target in 32. In 0 of these hours, the earliest qualifying minute reached both boundaries. The two illustrated hours were also checked against individual trades. Compare this ordering only within the sampled market and dates.

11

How the convention changes the result in R

Use the distance from the reference open to the stop as 1R. The same distance separates the open and target. For the 65 hours, awarding every stop first gives −65 R and awarding every target first gives +65 R. Using the observed order gives −1 R. These sums price the exits at the modelled boundaries before costs.

The same double-touch hours under three rules

Assume stop first
−65 R
Assume target first
+65 R
Use the observed order
−1 R
Total modelled R for the selected both-side hours. Positive and negative values share one scale.
12

Separate a touch from a fill

The tape shows the price and order of actual trades on that venue. Your execution model determines the price and quantity a simulated order receives. A stop can trigger into a fast market. A limit order has to compete for available volume and position in the queue. Model fees and slippage separately.

13

Use a clear rule for hours with no touch

This experiment counts a neither outcome when prices stay inside the boundaries until the hour ends. In a trading strategy, choose a rule for an open position at the cutoff and carry its costs and risk forward. Write the rule before testing. Record how you handle timeouts alongside stop and target outcomes.

14

Guard the order of information

The reference levels use the opening print alone. The running high and low can change during the hour. The final high, low and close are known when the candle closes. A strategy that generates a signal at the close needs a later execution time. Store UTC boundaries and apply the same first-touch rule to each hour.

15

Reproduce the comparison

Download the evidence. Start with the checksummed H1 and M1 archives, rebuild H1 from M1 and flag both-side bars. Read M1 in order, then check individual trades when needed. The file records the reference prices, levels, timestamps and source checksums. Keep the dates, thresholds and units fixed when comparing methods.

16

What to record in your own backtest

Write down the source, interval, entry time, stop and target rules, available time resolution and policy for unresolved bars. Keep fill rules and costs in the same record. Review a real winning case and a real losing case to see how the engine applied those rules.

Frequently asked questions

Can I tell which level came first from OHLC?

A candle with a touch on only one side identifies that side. When it reaches both levels, inspect finer data or report the ambiguity explicitly.

Is M1 enough to resolve every H1 case?

M1 resolves the order when the first touches fall in different minutes. If the first minute to reach either boundary reaches both, use the ordered trade log or leave the case unresolved.

Does a price touch mean my limit order filled?

A touch shows that trades occurred at or through the level. A fill depends on the order, available size and queue position.

Why use the same distance for the stop and target?

Equal distances make the effect of first-touch order easy to measure in R. The fixed distances here are a research rule.

Why include the first opposite case?

Both cases satisfy the same H1 condition. Seeing the opposite first touch shows how lower-resolution assumptions can change individual outcomes.

Can I compare the R total with a live trading result?

The chart compares boundary assumptions for the double-touch hours. A trading result needs explicit entries, order execution, position accounting and costs.

Primary sources

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.