Burning Teko Auto Trading Companion: User Guide (5 automatic gold strategies for MT5)
Burning Teko Auto Trading Companion is an Expert Advisor for MetaTrader 5 that runs five automatic strategies on gold (XAUUSD) and also gives you a manual trading panel on the same chart. Each strategy can be switched on or off on its own and has its own settings. This guide covers version 1.17.
Product page: https://www.mql5.com/en/market/product/199885
Video tour (5 minutes): https://www.youtube.com/watch?v=8NzaRZ16ka8
Manual-only version (no automatic trading): https://www.mql5.com/en/market/product/197966
1. GETTING STARTED
1. Attach the EA to an XAUUSD chart on M15, or select it in the Strategy Tester (Ctrl+R) with "Every tick" modelling.
2. Allow Algo Trading in the terminal.
3. With the default inputs the panel is shown, the lot is 0.01 and only BB Break Out is ON. Market Break Out, RSI Stoch Reversal, MA Cross and Spike Trap are OFF until you turn them ON with their panel buttons or their "ON at start" inputs (in the Strategy Tester without Visual mode, use the inputs).
4. In the Strategy Tester enable Visual mode to see the panel. To run the automatic strategies without the panel, set the input "Show the trading panel on the chart" to false.
The EA is designed and tested on gold. All distances in the inputs are in points.
2. PANEL ON OR OFF
- Panel ON (default): you get the manual buttons, the position list and one row per strategy with an ON/OFF button and a Settings button. Settings opens a window where you can change the parameters of that strategy while the EA is running. Save applies them immediately.
- Panel OFF: only the automatic strategies run. They use the "Default lot" input, and each strategy starts ON or OFF according to its "ON at start" input.
Lot size: every strategy has its own lot input. 0 means "use the panel Lot Size" (or the Default lot when the panel is hidden).
3. STRATEGY 1: BB BREAK OUT
A trend-following entry on the Bollinger Bands.
- Trend filter: EMA 20 against SMA 200 on the chosen timeframe (default M15). In an uptrend the EA only buys, in a downtrend it only sells.
- Setup: the price moves beyond the Bollinger Band by a set distance (default 300 points).
- Entry: when the band curls back. If it has not curled within a set number of candles (default 20), the setup is cancelled.
- Stop loss: a fixed distance from the entry (default 3000 points). As an option the stop can be placed beyond the nearest Woodie pivot level plus a buffer; the fixed distance is then the minimum.
- Break-even: when the profit reaches the trigger distance (default 4000 points), the stop is moved to the entry plus a locked profit (default 2000 points).
- Take profit: a fixed distance from the entry (default 8000 points, 0 = none).
- Cooldown: after a losing trade, no new entry for a set number of candles (default 4).
4. STRATEGY 2: MARKET BREAK OUT
A range breakout. It has three independent ranges, each with its own enable switch:
- Asia: the high and low between the range start and end hours (default 00:00 to 07:00 server time).
- London: the range from the London open to the New York open (default 10:00 to 15:00 server time).
- Prev Day: yesterday's high and low.
By default only Prev Day is enabled. Asia and London can be enabled in the inputs.
There are two ways to enter, chosen with the input "Entry mode":
Candle close mode (default, modes 1 to 3). No pending orders are placed. The EA waits until a chart candle pierces the range by the buffer (default 300 points) and then looks at how a candle closes, for up to 3 candles:
- Close outside the range plus the buffer: a breakout. The EA enters in the direction of the break (mode 1 or 3).
- Close back inside the range: a false breakout. The EA enters in the opposite direction, with the stop loss beyond the tip of the spike (mode 2 or 3).
- Sides: both, BUY only (default) or SELL only.
- H4 RSI filter (default 60, 0 = off): a breakout BUY is only taken when the RSI of the last closed H4 candle is at or above this value; a breakout SELL only when it is at or below 100 minus this value.
Pending order mode (mode 0). A Buy Stop above and a Sell Stop below the range, or Stop Limit orders that enter on a small pullback. When one side is triggered, the opposite pending order is deleted. A pending order that has not been triggered by the Expiry hour is deleted.
For each range:
- Buffer: the distance from the range high and low (default 300 points).
- Minimum and maximum range: if the range is narrower than the minimum (default 1000 points) or wider than the maximum (0 = no limit), the day is skipped.
- Stop loss: at the nearest Woodie level beyond the entry (default), or a percentage of the range.
- Take profit: the range multiplied by a factor (default 0.5; 0 = none).
- Close by Time (default OFF): when ON, open positions are closed at the Close hour. When OFF, they exit by stop loss, take profit or trailing only.
- Trailing: starts when the profit reaches a percentage of the take profit distance and follows at a percentage of that distance (Prev Day: 40 and 40).
- At most one trade per range per day.
On the chart each enabled range is drawn as a box with its high and low lines in its own colour (Asia orange, London blue, previous day pale turquoise). If a day is skipped, the box is drawn in a dimmed colour and the reason is written next to it. The boxes of previous days are removed when a new day starts.
5. STRATEGY 3: RSI STOCH REVERSAL
A counter-trend entry on the H4 and D1 timeframes. Both timeframes are watched at the same time, whatever the chart timeframe is, and each has its own settings and its own position. The H4 settings are in the Settings window and in the inputs; the D1 settings are in the inputs.
- Setup: RSI and Stochastic %K of that timeframe are both overbought (for a sell) or both oversold (for a buy). The values are read live, without waiting for the candle to close. Sell and buy levels are separate inputs.
- Entry, method 1 (H4 default): %K crosses %D and reaches the entry level.
- Entry, method 2 (D1 default): the setup must also be present on the chart timeframe, and the entry is taken when the Bollinger Band of the chart timeframe turns.
- The setup expires after a set number of candles (default 20).
- Stop loss: beyond the highest or lowest price of the setup plus a buffer (default 1000 points on H4, 3000 on D1), or a fixed distance.
- Take profit: the opposite Bollinger Band on the chart timeframe. If the band cannot be used, the stop distance multiplied by a factor. A fixed distance is also possible. Optional trailing.
- Extra path: a separate setup for extreme readings (very high or very low %K together with RSI). The position is closed when the RSI of that timeframe returns to the middle (default 50). After a set profit the stop is moved into profit. The extra path is independent of the main path, so one main position and one extra position can be open on the same timeframe.
- Daily trend filter (per timeframe; ON by default for H4, OFF for D1): a buy is only taken while the D1 EMA 20 is above the D1 EMA 50, and a sell only while it is below.
- Defaults: D1 takes sell and buy setups. H4 takes buy setups only; the H4 sell side is switched off by its RSI level of 101. Set it back to a normal level (for example 77) to use it.
- A sound alert (3 times, 2 minutes apart) when a setup is confirmed.
6. STRATEGY 4: MA CROSS
A trend-following strategy with few, long trades.
- The EA watches a fast EMA (default 20) and a slow MA (default 200) on its own timeframe (default H4). It checks once, when a candle of that timeframe closes.
- Fast EMA crosses above the slow MA: buy. Fast EMA crosses back below: the buy is closed. With "BUY and SELL" selected, a cross below also opens a sell, which is closed at the next cross above.
- Stop loss: ATR(14) of that timeframe multiplied by a factor (default 3). There is no take profit.
- At most one position. A position can stay open for weeks or months, so check the swap of your account.
- Confirmation (default): after the cross, the EA waits until a candle of that timeframe closes above the highest high of the 30 candles before the cross (below the lowest low for a sell), for up to 12 candles. Without that close the cross is skipped.
- Defaults: BUY only, OFF at start. The ON/OFF button is on the panel; the other settings are in the inputs.
7. STRATEGY 5: SPIKE TRAP
A strategy for the fast moves when economic news comes out.
- The EA watches the 30 minutes after set local times (default 19:28, 20:28 and 20:58 WIB). While the US is on winter time these move one hour later, so they stay at the usual US data times.
- Speed mode (default): when the price moves at least 500 points within 2 seconds, the EA enters at market in the direction of the move. A stop-order mode (Buy Stop and Sell Stop around the price at the set time) is also available.
- Stop loss: 500 points. Take profit: the position is closed when the first M15 candle closes against it. An optional fixed take profit (points, 0 = none) and an optional trailing stop are available.
- Profit lock (default): once the profit has reached 1500 points, the position is closed if it falls back to 50% of the highest profit reached. Both numbers are inputs; set the points to 0 to turn it off.
- When a spike is caught, the EA can first delete all pending orders on the symbol (manual orders, Floating Hedge and other strategies) and then lock open positions on the other side with one hedge position. By default the hedge is released automatically only when the Spike Trap position hits its stop loss (the spike reversed). If the Spike Trap position closes in profit, you release the hedge by hand when the market is calm. Other options: always by hand, or whenever the Spike Trap position closes. In the Strategy Tester it is released when the Spike Trap position closes.
- At most one Spike Trap position at a time. News can fill orders far from the requested price.
- Default: OFF. The ON/OFF button is on the panel; the other settings are in the inputs.
8. THE MANUAL PANEL
The panel works the same way as in Burning Teko Trading Companion:
- Equity, floating P/L, server time and local time.
- Lot Size, SL, TP and FH Dist boxes with + and - buttons.
- BUY, SELL, HEDGE, BUY STOP, SELL STOP, BUY LIMIT, SELL LIMIT, Close Pending.
- Floating Hedge: a pending hedge order that follows the price each time you click it. A label next to the order shows the expected equity if it is touched (open positions, their SL/TP and other pending orders are taken into account).
- Trailing Stop, Close Buy, Close Sell, Close All, Delete SL/TP.
- A position list with a Close button on every position. The comment shows which strategy opened it.
A detailed description of every button is in the Trading Companion guide: https://www.mql5.com/en/blogs/post/776375
9. TRADING SUMMARY
The Info button opens a summary of the closed trades since the EA was started: trades, wins, losses, win rate and net P/L for each strategy and for manual trades.
10. CHART TOOLS
- MA 200, EMA 20 and Bollinger Bands on the chart, and an RSI + Stochastic window with 30 and 70 levels.
- Woodie Pivot Points drawn by the EA: P in blue, resistance in red, support in green, with a price label next to the current candle.
- Session range boxes for the enabled ranges (Asia, London, previous day).
- Session lines for the open and close of Tokyo, London and New York.
- Swing lines: the nearest swing high and swing low.
- Multi-timeframe table (M1 to D1) with RSI, Stochastic and trend.
Every tool can be switched off in the inputs. No extra indicator files are needed.
11. SESSION HOURS AND SERVER TIME
All hours in the inputs are broker SERVER time, except the Spike Trap times, which are in your local time. The automatic strategies use their own timeframes (M15 by default for the candle-based parts), so you can switch the chart to M1 for manual trading without changing how they trade. The defaults fit a server on GMT+3. If your broker uses another time zone, shift the Asia and London range hours, the expiry hours and the session line hours by the difference. In the Strategy Tester, set "Server time = GMT+" so the local clock on the panel is correct.
12. RISK CONTROLS
- Free margin is checked before every automatic order. If it is not enough, the trade is skipped.
- The lot is normalised to the broker's minimum, maximum and step.
- Every automatic trade has a stop loss.
- Stop loss changes respect the broker's stops level and freeze level, and no orders are sent while the trading session of the symbol is closed.
13. BACKTESTING TIPS
- Use "Every tick" or "Every tick based on real ticks" on XAUUSD M15.
- Visual mode with the panel ON lets you watch the setups and change settings during the test. Without Visual mode the EA skips all drawing and runs much faster.
- Optional Excel report: set "Create an Excel report when a backtest ends" to true. The file is written to a subfolder of the terminal's Common\Files folder.
- Test one strategy at a time first (switch the others OFF in the inputs) to see how each one behaves on your broker's data.
- With "Batch test" you can give each test a name; the Excel report is then written to its own file.
14. QUESTIONS AND ANSWERS
- I do not see the panel. Check that "Show the trading panel on the chart" is true. In the tester, Visual mode must be on.
- A range is drawn but no orders appear. In candle close mode there are no pending orders: the EA enters at the close of the candle that breaks the range, and only if the side and H4 RSI filters allow it. If the day was skipped, the reason is written next to the range.
- I do not see the Asia and London boxes. Those ranges are disabled by default; enable them in the inputs.
- The EA does not open a trade. Check that Algo Trading is allowed, that the strategy is ON, and that there is enough free margin for the lot.
- The session boxes are at the wrong hours. Adjust the hours to your broker's server time (section 11).
Risk warning: trading gold and other leveraged instruments involves a high risk of loss. This Expert Advisor does not guarantee any profit. Backtest results cover a limited period and do not guarantee future results. Test on a demo account first and only trade with money you can afford to lose.
Questions or feature requests? Leave a comment on the product page.


