Ultimate Bitcoin Artemis MT5
- エキスパート
-
Tuan Duyet Nguyen
Software Engineer at Meta Technology, building trading systems for MetaTrader 5. - バージョン: 1.0
- アクティベーション: 10
Ultimate Bitcoin Artemis MT5
Swing-pivot stop-order breakout Expert Advisor for BTCUSD with a stop loss on every trade. No martingale. No grid.
Main features
Swing highs and lows are levels where price often turned before. Artemis waits for price to come back through them instead of guessing direction: when its Relative Strength Index (RSI) and Average Directional Index (ADX) filter agree, it places a stop order exactly at the most recent confirmed pivot and lets the market trigger it.
- Clear entry rule: stop orders at confirmed swing pivots on the M30 timeframe, each pivot traded only once.
- Trend filter: no new orders while ADX is below 20; RSI decides whether a buy or sell setup is active.
- Stop loss and take profit on every order, set from the start; a trailing stop protects open profit.
- Risk-based lot size from your balance and risk %, rounded to your broker's volume step.
- Recovers its state after a terminal restart, so it does not re-trade the same pivot.
- No martingale, no grid, no averaging down, no external libraries (DLL) and no external services.
How it works
1. On each new M30 bar the Expert Advisor reads RSI (13) and ADX (14) of the last closed bar. If ADX is below 20, or RSI is below 10 or above 90, nothing is done.
2. Pullback setup (default): RSI below 40 prepares a buy, RSI above 60 prepares a sell. An optional momentum setup does the opposite (buy above 68, sell below 32).
3. The Expert Advisor finds the newest confirmed swing pivot in the last 120 bars (11 bars on the left, 4 on the right): a swing high for buys, a swing low for sells.
4. If price has not crossed the pivot yet and the pivot was not traded before, a buy stop or sell stop is placed at the pivot with a 330 USD stop loss and 1,330 USD take profit (BTC price distance).
5. After 33 USD of profit the stop trails 130 USD behind price.
6. Unfilled orders are deleted after 48 hours. At most 12 positions plus orders are active at once.
Recommendations
- Symbol: BTCUSD (any broker suffix). The Expert Advisor is designed and tested for Bitcoin only.
- Chart: any timeframe (signals use M30; backtests used an M15 chart).
- Account: hedging recommended. On a netting account fills share one position.
- Balance: 1,000 USD or more recommended at the default 3% risk. From 300 USD, use 1% risk (see the small-account backtests above).
- Terminal online 24/7 (a virtual private server is recommended), with Algo Trading enabled.
- A broker with low BTCUSD spread and commission, fast execution and stop orders allowed.
Quick start
1. Attach the Expert Advisor to a BTCUSD chart and enable Algo Trading.
2. Keep the default settings and choose your RiskPercent and MaxOpenTrades.
3. Run it on a demo account first and watch the Experts log.
Inputs
- Magic number: identifies the Expert Advisor's orders.
- Order comment prefix: stored in each order and read back after a restart. Do not change it while orders are open.
- Pullback setup on/off, buy below RSI, sell above RSI.
- Momentum setup on/off, buy above RSI, sell below RSI.
- RSI floor / RSI ceiling: signals outside this RSI range are ignored.
- Signal timeframe: timeframe for RSI, ADX and pivots (default M30).
- RSI period, ADX period, minimum ADX.
- Pivot left bars, right bars, lookback bars: how a swing pivot is confirmed and how far back to search.
- Stop loss, take profit, trail start, trail distance: in symbol points (on BTCUSD with 2 digits, 100 points = 1 USD).
- Pending order lifetime: hours before an unfilled order is deleted.
- Maximum open trades: positions plus pending orders.
- Scale distances on non-BTC symbols: keeps distances proportional to price if the Expert Advisor is attached to another symbol. No effect on BTCUSD.
- Size by balance risk on/off, risk per trade %, fixed lot, maximum lot.
- Diagnostics: optional CSV log of signals.
Support
Please contact me through MQL5 private messages or the Comments section of this product. A full user guide with all inputs and log messages is available on request.
Risks and limitations
These are backtests, not live trading results. Past performance does not guarantee future results. Trading Bitcoin involves a substantial risk of loss.
- Exposure: each order risks 3% of balance by default, and up to 12 positions plus pending orders can be open together. Combined risk can therefore be much larger than 3%. Reduce RiskPercent or MaxOpenTrades if this is too much for you.
- Compounding: because lots grow with the balance, money drawdowns grow too. In the main test the largest single loss was -6,332.92 USD.
- Execution sensitivity: the trailing stop starts after a small move and most trades last minutes, so spread, commission, slippage and execution speed matter. Results with generated ticks were clearly better than with real ticks.
- Designed for BTCUSD only. In testing the Expert Advisor was slightly negative on EURUSD (profit factor 0.98) and XAUUSD (profit factor 0.98). It can run on other symbols without errors, but this is not supported.
- If your balance is too small for the risk setting at your broker's minimum lot, the minimum lot is used and real risk per trade is higher than the input. On BTCUSD one 0.01 lot loses about 3.30 USD at the stop loss, so below about 330 USD every trade risks more than 1%. With 12 trades open together, the worst case at 0.01 lot is about 40 USD.
Please test on a demo account first.
