· Version 5a479c96fc44
Hourly candle momentum · BTC
Educational strategy for historical backtesting of BTCUSDT on Binance spot. Makes one buy attempt on a rising hourly candle and checks when to close the position.
Backtest result
BTCUSDT · Binance · h1
Overview
How to read these metrics
- Return
- Change in equity over the run as a percentage of starting equity.
- Annualized return
- Compound annual growth rate of equity.
- Max drawdown
- Largest peak-to-trough decline in equity during the run.
- Trades
- Closed trades counted in the run statistics.
- Sharpe ratio
- Return relative to its variability, annualized from UTC daily returns in Studio.
- Starting equity
- Equity at the start of the run.
- Ending equity
- Equity at the end of the run as reported by Studio.
- Return
- -0.01%
- Annualized return
- -0.1%
- Max drawdown
- -0.01%
- Trades
- 1
- Sharpe ratio
- -3.72
- Starting equity
- 10,000
- Ending equity
- 9,999.17
Risk
How to read these metrics
- Annualized volatility
- Variability of UTC daily returns, annualized.
- Drawdown duration
- Longest time equity stayed below a previous peak.
- Sortino ratio
- Return relative to downside variability.
- Worst day
- Lowest return between two consecutive UTC day closes.
- Max exposure
- Largest share of equity exposed to the market in the run.
- Annualized volatility
- 0.03%
- Drawdown duration
- 0 days
- Sortino ratio
- -3.66
- Worst day
- -0.01%
- Max exposure
- 1.76%
Trades
How to read these metrics
- Trades
- Closed trades counted in the run statistics.
- Winning trades
- Percentage of closed trades with a positive result.
- Profit factor
- Gross profit divided by the absolute value of gross loss.
- Average win
- Average return of winning trades.
- Average loss
- Average return of losing trades.
- Expectancy per trade
- Average outcome per closed trade across winners and losers.
- Average trade duration
- Average elapsed time from trade entry to exit.
- Time in market
- Share of the run during which positions were open.
- Trades
- 1
- Winning trades
- 0%
- Profit factor
- 0
- Average win
- 0%
- Average loss
- -0.43%
- Expectancy per trade
- -0.43%
- Average trade duration
- 06:00:00
- Time in market
- 0.81%
By period
How to read these metrics
- Best month
- Month with the highest return in the Studio report.
- Worst month
- Month with the lowest return in the Studio report.
- Profitable months
- Months with a return strictly above zero. A flat month is not counted as profitable.
- Best quarter
- Highest quarterly return in the Studio summary.
- Best month
- February 2026 · 0%
- Worst month
- January 2026 · -0.01%
- Profitable months
- 0 / 2 · 0%
- Best quarter
- -0,01%
| Month | Return |
|---|---|
| -0.01% | |
| 0% |
Settings
How to read these metrics
- Exchange
- Exchange selected for the historical simulation.
- Market
- Market type used in the run, such as spot or futures.
- Symbol
- Trading pair or contract used for the simulation.
- Time frame
- Candle interval selected for this run.
- Start UTC
- Start of the historical period in UTC.
- End UTC
- End of the historical period in UTC.
- Fees in the run
- Total fees charged by the simulation.
- Studio run
- Identifier of the saved run that supplied these statistics.
- Exchange
- Binance
- Market
- Spot
- Symbol
- BTCUSDT
- Time frame
- h1
- Start UTC
- 2026-01-01T00:00:00Z
- End UTC
- 2026-02-01T00:00:00Z
- Fees in the run
- 0.35005828 USDT
- Studio run
- 12be7a28bf8c4272b576a0f915e828ee
How the strategy works
OnBar runs only in Backtest mode on hourly Binance Spot BTCUSDT candles. On the first rising candle with zero BTC balance, makes one market buy attempt of 0.002 BTC. Starting from the next candle, checks for holding six hours or closing 1% below the entry reference. After the condition triggers, sells no more than the actually available balance and the original limit, accounting for step size and minimum notional.
Limitations
Historical simulation only. In Paper and Live, the code does not place orders. One instrument, at most one entry attempt and one exit attempt, no leverage. The entry reference is the candle close, not the execution price. The exit is determined by closed candles and available balance, so a fixed price or execution moment is not guaranteed. If balance data or trading filters are unavailable, no exit order is sent.