[Mine-PA] Inside bar breakout with trend

public
@djgambhir

BTCUSDT · 1d · 2021-12-272026-08-31 · 1,709 bars in 0.8ms

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

Net P&L
-28.12%
−$2,811.66
Max drawdown
-30.02%
Max run-up
+10.82%
Trades
88
33.0% win rate
Profit factor
0.53
2021-12-27drawdown · worst -30.02%2026-08-31
TrainingValidationOut-of-sample
SegmentPeriodReturnMax drawdownTradesWin rate
Training2022-01-012024-10-18-14.18%-16.46%5435%
Validation2024-10-182025-09-24-8.23%-9.42%1828%
Out-of-sample2025-09-242026-08-31-8.72%-8.92%1631%

Risk-adjusted

Sharpe
-0.97
Sortino
-1.27
Calmar
-0.23
Return ÷ max drawdown
-0.94
CAGR
-6.82%
Exposure
36.0%

Per trade

Expectancy
−$31.95 · -1.46%
Average win / loss
$108.82 / −$101.15
Payoff ratio
1.08
Largest win / loss
$396.48 / −$270.39
Longest losing streak(winning: 2)
9 trades

Drawdown over time

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

Costs and mechanics

Fees paid
−$191.94
Funding
−$106.53
Liquidations
0
Warmup bars(loaded before the start date)
49
Benchmark(buy and hold)
+54.91%

Monte Carlo

1,000 alternative histories, each 88 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-41.50%-28.88%-10.61%
Max drawdown-42.32%-31.60%-17.18%

99% of histories lost money, and 58% had a deeper drawdown than this run’s -30.02%. 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

88 trades

