PennBTC
- エキスパート
- バージョン: 1.0
- アクティベーション: 8
PennBTC is a breakout Expert Advisor for MetaTrader 5 that trades Bitcoin (BTCUSD) exclusively. 16 independent strategies work together on a single chart and form a broadly diversified portfolio.
What makes it different
- Risk based on drawdown, not gut feeling: Every strategy is sized by its worst historical drawdown, not by fixed lots.
- A portfolio that works as one: All 16 strategies carry exactly the same share of the total risk.
- Calibrated to any account size: Where other bots round every position up to the minimum lot on small accounts and take on a multiple of the intended risk, PennBTC calibrates the portfolio precisely to your account and keeps it protected.
- Strictly selected: 16 out of 185 tested strategy variants passed the out-of-sample test, the real-tick check and the correlation check.
- No grid, no martingale: Every trade has a fixed stop loss from the very start.
- One setting is enough: Choose a risk level, drop the bot on the chart and start trading. No dozens of parameters, no set files, no fine-tuning: all the complexity lives inside the bot, not with you.
Concept
A single strategy usually fits only one particular market phase. Bitcoin, however, keeps switching between strong trends, fast breakouts and long sideways phases. That is why PennBTC spreads the risk across 16 strategies that work on different timeframes and with different settings.
- Each strategy has its own magic number, its own comment, its own timeframe and its own entry and exit values.
- All 16 strategies run on the same extensively tested breakout engine.
- The position size of each strategy is calculated so that all strategies contribute roughly equally to the total risk.
How the strategies were built
Each strategy was developed individually and only added to the portfolio after several checks.
- Optimization period (in-sample): 2019–2023
- Validation period (out-of-sample): 2024 to July 2026
- Price data and modelling: Optimized with Dukascopy M1 data, every strategy then re-checked with real ticks.
- Optimization target: Custom Max. Every result is rated on three metrics: number of trades, recovery factor and expected payoff, with the recovery factor weighted most. This filters out results based on a few lucky trades or too few trades, and a high expected payoff makes the strategies less sensitive to spread and slippage.
- Timeframes: D1, H8, H6 and H4
- Fine-tuning: For almost all strategies, break-even and the fake-breakout filter were optimized as well, and 2 strategies also use a trailing take profit.
Breakout variants
The strategies use different breakout widths:
- Wide: wide swings, fewer but stronger signals.
- Mid: a balanced number of signals.
- Narrow: tight swings, more frequent signals.
The diversification of the portfolio comes from combining timeframe and breakout width.
Selection criteria
Out of 185 tested strategy variants, 16 strategies passed every check. A strategy was rejected if it
- correlated too strongly with another remaining strategy,
- behaved clearly differently with real ticks than in the optimization, or
- did not convince in the out-of-sample test (2024 to July 2026).
The final mix: 6 × D1, 3 × H8, 4 × H6 and 3 × H4. H12 was tested as well, but not a single strategy passed every check there.
Risk allocation and correlation
The heart of PennBTC is the way the position size is calculated. Most bots work with fixed lots or a flat risk per trade. That says nothing about how deep a strategy can fall in a bad phase. PennBTC starts exactly there: with the worst drawdown each individual strategy has experienced in its history.
- Drawdown instead of risk per trade: For every strategy, its historical maximum drawdown is stored. From this, the bot calculates all lot sizes so that the maximum historical drawdown of the whole portfolio matches your risk level exactly. With 10,000 USD and risk setting "Low (10 %)", that is about 1,000 USD.
- Tuned to the whole portfolio: A purpose-built Risk Allocator calibrated these drawdown values for all 16 strategies together. Every strategy carries exactly the same share of the total risk: none dominates the portfolio, none just runs along.
- Low correlation: When building the portfolio, a correlation of about 0.6 at most between any two strategies was targeted. Because the strategies trade on different timeframes and with different breakout widths, their profits and losses mostly occur at different times. An example at Low: each of the 16 strategies has a maximum historical drawdown of about 1.75 % of the account on its own. If all of them reached their worst drawdown at the same time, that would be 28 %. Because this happens at different times, the maximum drawdown of the whole portfolio was historically only 10 %.
- Growing with you: The lot size adjusts continuously to your balance and the Bitcoin price. The risk in percent stays the same even if the price multiplies, and you never have to readjust anything.
Risk levels
All levels trade the same strategies. They differ only in position size. The percentage equals the maximum historical drawdown of the whole portfolio, i.e. the drawdown you should expect.
| Level | Expected drawdown (max. historical) |
|---|---|
| Low (default) | 10 % |
| Medium | 20 % |
| High | 30 % |
| Custom | freely selectable |
The lot size grows with the account. After a drawdown it is not reduced (OnlyUp), so the account recovers faster. If you prefer otherwise, you can switch this off in the settings.
Small accounts: calibrated automatically
With Bitcoin, even the smallest lot represents a noticeable amount. Many bots simply round positions that are too small up to the minimum lot and, on small accounts, take on a multiple of the intended risk. PennBTC deliberately takes a different approach: it calibrates the portfolio to your account size and opens only as many positions as your account can safely carry. This keeps the risk exactly where you set it, even on small accounts.
- Strategies that would still be too large for the current account size are kept in reserve instead of being rounded up.
- As the account grows, they join automatically, and the portfolio becomes more diversified with every step.
- The panel shows the balance at which the next strategy starts. This is for your safety: conventional bots open all trades immediately, even on small accounts, and take on a multiple of the intended risk.
Entry and exit
- Entry: The bot looks for significant highs and lows and places buy stop and sell stop orders just beyond them. A trade opens when the price breaks through these levels.
- Fake-breakout filter: If the first candle after entry on a second timeframe closes against the trade and beyond the entry price, the trade is closed immediately. This filters out false breakouts early.
- Stop loss and take profit: Every trade has a fixed SL and TP at the broker from the very start.
- Trailing stop: The SL follows the price as soon as the trade is in profit.
- Break-even: For 15 of 16 strategies, the SL is moved to the entry price once a certain profit is reached.
- Trailing take profit: For 2 strategies, the TP moves closer to the price when a trade runs against you. A small recovery then ends it with a small loss instead of the full SL.
- Distances that scale: All distances adjust automatically to the Bitcoin price. A strategy developed at lower prices works with correspondingly larger distances at higher prices.
Protection features
- News filter: Around the US jobs report (NFP), the bot removes open pending orders and closes open trades beforehand, then resumes trading afterwards. Filters for rate decisions and CPI can be switched on as well.
- Weekend: New orders are placed from Monday 00:00 to Friday 18:00 server time. On Fridays at 18:00, open pending orders are removed.
- Drawdown stop: Optionally, the bot closes all its trades when the account falls a set percentage below its peak, and stops trading until it is restarted.
- Margin protection: Two-stage and account-wide. All orders are placed exactly as in the backtest. Only when the price gets close to an order does the bot check, with the real margin at that moment, whether the margin level stays above 300 % after the order triggers. This automatically includes all open positions, including those of other EAs and symbols such as gold. If it is not enough, the order is removed before it triggers and only placed again once enough margin is free. As a safety net, an emergency brake also applies: if the margin level falls below 200 %, the bot removes all its pending orders until it has recovered. Open trades are never touched and lot sizes are never changed.
- Prop firm: Daily loss limit, equity floor, profit target and random variation of entries and exits can be set.
- No rounding up: See above, small accounts never trade with more risk than set.
- Symbol check: On a chart without BTC in its name, the bot does not start and shows a notice.
- No grid, no martingale: Every strategy has fixed stops; losses are never averaged down.
Settings
Deliberately few settings: everything else is built in and tested exactly the way it trades live.
| Group | Setting | Default | Meaning |
|---|---|---|---|
| Risk | Risk level | Low | Low, Medium, High or Custom |
| Risk | Custom risk in % | 10 | Only for Custom: expected drawdown in % |
| Risk | Increase lot only (OnlyUp) | on | Lot is not reduced after losses; off = lot follows the balance |
| Risk | ⚠ Force Run | off | All strategies trade immediately, even on small accounts. Dangerous: small lots are rounded up |
| Protection | Drawdown stop in % | 0 (off) | Closes everything at this distance from the peak |
| Protection | Margin protection | on | Check shortly before triggering (margin level afterwards at least 300 %) and emergency brake below 200 %; both limits adjustable |
| Prop firm | Daily loss limit in % | 0 (off) | Closes everything and pauses until the next day |
| Prop firm | Equity floor / profit target | 0 (off) | Closes everything and stops at this equity |
| Prop firm | Random variation in pips | 0 (off) | Entries and exits slightly varied |
| News | News filter | as stored | As stored, all on or off |
| Account | Magic base | 0 | 0 = fixed magic numbers; otherwise base + strategy no. |
| Account | Trade comment | empty | Own comment instead of strategy name |
| Display | Show panel / panel size | on / Medium | Small, Medium, Large or Extra large |
| Display | Only these strategies | empty (all) | e.g. 2,4,15 for individual strategies |
| Backtest | Backtest speed | ultra fast | Strategy tester only; live always every tick. Choose normal for a final verification run |
Recommended setup
- Chart: Open a BTCUSD chart of your broker (also with a suffix such as BTCUSD.a or BTCUSD-2) and drop the bot on it. The chart timeframe does not matter.
- Account: ECN or raw-spread account with low Bitcoin spreads recommended.
- Minimum deposit: 500 USD with Medium or High. Recommended: 3,000 USD with Low.
- Several Penn bots on one account: Explicitly supported. Every Penn bot is designed for a drawdown of up to 20 % per symbol, and the margin protection takes the orders of all bots on the account into account. So PennBTC, PennGold and other Penn bots can safely run side by side. Because they trade completely different markets, they rarely reach their drawdown at the same time, and the account benefits from the additional diversification. Up to 2–3 bots with 20 % drawdown each per account are recommended.
- VPS: Recommended for 24/7 operation.
- Permission: In MT5 under Tools → Options → Expert Advisors, allow the address https://www.worldtimeserver.com so the bot detects your broker’s time zone automatically.
Backtest results
For your own backtests we recommend Dukascopy price data, imported as a custom symbol in MetaTrader 5. The strategies were developed and validated with this data, so it delivers the most meaningful results. Some brokers’ Bitcoin price data deviates noticeably from it.
Risk disclaimer
Trading Bitcoin CFDs involves high risk, and a total loss of the capital invested is possible. Backtests show past results and are no guarantee of future profits. Your broker’s spreads, slippage and price data can change the results. Only invest money you can afford to lose, and test the bot on a demo account before going live.
