[Mine-PA] Inside bar breakout with trend

public
@djgambhir

BTCUSDT · 4h · 2021-12-312026-08-31 · 10,229 bars in 12.1ms

Underperformed the market. Holding BTCUSDT returned +66.53% over the same period, against this strategy’s -32.11%.

Net P&L
-32.11%
−$3,210.99
Max drawdown
-32.26%
Max run-up
+7.35%
Trades
458
36.5% win rate
Profit factor
0.70
2021-12-31drawdown · worst -32.26%2026-08-31
TrainingValidationOut-of-sample
SegmentPeriodReturnMax drawdownTradesWin rate
Training2022-01-012024-10-19-23.40%-25.05%26636%
Validation2024-10-192025-09-25-5.48%-8.34%8637%
Out-of-sample2025-09-252026-08-31-5.66%-7.17%10537%

Risk-adjusted

Sharpe
-1.18
Sortino
-1.66
Calmar
-0.25
Return ÷ max drawdown
-1.00
CAGR
-7.96%
Exposure
33.6%

Per trade

Expectancy
−$7.01 · -0.33%
Average win / loss
$44.62 / −$36.64
Payoff ratio
1.22
Largest win / loss
$259.93 / −$116.63
Longest losing streak(winning: 6)
11 trades

Drawdown over time

Max drawdown
-32.26%
Longest time under water(still going at the end)
1705 days
Worst drawdown recovered in
not recovered

Costs and mechanics

Fees paid
−$898.42
Funding
−$87.33
Liquidations
0
Warmup bars(loaded before the start date)
49
Benchmark(buy and hold)
+66.53%

Monte Carlo

1,000 alternative histories, each 458 trades drawn at random from this run’s own. The bands hold the middle 50% and 90% of them; the solid line is what actually happened.

this runmedian of the historiesmiddle 50% · 90%
Unlucky (5%)TypicalLucky (95%)
Return-45.80%-32.70%-15.39%
Max drawdown-47.37%-35.18%-20.65%

100% of histories lost money, and 65% had a deeper drawdown than this run’s -32.26%. Assumes trades are independent; real losing streaks cluster, so the true spread is usually wider.

Settings

ema50 length
50
atr14 length
14
Stop loss (× atr14)
1.5
Trailing stop (× atr14)
2.5
Close after (bars)
12
Leverage (×)
1
Position size (% of equity)
25

BTCUSDT with every trade

Loading prices…
long opened short opened closed at a profit closed at a loss

Trades

458 trades · 401–458 shown

