Indicator Arrow Trader Pro
- Experts
-
Allan Aparece Ninal
Sviluppo indicatori ed Expert Advisor per MetaTrader 5.
Come lavoro:
- Ogni indicatore viene controllato contro il repainting: i segnali vengono decisi solo su barre chiuse, e un test su ogni tick conferma che non cambiano in seguito. - Versione: 1.0
- Attivazioni: 10
Indicator Arrow Trader Pro is an Expert Advisor for MetaTrader 5 that trades the buy and sell signals of up to three indicators you choose, when they agree. You name each indicator file and the buffers it writes its signals to. The EA reads them on the closed bar, sizes the trade by a fixed lot or a risk percentage, and manages it with break-even and a trailing stop.
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: a fixed lot, or a risk percentage of the balance at the stop. If that risk comes to less than the broker's minimum lot, the trade is skipped. The lot is never raised.
- 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 the maximum risk (default 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.
Agreement of up to three indicators
- Indicators 2 and 3 are optional. Each has its own file name, inputs, mode and buffers.
- Side of an indicator: in Line cross and Level cross mode, the side it is on now. In Arrows and Value mode, its latest signal within the last 50 bars (an input).
- Rule: all enabled indicators agree (default), at least two agree, or indicator 1 gives the signal and the others agree.
- Example: a BUY arrow from indicator 1 is traded only when MACD is above its signal line (indicator 2, Line cross) and RSI is above 50 (indicator 3, Level cross).
Management and filters
- Break-even at a profit you set, as a multiple of the first stop. Add a few points if you want.
- Trailing stop by ATR or points, starting at a profit you set. The stop only moves toward profit.
- Filters: maximum spread, trading hours (server time), no new trades on Friday after an hour, maximum trades per day.
The panel and the chart
- Panel, source: each 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. With a 0.2 lot on gold, as a broker's minimum lot can force, the D1 orders and the H1 orders on 1,000 were all skipped; H1 on 10,000 traded.
- 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".
- Pro features: with two indicators that must all agree, 252 signals were refused. A 1% risk sized lots from 0.13 to 0.41. Break-even and trailing moved stops 565 times. The hours and one-trade-a-day filters held on every trade, with 0 error lines.
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".
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 or as a LinkedIn message, 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 and on LinkedIn.
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 |
|---|---|
| Indicator Arrow Trader | The free edition: one indicator and a fixed 0.01 lot, with the same reading and checks. |
| Signal Trader Pro | The same management with five built-in signal sources and a news filter. |
| EA Health Monitor Pro | Watches running EAs and alerts when one stops, loses Algo Trading or reports errors. |
| Prop Rules Guard MT5 | Locks trading near a prop firm's daily and total loss limits. |
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.
