Use any MetaTrader indicator in an EA, without coding
Build MT4/MT5 Expert Advisors on RSI, MACD, Ichimoku, Parabolic SAR, ADX, pivot points, Fibonacci, Donchian, Fractals, VWAP, OBV and every other standard indicator, with no MQL code.
Updated
Most trading rules start with an indicator: “RSI below 30”, “price above the 200 EMA”, “the Tenkan-sen crosses the Kijun-sen”. In QuantForge every indicator is an operand: something you compare, cross or watch rise and fall inside a block. This page lists what’s available and how to use it, with no MQL.
How indicators are used in blocks
Pick an indicator as an operand in any of these blocks:
- Condition (If A vs B): compare two values, for example
close > EMA(200)orADX(14) > 25. - Crossover (Above/Below): one value crosses another, for example
MACD main crosses above MACD signal. - Indicator Rising / Falling: the value went up (or down) on each of the last N closed bars.
- Indicator Within Range: the value is between a minimum and a maximum, for example
RSI(14) between 40 and 60. - Formula: combine values (A + B, A × B, minimum, maximum) and store the result in a variable.
Each operand has a period, a bar shift (0 = the current bar, 1 = the last closed bar) and a timeframe, so an M15 strategy can read an H1 or D1 indicator.
The indicators, by group
| Group | Indicators |
|---|---|
| Trend | SMA, EMA, SMMA, LWMA, DEMA, TEMA, AMA (Kaufman), VIDYA, FRAMA, Parabolic SAR, ADX with +DI and −DI, Wilder’s ADX, Alligator (jaw, teeth, lips), Ichimoku (Tenkan-sen, Kijun-sen, Senkou A and B), MACD main, signal and histogram |
| Oscillators | RSI, Stochastic %K and signal, CCI, Momentum, Williams’ %R, DeMarker, RVI and signal, Awesome Oscillator, Accelerator Oscillator, Bulls Power, Bears Power, TRIX |
| Volatility | ATR, standard deviation, Bollinger Bands, Envelopes, Keltner lower band |
| Market structure | Donchian channel (upper, middle, lower), pivot points (P, R1–R3, S1–S3), Fibonacci retracements (23.6%, 38.2%, 50%, 61.8%, 78.6%), Fractals (up and down), swing highs and lows, session VWAP |
| Volume | Tick volume and its average, Money Flow Index, On-Balance Volume, Accumulation/Distribution, Chaikin oscillator, Force Index |
| Price | Close, high, low, and fixed values or inputs |
Examples you can build in minutes
- Ichimoku trend entry: Condition
close > Senkou Aandclose > Senkou B, then CrossoverTenkan-sen crosses above Kijun-sen→ Buy. - Pivot point bounce: Condition
low < S1on the last closed bar andclose > S1→ Buy, stop below S2. - Donchian breakout (turtle style): Crossover
close crosses above Donchian upper (20)→ Buy, with a trailing stop. - Fibonacci pullback: Condition
close > EMA(200)on H4, then Indicator Within Rangeclose between Fib 61.8% and Fib 50%→ Buy. - Volume-confirmed trend: Indicator Rising
OBVover 3 bars andADX > 25before the entry.
Same numbers in the backtest and in MetaTrader
QuantForge’s backtester and the exported EA use the same definitions. Where MetaTrader has a built-in indicator, the EA calls it. Where MetaTrader 4 has none (DEMA, TEMA, VIDYA, FRAMA and the market-structure levels, for example), the EA calculates it with the formula the backtester uses. Indicators that need a finished bar (volume, VWAP, swing points, Fractals) read the last closed bar, so they never change after the fact.
Ready to try one? Build a robot step by step, or open a tested template and swap its indicator.
Frequently asked questions
Which indicators can I use in a QuantForge EA?
Every standard MetaTrader indicator (moving averages of all types, RSI, MACD, Stochastic, CCI, ADX, Parabolic SAR, Ichimoku, Alligator, Bollinger Bands, Envelopes, ATR, Momentum, Williams %R, DeMarker, RVI, Awesome and Accelerator, Bulls and Bears Power, MFI, OBV, A/D, Force Index and more), plus market-structure levels: Donchian channel, pivot points, Fibonacci retracements, Fractals, swing highs and lows and session VWAP.
MetaTrader 4 doesn't have DEMA, VIDYA or pivot points. Do they work in MT4?
Yes. When MetaTrader 4 has no built-in version, the exported EA calculates the indicator itself, with the same formula the QuantForge backtester uses, so the backtest and the EA agree.
Is there a ZigZag indicator?
There are swing highs and lows instead. MetaTrader's ZigZag repaints: its last point moves as new bars arrive, so a backtest on it looks better than live trading. A swing point in QuantForge only counts once the bars after it have confirmed it, and never changes afterwards.
Can I use a custom or purchased indicator?
Yes, with the Custom Indicator block, which reads any indicator in your MetaTrader Indicators folder through iCustom. QuantForge's backtester can't run third-party code, so test those EAs in MetaTrader's Strategy Tester.
Build your first EA today
The free plan includes three projects, backtests on H1 to D1 over a year, MQL4/MQL5 export and the converter.