#SideEntryExitHeldP&LReturnClosed by
401long2026-03-13 12:00 @ 72,204.242026-03-13 16:00 @ 70,821.064h−$35.91-2.01%trailing stop
402long2026-03-15 00:00 @ 71,188.632026-03-17 04:00 @ 74,410.022d 4h$78.34+4.42%time stop
403short2026-03-19 16:00 @ 69,358.932026-03-20 08:00 @ 71,151.3316h−$48.12-2.68%trailing stop
404short2026-03-22 12:00 @ 68,163.362026-03-23 08:00 @ 69,627.4420h−$40.27-2.26%trailing stop
405short2026-03-24 16:00 @ 69,823.632026-03-25 08:00 @ 71,600.3216h−$46.75-2.64%trailing stop
406short2026-03-26 08:00 @ 70,039.792026-03-28 12:00 @ 66,301.662d 4h$91.78+5.22%time stop
407short2026-03-29 00:00 @ 66,321.532026-03-30 00:00 @ 67,158.891d−$24.31-1.36%trailing stop
408short2026-03-31 12:00 @ 66,639.072026-03-31 16:00 @ 68,229.584h−$44.25-2.49%trailing stop
409long2026-04-01 16:00 @ 68,890.682026-04-02 00:00 @ 67,306.758h−$42.41-2.40%trailing stop
410short2026-04-02 04:00 @ 66,525.092026-04-04 08:00 @ 66,995.502d 4h−$14.24-0.81%time stop
411long2026-04-06 00:00 @ 69,011.702026-04-06 20:00 @ 68,353.7720h−$18.67-1.07%trailing stop
412long2026-04-09 12:00 @ 71,124.122026-04-11 16:00 @ 72,802.742d 4h$39.72+2.27%time stop
413short2026-04-13 00:00 @ 70,697.062026-04-13 12:00 @ 71,955.2712h−$33.04-1.88%trailing stop
414long2026-04-14 16:00 @ 75,283.152026-04-15 04:00 @ 73,693.4512h−$38.40-2.20%trailing stop
415long2026-04-17 12:00 @ 75,557.212026-04-18 16:00 @ 75,506.011d 4h−$2.38-0.14%trailing stop
416long2026-04-19 16:00 @ 75,822.862026-04-19 20:00 @ 74,445.354h−$33.09-1.90%trailing stop
417long2026-04-20 16:00 @ 75,683.232026-04-22 20:00 @ 78,775.542d 4h$69.26+4.00%time stop
418long2026-04-26 08:00 @ 78,077.112026-04-27 04:00 @ 77,569.6520h−$13.11-0.75%trailing stop
419short2026-04-27 16:00 @ 76,744.652026-04-29 08:00 @ 77,701.911d 16h−$23.67-1.36%trailing stop
420long2026-05-01 12:00 @ 77,445.092026-05-03 16:00 @ 78,609.472d 4h$24.57+1.41%time stop
421long2026-05-05 04:00 @ 80,852.972026-05-07 08:00 @ 81,463.702d 4h$12.09+0.69%time stop
422long2026-05-08 12:00 @ 80,197.842026-05-10 16:00 @ 81,365.222d 4h$23.59+1.35%time stop
423long2026-05-11 12:00 @ 81,183.332026-05-12 16:00 @ 80,116.811d 4h−$25.02-1.43%trailing stop
424short2026-05-13 12:00 @ 80,443.912026-05-14 12:00 @ 80,820.971d−$9.79-0.56%trailing stop
425long2026-05-14 16:00 @ 81,261.852026-05-15 12:00 @ 79,872.0320h−$31.53-1.81%trailing stop
426short2026-05-15 16:00 @ 79,102.282026-05-17 20:00 @ 78,384.572d 4h$14.29+0.82%time stop
427short2026-05-18 00:00 @ 77,414.912026-05-20 04:00 @ 76,704.942d 4h$14.75+0.85%time stop
428short2026-05-21 12:00 @ 77,141.872026-05-23 16:00 @ 75,502.102d 4h$35.59+2.04%time stop
429short2026-06-03 16:00 @ 66,033.392026-06-04 04:00 @ 64,707.3712h$33.68+1.92%trailing stop
430short2026-06-05 04:00 @ 62,687.462026-06-07 08:00 @ 62,378.472d 4h$6.85+0.39%time stop
431short2026-06-09 00:00 @ 63,045.292026-06-11 04:00 @ 62,670.032d 4h$8.75+0.50%time stop
432long2026-06-15 12:00 @ 66,205.242026-06-17 04:00 @ 65,295.871d 16h−$25.90-1.47%trailing stop
433long2026-06-21 00:00 @ 64,282.952026-06-23 04:00 @ 64,024.392d 4h−$9.27-0.53%time stop
434short2026-06-23 08:00 @ 62,836.732026-06-24 12:00 @ 62,520.351d 4h$7.16+0.41%trailing stop
435short2026-06-25 16:00 @ 59,524.292026-06-27 20:00 @ 60,161.932d 4h−$20.01-1.14%time stop
436short2026-06-30 04:00 @ 59,584.182026-07-01 12:00 @ 59,899.551d 8h−$10.70-0.61%trailing stop
437long2026-07-02 12:00 @ 61,341.372026-07-04 16:00 @ 62,896.122d 4h$41.72+2.38%time stop
438long2026-07-06 00:00 @ 63,629.922026-07-06 08:00 @ 62,565.038h−$31.45-1.79%trailing stop
439long2026-07-10 04:00 @ 63,930.082026-07-12 08:00 @ 63,843.632d 4h−$4.76-0.27%time stop
440long2026-07-12 16:00 @ 64,162.832026-07-13 00:00 @ 63,289.058h−$25.75-1.47%trailing stop
441long2026-07-15 00:00 @ 65,027.602026-07-16 08:00 @ 63,955.831d 8h−$31.09-1.78%trailing stop
442long2026-07-18 12:00 @ 64,046.012026-07-20 04:00 @ 63,764.721d 16h−$9.73-0.56%trailing stop
443long2026-07-21 04:00 @ 65,552.612026-07-23 08:00 @ 65,392.222d 4h−$6.35-0.37%time stop
444short2026-07-23 16:00 @ 64,927.412026-07-25 20:00 @ 64,372.572d 4h$13.77+0.79%time stop
445long2026-07-26 16:00 @ 64,746.452026-07-27 12:00 @ 64,541.3720h−$7.56-0.44%trailing stop
446short2026-07-28 00:00 @ 63,707.962026-07-29 04:00 @ 64,246.811d 4h−$16.05-0.93%trailing stop
447long2026-07-30 12:00 @ 64,779.852026-07-31 08:00 @ 63,739.5520h−$30.00-1.73%trailing stop
448short2026-08-01 20:00 @ 62,489.602026-08-02 00:00 @ 63,321.564h−$24.60-1.43%trailing stop
449long2026-08-05 16:00 @ 64,366.472026-08-07 20:00 @ 64,919.912d 4h$12.53+0.73%time stop
450long2026-08-08 16:00 @ 65,062.412026-08-10 12:00 @ 64,546.561d 20h−$16.03-0.93%trailing stop
451short2026-08-10 16:00 @ 64,255.852026-08-12 12:00 @ 64,361.371d 20h−$3.92-0.23%trailing stop
452short2026-08-15 12:00 @ 62,980.402026-08-17 00:00 @ 63,437.771d 12h−$13.89-0.81%trailing stop
453long2026-08-18 16:00 @ 64,836.862026-08-19 04:00 @ 64,183.6512h−$19.04-1.11%trailing stop
454long2026-08-20 00:00 @ 69,323.962026-08-20 08:00 @ 69,921.408h$12.66+0.74%trailing stop
455long2026-08-22 00:00 @ 78,324.762026-08-23 04:00 @ 76,180.471d 4h−$49.19-2.88%trailing stop
456long2026-08-24 00:00 @ 77,734.542026-08-25 20:00 @ 77,974.891d 20h$2.59+0.15%trailing stop
457long2026-08-27 00:00 @ 79,005.202026-08-28 12:00 @ 78,586.521d 12h−$11.34-0.67%trailing stop
458long2026-08-31 08:00 @ 78,183.832026-08-31 20:00 @ 78,533.8912h$5.55+0.33%end of data

How this was run

Orders fill at the next bar’s open, never at the close that produced the signal. When one bar’s range covered both the stop and the target, the stop was taken, because the data cannot say which came first. Fees, slippage and funding are all charged.

Warmup history was loaded from before 2022-01-01 so the requested window is fully tradable.

← Browse other results