Indicator Arrow Trader
- Experts
-
Allan Aparece Ninal
Desenvolvo indicadores e Expert Advisors para o MetaTrader 5.
Como trabalho:
- Cada indicador é verificado quanto a repintura: os sinais são decididos apenas em barras fechadas, e um teste tick a tick confirma que não mudam depois. - Versão: 1.0
Indicator Arrow Trader is an Expert Advisor for MetaTrader 5 that trades the buy and sell signals of an indicator you choose. You name the indicator file and the buffers it writes its signals to. The EA reads them on the closed bar and sends each order with a stop loss and a fixed 0.01 lot.
This EA promises no profit. It executes your indicator's signals, so the results depend on that indicator, the symbol and your settings. It is not a strategy with a proven edge. Test your setup in the Strategy Tester and on a demo account first.
Quick start
- Put your indicator's .ex5 file in the MQL5\Indicators folder (File > Open Data Folder). Its name is the one in the Navigator, for example MyArrows, or Examples\Fractals for one in a subfolder.
- Find its signal buffers: attach the indicator to a chart, open the Data Window (Ctrl+D) and point at a bar with an arrow. The values listed are its buffers, usually numbered from 0 in that order. The indicator's own description often lists them too.
- Attach the EA to the chart. Under Indicator 1 set the file name, the signal mode and the buffer numbers. Leave its inputs empty to use the indicator's own defaults.
- Check the panel: it shows the indicator's name, what is read and the side it shows now. "not loaded" means the name, the inputs or the buffer numbers need a look.
- Keep Algo Trading enabled. Test in the Strategy Tester and on a demo account first.
With no indicator named, the EA uses a built-in MACD (12, 26, 9) main and signal line cross as an example source, so it trades out of the box. That example is not a recommendation.
Signal modes
| Mode | A BUY is | A SELL is | Typical indicator |
|---|---|---|---|
| Arrows | a value in the buy buffer | a value in the sell buffer | arrow and dot indicators |
| Line cross | buffer A crosses above buffer B | buffer A crosses below buffer B | two moving averages, MACD and signal |
| Level cross | buffer A crosses above the level | buffer A crosses below the level | RSI over 50, an oscillator over 0 |
| Value | buffer A turns to the buy value | buffer A turns to the sell value | colour index buffers (0 up, 1 down) |
In Arrows mode an empty buffer holds 0 or EMPTY_VALUE. Both count as "no arrow".
When a signal counts
- Closed bar only: the EA reads bar 1, the last closed bar, once per new bar. An arrow that appears on the live bar and disappears again is never traded.
- Late signals: some indicators confirm a signal bars later. Fractals, for example, needs two bars after the fractal. Set "Bar to read" to 3 for such indicators.
- What it cannot fix: an indicator that changes bars that have already closed (repaints its history) will show signals on the chart that the EA never saw. Run it in the visual Strategy Tester first: the EA marks each signal it read with an arrow.
- From the start: the EA trades signals of bars that close after it starts. It does not trade an old arrow.
The trade
- Entry: at the open of the next bar. If the market is closed then, at the first tick after it opens on that bar.
- Stop loss: a multiple of ATR(14) of the signal bar (default 2.0), a number of points, or none.
- Take profit: a multiple of the stop distance (off by default), or points when there is no stop.
- Opposite signal: close and open the new side (default), close only, or keep the position.
- Size: 0.01 lot, or the broker's minimum if that is higher.
- One position per symbol and magic number. No grid, martingale or averaging. It never adds to a position. On a netting account a reversal is a close, then a new order, and a position opened by anything else on the symbol makes it wait.
- Orders too large for the account are skipped: a trade that could lose more than 10% of equity at its stop is not sent. Neither is one that would leave the margin level under 200% once its stop is hit. The lot is never raised to fit. This matters when the broker's minimum lot is above 0.01 on a small account.
- Checks before every order: trading allowed, volume step and limits, stop distance and free margin. An order the broker would refuse is skipped with one line in the Experts log. A risk guard also skips an order whose loss at the stop, or whose margin, is too large for the account (see below), and logs why.
The panel and the chart
- Panel, source: the indicator's name, what is read and its side now.
- Panel, trade: the last signal, signals today, the open position with its stop and profit, and the trading state.
- Chart: an arrow for each signal the EA read, a dashed entry line and dotted stop and target lines for the open trade.
- Themes: light and dark, follows the chart, with a colour-blind option.
Automatic trading or signals only
By default the EA trades. Set "Dry run: alert each signal, open no trades" to true to get each signal as a pop-up alert, a push notification on your phone, or both, and decide yourself. Dry run is off by default.
Your indicator's inputs
"Its inputs" lists the indicator's inputs in their order, separated by commas, for example 14, 2.5, true, "EURUSD". Whole numbers are passed as integers (enums too), numbers with a point as doubles, true/false as bools and anything else as text. Inputs after the last one you list keep their defaults. Leave it empty to use all defaults.
Tested
- Market validator's runs: EURUSD H1, XAUUSD D1, GBPUSD M30 and EURUSD M1 with 10,000, and XAUUSD H1 with 100, one year, default inputs. The first four traded. On XAUUSD H1 with 100 every order was too large for the account and was skipped. 0 error lines.
- Small accounts: EURUSD H1, GBPJPY H1, XAUUSD D1 and XAUUSD H1 with 100, 1,000 and 10,000, 2025-01 to 2026-10. 0 stop outs, 0 error lines. Every run traded except XAUUSD D1 with 100, where each order could have lost more than 10% of the account and was skipped.
- Reading: a test indicator printed its own closed-bar signals. The EA's signals matched them exactly in all four modes: 360 arrows with EMPTY_VALUE, 360 with 0.0, 118 crosses, 214 level crosses and 1,057 value changes.
- Repainting: the test indicator also painted arrows on the live bar that changed with the price. Over every tick, none of them was traded.
- Same signals on every tick and on 1-minute bars: 349 signals, identical.
- A wrong indicator name: live, one clear message and no trades. In the Strategy Tester, MetaTrader stops the test with "cannot load".
Questions
- Does it work with any indicator? With any indicator that writes its signals to buffers, which most arrow and line indicators do. An indicator that only draws chart objects (no buffers) cannot be read.
- Can it read a Market indicator? It uses the same call as for any other indicator, so it should, if the indicator is installed in this terminal and writes its signals to buffers. Its name is Market\Name, as in the Navigator. Check it in the Strategy Tester first.
- Will my indicator's results in the tester match live? Only if the indicator does not repaint closed bars. The EA reads closed bars the same way in both.
- What if the name is wrong? Live, the EA shows one message and "not loaded" on the panel, and trades nothing. In the Strategy Tester, MetaTrader 5 stops the test with "cannot load".
- Can it combine several indicators? This edition reads one. Pick the indicator you trust most, or use its own filters.
Custom work
Want an indicator for this EA, a custom version of it, or a new indicator or EA of your own? Order it through MQL5 Freelance and choose me as the developer: order through Freelance. Send your requirements, rules and the flow or algorithm you want. The whole order, payment and delivery stay inside MQL5 Freelance.
Reporting a bug or error
- In the inputs, set "Debug log for bug reports" to true.
- Leave the EA running until the problem happens.
- Open the Experts tab in the Toolbox, select the lines that start with "DBG", right-click and choose Copy (or choose Open to get the log folder).
- Send them as a comment on this product page, with the symbol, timeframe, EA version, your indicator's name and what you expected to happen.
The debug log never contains your login, name, server, balance or equity. Set it back to false afterwards. I answer only through the comments on this page.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
Related
| Product | What it adds |
|---|---|
| Repaint and Signal Scorecard | Check an indicator first: it tells you whether the indicator repaints and how its signals did on history, before you let this EA trade it. |
| Signal Trader | My free EA with five built-in signal sources, for when you have no indicator of your own. |
| EA Health Monitor | Watches running EAs on the account: stopped charts, disabled Algo Trading, errors. |
| Risk Position Tool | Plans a manual trade from the chart and gives the lot for your risk. |
If it helps your trading, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading involves risk of loss. Backtest results do not predict future results.
