Plan a real indicator-to-EA conversion before coding. Map custom indicator buffers, `iCustom()` parameters, arrow values, repainting behavior, closed-candle timing, SL/TP rules, lot sizing, broker filters and QA tests into a developer-ready EA specification.
iCustom buffer mappingEMPTY_VALUE detectionRepaint riskEA order manager scope
Wrong buffer indexThe EA reads buffer 0 while the arrow is actually buffer 2 or 4. Data Window and source code must be checked together.
Wrong shiftReading shift 0 trades unconfirmed arrows; shift 1 waits for closed candle. This one setting can completely change results.
EMPTY_VALUE confusionMany indicators output 2147483647 or EMPTY_VALUE when there is no signal. The EA must ignore that value.
Repainting arrowsIf the arrow disappears historically, an EA cannot trade it as if it were a confirmed non-repainting signal.
Objects instead of buffersSome indicators draw arrows as chart objects only. `iCustom()` cannot read those like normal indicator buffers.
Parameter order mismatchThe `iCustom()` extern parameters must match the indicator inputs in exact order and type, or signals differ.
FAQ
Can any MT4 indicator be converted to an Expert Advisor?
Not always one-to-one. Buffer-based indicators are usually easiest. Repainting indicators, object-only indicators, protected EX4 files and indicators using external data may require recreation or manual engineering review.
What do I need to convert a custom indicator to an EA?
Best case: the MQ4 source, compiled EX4, indicator inputs, buy/sell buffer indexes, screenshots, preferred timeframe, SL/TP rules, lot sizing and desired entry timing.
What is iCustom in an MT4 EA?
iCustom is the MQL4 function an EA uses to read values from a compiled custom indicator. The EA must pass the indicator name, exact input parameters, buffer index and candle shift.
Why does my EA not read the same arrow I see on the chart?
Common causes are wrong buffer index, wrong shift, EMPTY_VALUE, current-candle repainting, source/EX4 mismatch, different input parameters or the indicator drawing chart objects instead of buffers.
Should the EA trade on shift 0 or shift 1?
For most serious conversions, shift 1 is safer because it waits for a closed candle. Shift 0 can enter earlier but may trade signals that disappear before candle close.
Can an indicator-only signal become a full EA with risk management?
Yes. The indicator becomes the signal source, while the EA adds lot sizing, stop loss, take profit, spread filter, session filter, daily loss rules, magic number and order error handling.
Continue Your Build
Turn the calculation into an EA
If the tool exposed a profitable or risky condition, convert it into a coded rule with testing and guardrails.
Final fixed quotes depend on the approved project scope. Existing agreements, the separate $30 source-code product and the $50 forecast engine are excluded. Cannot be combined with another discount.