#SideEntryExitHeldP&LReturnClosed by
88short2026-08-17 00:00 @ 62,863.422026-08-18 00:00 @ 64,790.511d−$56.73-3.13%trailing stop
87short2026-07-24 00:00 @ 65,056.592026-07-27 00:00 @ 65,388.283d−$10.23-0.56%reverse
86short2026-07-09 00:00 @ 62,242.652026-07-15 00:00 @ 65,541.356d−$96.74-5.26%trailing stop
85short2026-06-18 00:00 @ 64,460.012026-07-01 00:00 @ 58,617.1213d$163.49+9.10%time stop
84short2026-06-10 00:00 @ 61,682.562026-06-14 00:00 @ 65,473.434d−$114.09-6.25%trailing stop
83long2026-05-21 00:00 @ 77,525.802026-05-23 00:00 @ 74,541.122d−$73.31-3.98%trailing stop
82long2026-05-02 00:00 @ 78,207.542026-05-15 00:00 @ 81,032.5913d$64.16+3.51%time stop
81short2026-03-22 00:00 @ 68,867.722026-04-04 00:00 @ 66,943.3913d$48.42+2.67%time stop
80short2026-03-07 00:00 @ 68,069.382026-03-13 00:00 @ 73,322.886d−$146.09-7.89%trailing stop
79short2026-02-28 00:00 @ 65,822.832026-03-04 00:00 @ 70,911.294d−$147.94-7.83%trailing stop
78short2026-01-26 00:00 @ 86,611.572026-01-28 00:00 @ 90,335.582d−$83.17-4.35%trailing stop
77short2025-12-15 00:00 @ 88,101.182025-12-28 00:00 @ 87,847.0713d$7.75+0.41%time stop
76short2025-11-17 00:00 @ 94,202.862025-11-28 00:00 @ 92,141.4211d$42.11+2.22%trailing stop
75long2025-10-27 00:00 @ 114,520.802025-10-30 00:00 @ 108,827.293d−$98.59-5.13%trailing stop
74short2025-10-17 00:00 @ 108,107.772025-10-26 00:00 @ 114,481.839d−$116.50-5.97%trailing stop
73long2025-10-06 00:00 @ 123,451.392025-10-10 00:00 @ 119,313.844d−$69.48-3.53%trailing stop
72short2025-08-25 00:00 @ 113,423.512025-09-07 00:00 @ 110,157.2313d$58.71+3.00%time stop
71long2025-08-14 00:00 @ 123,348.562025-08-14 00:00 @ 118,526.380m−$79.68-4.04%trailing stop
70long2025-07-28 00:00 @ 119,447.382025-08-01 00:00 @ 115,178.674d−$75.56-3.79%trailing stop
69long2025-07-14 00:00 @ 119,062.112025-07-15 00:00 @ 116,024.231d−$54.34-2.71%trailing stop
68long2025-06-30 00:00 @ 108,331.462025-07-13 00:00 @ 117,365.9213d$158.44+8.06%time stop
67long2025-06-17 00:00 @ 106,771.452025-06-21 00:00 @ 102,229.124d−$87.51-4.40%trailing stop
66long2025-06-08 00:00 @ 105,528.602025-06-13 00:00 @ 103,043.815d−$50.56-2.53%trailing stop
65short2025-04-16 00:00 @ 83,591.882025-04-22 00:00 @ 89,313.776d−$140.49-6.90%trailing stop
64short2025-04-07 00:00 @ 78,374.422025-04-11 00:00 @ 83,911.774d−$147.43-7.11%trailing stop
63short2025-03-10 00:00 @ 80,674.562025-03-23 00:00 @ 83,821.6613d−$81.64-3.90%time stop
62short2025-02-17 00:00 @ 96,047.792025-03-02 00:00 @ 86,024.9013d$214.54+10.52%time stop
61long2025-01-03 00:00 @ 96,986.992025-01-08 00:00 @ 93,639.835d−$76.41-3.71%trailing stop
60long2024-12-12 00:00 @ 101,135.522024-12-19 00:00 @ 98,329.477d−$64.47-3.11%trailing stop
59long2024-12-09 00:00 @ 101,220.342024-12-09 00:00 @ 94,833.460m−$136.42-6.47%trailing stop
58long2024-11-30 00:00 @ 97,535.702024-12-05 00:00 @ 94,098.175d−$86.10-4.04%trailing stop
57long2024-11-11 00:00 @ 80,425.982024-11-11 00:00 @ 82,031.610m$38.88+1.83%trailing stop
56long2024-10-28 00:00 @ 68,006.302024-11-03 00:00 @ 68,258.596d$1.17+0.06%trailing stop
55long2024-10-21 00:00 @ 69,034.002024-10-23 00:00 @ 66,023.302d−$97.54-4.55%trailing stop
54long2024-10-07 00:00 @ 62,801.762024-10-10 00:00 @ 59,757.783d−$108.61-5.00%trailing stop
53long2024-09-23 00:00 @ 63,571.212024-10-01 00:00 @ 61,023.538d−$93.15-4.24%trailing stop
52short2024-09-16 00:00 @ 59,088.682024-09-19 00:00 @ 62,567.873d−$132.47-5.94%trailing stop
51short2024-09-02 00:00 @ 57,256.652024-09-13 00:00 @ 59,339.0311d−$85.14-3.78%trailing stop
50long2024-08-24 00:00 @ 64,032.802024-08-27 00:00 @ 59,743.393d−$156.08-6.82%trailing stop
49short2024-08-12 00:00 @ 58,681.362024-08-23 00:00 @ 63,636.8211d−$201.25-8.60%trailing stop
48short2024-06-24 00:00 @ 63,182.262024-07-01 00:00 @ 63,425.947d−$6.18-0.26%trailing stop
47long2024-06-10 00:00 @ 69,681.032024-06-11 00:00 @ 66,645.281d−$106.87-4.51%trailing stop
46long2024-05-16 00:00 @ 66,188.642024-05-29 00:00 @ 68,426.7113d$69.91+2.97%time stop
45short2024-04-25 00:00 @ 64,237.152024-05-06 00:00 @ 64,679.3811d−$14.82-0.63%trailing stop
44long2024-03-25 00:00 @ 67,274.352024-04-07 00:00 @ 68,887.7213d$32.42+1.38%time stop
43long2024-03-11 00:00 @ 69,015.602024-03-15 00:00 @ 65,777.554d−$129.52-5.45%trailing stop
42long2024-03-04 00:00 @ 63,191.142024-03-04 00:00 @ 62,447.700m−$34.73-1.45%trailing stop
41long2024-02-08 00:00 @ 44,335.172024-02-21 00:00 @ 52,286.8413d$396.48+17.33%time stop
40short2024-01-15 00:00 @ 41,726.552024-01-27 00:00 @ 41,814.7612d$1.03+0.05%reverse
39long2023-12-14 00:00 @ 42,883.582023-12-27 00:00 @ 42,530.0913d−$36.07-1.57%time stop
38long2023-11-20 00:00 @ 37,383.282023-12-03 00:00 @ 39,427.2113d$112.90+4.98%time stop
37long2023-11-08 00:00 @ 35,413.582023-11-14 00:00 @ 35,283.136d−$18.18-0.80%trailing stop
36long2023-10-24 00:00 @ 33,080.612023-11-06 00:00 @ 35,018.4913d$119.95+5.35%time stop
35short2023-10-12 00:00 @ 26,859.132023-10-16 00:00 @ 27,145.234d−$25.40-1.13%reverse
34long2023-10-02 00:00 @ 27,987.002023-10-11 00:00 @ 26,891.479d−$92.78-4.08%trailing stop
33short2023-09-22 00:00 @ 26,547.292023-10-01 00:00 @ 27,571.539d−$90.08-3.93%trailing stop
32short2023-09-01 00:00 @ 25,922.812023-09-14 00:00 @ 26,215.1413d−$26.76-1.16%time stop
31short2023-08-14 00:00 @ 29,287.442023-08-17 00:00 @ 26,628.613d$204.80+9.10%trailing stop
30long2023-06-20 00:00 @ 26,833.972023-07-03 00:00 @ 30,606.5813d$295.34+13.57%time stop
29short2023-06-11 00:00 @ 25,821.432023-06-19 00:00 @ 27,059.568d−$104.80-4.76%trailing stop
28long2023-05-29 00:00 @ 28,061.412023-06-01 00:00 @ 27,195.663d−$72.11-3.25%reverse
27short2023-05-09 00:00 @ 27,654.272023-05-22 00:00 @ 26,738.1513d$74.46+3.38%time stop
26long2023-05-04 00:00 @ 29,024.202023-05-08 00:00 @ 27,373.554d−$131.42-5.88%trailing stop
25long2023-03-18 00:00 @ 27,389.382023-03-31 00:00 @ 28,009.4013d$43.76+1.97%time stop
24short2023-03-08 00:00 @ 22,182.662023-03-12 00:00 @ 21,711.534d$45.65+2.06%trailing stop
23short2023-03-04 00:00 @ 22,338.332023-03-06 00:00 @ 22,423.782d−$10.42-0.47%reverse
22long2023-01-21 00:00 @ 22,665.532023-02-03 00:00 @ 23,488.3013d$68.84+3.13%time stop
21long2023-01-17 00:00 @ 21,192.442023-01-20 00:00 @ 20,947.333d−$30.38-1.38%trailing stop
20long2023-01-09 00:00 @ 17,128.022023-01-12 00:00 @ 18,121.023d$122.63+5.64%trailing stop
19short2022-12-08 00:00 @ 16,824.632022-12-13 00:00 @ 17,671.375d−$112.41-5.10%trailing stop
18short2022-11-29 00:00 @ 16,201.362022-11-30 00:00 @ 17,203.971d−$140.23-6.26%trailing stop
17short2022-11-14 00:00 @ 16,318.042022-11-27 00:00 @ 16,452.4913d−$20.82-0.93%time stop
16long2022-10-26 00:00 @ 20,072.312022-11-08 00:00 @ 20,574.3813d$50.31+2.25%time stop
15short2022-10-11 00:00 @ 19,120.282022-10-14 00:00 @ 19,890.903d−$90.80-4.03%trailing stop
14short2022-10-03 00:00 @ 19,045.492022-10-04 00:00 @ 20,441.611d−$169.43-7.38%trailing stop
13short2022-09-22 00:00 @ 18,443.812022-09-27 00:00 @ 20,052.585d−$206.26-8.79%trailing stop
12short2022-08-27 00:00 @ 20,224.652022-09-09 00:00 @ 19,313.1613d$102.51+4.41%time stop
11short2022-07-11 00:00 @ 20,849.632022-07-18 00:00 @ 22,133.677d−$144.52-6.13%trailing stop
10short2022-06-19 00:00 @ 18,955.912022-07-02 00:00 @ 19,275.8513d−$40.07-1.69%time stop
9short2022-06-11 00:00 @ 29,071.882022-06-13 00:00 @ 26,513.532d$202.20+8.72%trailing stop
8short2022-05-19 00:00 @ 28,694.862022-05-30 00:00 @ 31,986.2211d−$270.39-11.34%trailing stop
7short2022-04-18 00:00 @ 39,641.172022-04-21 00:00 @ 42,316.313d−$166.05-6.84%trailing stop
6long2022-03-17 00:00 @ 41,114.122022-03-30 00:00 @ 47,409.0213d$349.01+14.92%time stop
5short2022-03-14 00:00 @ 37,735.452022-03-16 00:00 @ 41,348.442d−$231.18-9.64%trailing stop
4long2022-03-10 00:00 @ 41,947.892022-03-13 00:00 @ 38,041.593d−$230.60-9.39%trailing stop
3short2022-03-07 00:00 @ 38,393.422022-03-09 00:00 @ 42,130.102d−$246.53-9.80%trailing stop
2short2022-02-18 00:00 @ 40,483.702022-02-24 00:00 @ 40,267.396d$10.28+0.41%trailing stop
1short2022-01-08 00:00 @ 41,545.562022-01-21 00:00 @ 40,670.1913d$55.78+2.23%time stop

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