Indicator Arrow Trader Pro MT4
- 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.1
- Aggiornato: 2 dicembre 2026
- Attivazioni: 10
Indicator Arrow Trader Pro MT4 is an Expert Advisor for MetaTrader 4 that trades the signals of up to three indicators you choose. They must agree. You name each indicator file and its signal buffers. It reads the closed bar, sizes the trade by a fixed lot or a risk percentage, and can use break-even and a trailing stop. Run the free edition in the Strategy Tester on your own indicator before you decide.
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.
What's new in 1.1
- Fixed: in the MetaTrader 4 Strategy Tester, on some symbols (seen on XAUEUR), the standard price call returned 0 for Ask and Bid. The pre-trade check added in 1.0 then skipped every order on those symbols with "no price yet". The EA now reads Ask and Bid with MarketInfo, the call MetaTrader 4 answers correctly. On symbols that worked before, the trades are the same as in 1.0.
In plain words
Many traders have an indicator they trust that draws arrows, crosses or colours. Watching it all day is tiring, and a late click can miss the entry. This EA watches the indicator for you.
An indicator keeps its numbers in buffers, lists of one value per bar. A buy arrow is just a value in one buffer. You tell the EA the indicator's file name and which buffers hold the signals.
On each new bar, the EA looks at the bar that has just closed. If the indicator gave a signal there, the EA opens a trade at the open of the next bar, with a stop loss.
With Pro you can name up to three indicators. A trade is opened only when they agree, for example an arrow from one and a trend check from another. Pro also sizes by risk, and can move the stop to break-even or trail it.
MetaTrader 4 edition: the same signal modes, panel and rules as the MetaTrader 5 version.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
What it does, step by step
- On the first tick of each new bar, the EA reads bar 1, the last closed bar, from your indicator's buffers.
- It decides whether that bar holds a signal, using the signal mode you chose: Arrows, Line cross, Level cross or Value.
- If more than one indicator is on, it checks that enough of them agree on the side. The rule is yours: all, at least two, or indicator 1 plus the others.
- If the signal is on the opposite side of an open position, the EA acts as you chose. By default it closes the position and opens the new side. It can also only close, or keep the position.
- It checks that trading is allowed, the volume fits, the stop is valid and there is free margin. A risk guard also skips an order that is too large for the account.
- It sends a market order at the open of the next bar, with a stop loss and the lot you set.
- One position per symbol and magic number stays open until the stop, the target, an opposite signal, the break-even or the trailing stop ends it.
On 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.
Worked example
With no indicator named, the EA uses a built-in MACD (12, 26, 9) as an example source. The mode is Line cross: the main line and the signal line.
- On a closed bar, the MACD main line crosses above its signal line. The EA reads this as a BUY.
- At the open of the next bar the EA buys. The stop loss is 2.0 x ATR(14) of the signal bar below the entry.
- If the main line later crosses below the signal line on a closed bar, the EA closes the buy and opens a sell.
The example is not a recommendation. It shows the sequence.
A real number from the checks, on a test copy with a 0.10 minimum lot: XAUUSD D1 on a 10,000 account. A 0.10 lot with a daily ATR stop could lose about 2,400, over 10% of the account. So the risk guard skipped the order.
Key facts
| Type | Expert Advisor for MetaTrader 4. It trades by itself unless dry run is on. |
| Source of signals | Up to three indicators you name. They must agree by your rule. The EA makes no signals of its own. |
| Lot size | A fixed lot (default 0.01) or a risk percentage of balance at the stop (default 1.0). If the risk comes to less than the broker's minimum lot, the trade is skipped. The lot is never raised. |
| Stop loss and target | Stop: 2.0 x ATR(14) of the signal bar by default, or points, or none. Take profit: off by default, or a multiple of the stop distance. Break-even and a trailing stop are optional and off by default. |
| When a signal counts | When its bar has closed. The EA reads the last closed bar, once per new bar. An arrow that appears on the live bar and disappears again is never traded. |
| Reload and timeframe change | After a reload or a timeframe change, the EA starts again and reads the indicator's side before the last bar. It trades only signals of bars that close after it starts. It does not trade an old arrow. |
| Trades | Yes, by default: one position per symbol and magic number. No grid, martingale or averaging. It never adds to a position. |
| Other products needed | None, besides the indicator you name. |
| Symbols and timeframes | Any symbol and timeframe where your indicator works. Checked on EURUSD H1, XAUUSD D1, GBPJPY H1 and XAUUSD H1. These checks test the EA, not any indicator's profit. |
Quick start
- Put your indicator's .ex4 file in the MQL4\Indicators folder (File > Open Data Folder). Its name is the one in the Navigator, for example MyArrows, or Downloads\MyArrows 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 AutoTrading 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.
Who it is for
For traders who want up to three of their own indicators to agree before a trade, with risk-based sizing, break-even and a trailing stop. It is not a strategy and not a signal provider: it makes no signals of its own and promises no profit. For one indicator at a fixed 0.01 lot, the free edition is enough.
How it works under the hood
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 repaints its history. It 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.
- Orders too large for the account are skipped: a trade that could lose over 10% of equity at its stop is not sent. That is the default maximum. 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. It 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 two conditions hold. 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.
Your indicator's inputs
"Its inputs" lists the indicator's inputs in their order, separated by commas, for example 14, 2.5, true. MetaTrader 4 can pass numbers and true/false only, up to 12 of them. Inputs after the last one you list keep their defaults, and text inputs always keep theirs. Leave it empty to use all defaults.
Reading an indicator, step by step
In Line cross and Level cross modes, the EA compares bar 1 with bar 2. A cross is a change of side between the two bars. In Value mode, a signal is a buffer that turns to the buy or sell value. In Arrows mode, a signal is a value in exactly one of the two buffers.
If both buffers hold a value on the same bar, there is no signal. When the EA starts, it looks back up to the lookback you set (default 50) bars to learn the indicator's current side.
Inputs
| Input | Default |
|---|---|
| Indicator 1: file name | empty - the built-in MACD (12, 26, 9) cross is used as an example |
| Indicator 1: its inputs | empty - the indicator's own defaults |
| Indicator 1: Signal mode | Arrows (or Line cross, Level cross, Value) |
| Indicator 1: Buy buffer (Arrows) / buffer A (other modes) | 0 |
| Indicator 1: Sell buffer (Arrows) / buffer B (Line cross) | 1 |
| Indicator 1: Level (Level cross) | 0 |
| Indicator 1: Buy value / sell value (Value mode) | 0 / 1 |
| Indicator 2 / 3: file name, inputs, mode, buffers, level, values | same inputs as indicator 1; indicator 2 and 3 are off |
| Use indicator 2 / indicator 3 | false / false |
| Agreement rule | all enabled indicators agree (or at least two, or indicator 1 signals and the others agree) |
| Arrow counts as the indicator's side for this many bars | 50 |
| Bar to read | 1 - the last closed bar; use 2 or 3 for indicators that confirm late |
| Stop loss | x ATR(14) of the signal bar (or points, or none) |
| Stop loss, x ATR(14) | 2.0 |
| Stop loss, points | 300 - used when the stop is in points |
| Take profit, x the stop distance | 0 - none |
| Take profit, points | 0 - none; used only when there is no stop |
| On an opposite signal | close and open the new side (or close only, or keep the position) |
| Magic number | 26112801 - ID of this EA's orders |
| Maximum slippage, points | 30 |
| Sizing | fixed lot (or risk percentage) |
| Fixed lot | 0.01 |
| Risk, % of balance at the stop | 1.0 |
| Skip a trade whose loss at the stop is over this % of equity | 10.0 |
| Break-even at a profit of x R, points beyond entry | 0 (off) / 0 |
| Trailing stop | off (or x ATR(14), or points) |
| Trailing starts at a profit of x R | 1.0 |
| Trailing distance, x ATR(14) / points | 2.0 / 300 |
| Maximum spread, points | 0 - off |
| Trade only in the hours below (server time) | false; from 8 to 20 |
| No new trades on Friday from this hour | 0 - off |
| Maximum new trades per day | 0 - off |
| Show the panel / mark signals and the open trade | true / true |
| Panel theme / colour-blind friendly colours | follows the chart / false |
| Dry run: alert each signal, open no trades | false - when on, no trade is opened; each signal is sent as an alert |
| Dry run: pop-up alert with sound | true - used only when dry run is on |
| Dry run: push to phone | true - needs your MetaQuotes ID; used only when dry run is on |
| Debug log for bug reports | false |
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 an alert. It can be a pop-up, a push notification on your phone, or both. You decide yourself. Dry run is off by default.
How it was checked
- Validator-style runs (MetaTrader 4): EURUSD H1, XAUUSD D1 and GBPJPY H1 with 10,000 and XAUUSD H1 with 100, one year, default inputs. EURUSD and GBPJPY traded; the gold runs were skipped by the risk guard. 0 error lines.
- Small accounts: the test copy's minimum lot is 0.10. EURUSD H1, GBPJPY H1, XAUUSD D1 and XAUUSD H1 with 100, 1,000 and 10,000: 0 stop outs and 0 error lines. With 100 every order was skipped. EURUSD and GBPJPY traded with 1,000 and 10,000, XAUUSD H1 with 10,000 only. XAUUSD D1 was skipped at every size: 0.10 lot with a daily ATR stop could lose about 2,400, over 10% of 10,000.
- Reading: a test indicator printed its own closed-bar signals. The EA's signals matched them exactly in all four modes. That was 360 arrows with EMPTY_VALUE, 360 with 0.0, 118 crosses, 214 level crosses and 1,057 value changes. Live-bar arrows were painted on every tick.
- A wrong indicator name: one clear message, no trades, no repeated errors.
- 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. These runs were on MetaTrader 5; the MT4 edition shares the code.
Not tested: every possible third-party indicator, and any trading profit. The checks test how the EA reads signals and handles orders, not whether an indicator is profitable.
Limits
- It trades what your indicator says. If the indicator repaints closed bars, the chart shows signals the EA never saw.
- An indicator that only draws chart objects, with no buffers, cannot be read.
- Some indicators confirm a signal bars later. Set Bar to read to 2 or 3 for them.
- It trades only signals of bars that close after it starts.
- The risk guard skips orders that are too large for the account. The lot is never raised to fit.
- A stop loss limits a loss but does not remove it. Gaps and slippage can make a loss larger.
- Keep AutoTrading enabled and the terminal running, or use a VPS.
FAQ
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 work, 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? The EA prints one message, the panel shows "not loaded" and nothing is traded.
Does it repaint? The EA does not. It reads closed bars only. If your indicator repaints closed bars, its chart history can differ from what the EA saw.
What happens if I reload the chart or change the timeframe? The EA starts again. It trades only signals of bars that close after that.
Can I run it on a VPS? Yes. It needs a running terminal with the chart open.
Try it first
The free Indicator Arrow Trader MT4 reads one indicator with a fixed 0.01 lot. Use it in the Strategy Tester in visual mode to see which signals the EA reads. Then run the Pro demo with your own indicator. A test shows the past, not what price does next.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| Repaint and Signal Scorecard Pro MT4 | Name your indicator and its buy and sell buffers in the scorecard first. | It checks whether the signals repaint and how they did on history, before you let this EA trade them. It places no trades. |
| Signal Trader Pro MT4 | Use it when you have no indicator of your own. | It has built-in signal sources, so no indicator file is needed. |
| EA Health Monitor Pro MT4 | Give the EA its own magic number in its inputs. Attach the monitor to one chart of the account. | It shows one row per magic number, so you can read this EA's trades on their own. |
| Prop Rules Monitor MT4 | Attach it to one chart of the account while the EA runs. | It shows your distance to a prop firm's limits. It only watches and never closes anything. |
Related products
- Indicator Arrow Trader Pro: the same Expert Advisor for MetaTrader 5.
- Indicator Arrow Trader MT4: the free edition: one indicator and a fixed 0.01 lot.
- All my products on MQL5
Custom work
Want an indicator for this EA, a custom version of it, several of my indicators or EAs combined into one, an EA that trades another indicator you use (mine or another developer's), 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.
Found a problem?
- 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.
If you find it useful, 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.
