Block reference
Every block in the Strategy Builder with its settings, the export targets that can output it, and the blocks the Strategy Miner can use in a search.
The Strategy Builder has 119 blocks in 8 categories. This page lists all of them. The tables are generated from the Builder’s own block definitions, so they match the software.
- Settings are the fields on the block. A number setting shows its allowed range in parentheses. A choice setting shows its options.
- Exports to names the targets that can output the block. The targets are MT5, MT4, Pine, cTrader and Python. “All targets” means all 5. Exporting is a Pro feature.
- In the Miner shows how the Strategy Miner can use the block in a search. See Blocks the Miner can use.
- The code under a block name is its block ID. It is the name used inside saved designs.
- A Builder design shows a warning once it reaches 50 blocks. It is not a hard limit.
- The Nodes list in the Builder shows five of the categories: Utility, Indicators, Price / Info, Conditions and Actions. The blocks of Filters, Money Mgmt and Exit Strategy are not in that list. They are set in the Settings tab.

Categories
| Category | Blocks | Used by the Miner search |
|---|---|---|
| Utility | 2 | 0 |
| Indicators | 52 | 49 |
| Price / Info | 5 | 1 |
| Conditions | 10 | 7 |
| Filters | 21 | 7 |
| Actions | 15 | 0 |
| Money Mgmt | 7 | 0 |
| Exit Strategy | 7 | 0 |
| All categories | 119 | 64 |
Blocks the Miner can use
The Strategy Miner does not search with every block. A search draws from 52 parts, of which 6 are selected by default. It can also add 7 filters and 7 conditions to a candidate. Two of the parts, Consecutive Bars and MA Perfect Order, are conditions, so they also appear in the condition list below.
Search parts
| Block | Selected by default | Used as | Needs volume data |
|---|---|---|---|
Moving Average ma | Yes | A value that conditions compare | No |
RSI rsi | Yes | A value that conditions compare | No |
Bollinger Bands bb | Yes | A value that conditions compare | No |
MACD macd | Yes | A value that conditions compare | No |
Stochastic stochastic | Yes | A value that conditions compare | No |
Donchian Channel donchian | Yes | A value that conditions compare | No |
ATR atr | No | A value that conditions compare | No |
Std Deviation stddev | No | A value that conditions compare | No |
Williams %R williams_r | No | A value that conditions compare | No |
CCI cci | No | A value that conditions compare | No |
Momentum momentum | No | A value that conditions compare | No |
ROC roc | No | A value that conditions compare | No |
DPO dpo | No | A value that conditions compare | No |
TRIX trix | No | A value that conditions compare | No |
DeMarker demarker | No | A value that conditions compare | No |
ADX adx | No | A value that conditions compare | No |
ADX Wilder adx_wilder | No | A value that conditions compare | No |
RVI rvi | No | A value that conditions compare | No |
Ultimate Oscillator ultimate | No | A value that conditions compare | No |
OsMA osma | No | A value that conditions compare | No |
Awesome Osc awesome | No | A value that conditions compare | No |
Accelerator Osc accelerator | No | A value that conditions compare | No |
Bears Power bears_power | No | A value that conditions compare | No |
Bulls Power bulls_power | No | A value that conditions compare | No |
Parabolic SAR sar | No | A value that conditions compare | No |
Heiken Ashi heiken_ashi | No | A value that conditions compare | No |
DEMA dema | No | A value that conditions compare | No |
TEMA tema | No | A value that conditions compare | No |
Hull MA hma | No | A value that conditions compare | No |
Envelope envelope | No | A value that conditions compare | No |
Keltner Channel keltner | No | A value that conditions compare | No |
Adaptive MA ama | No | A value that conditions compare | No |
FrAMA frama | No | A value that conditions compare | No |
VIDyA vidya | No | A value that conditions compare | No |
Consecutive Bars consecutive_bars | No | A condition | No |
MA Perfect Order ma_perfect_order | No | A condition | No |
Ichimoku ichimoku | No | A value that conditions compare | No |
Alligator alligator | No | A value that conditions compare | No |
Gator Osc gator | No | A value that conditions compare | No |
OHLC ohlc | No | A value that conditions compare | No |
Supertrend supertrend | No | A value that conditions compare | No |
QQE qqe | No | A value that conditions compare | No |
VLDMI vldmi | No | A value that conditions compare | No |
Opening Range Breakout session_orb | No | A value that conditions compare | No |
OBV obv | No | A value that conditions compare | Yes |
Volumes volumes | No | A value that conditions compare | Yes |
Accum/Distrib ad | No | A value that conditions compare | Yes |
BW Market Facil bwmfi | No | A value that conditions compare | Yes |
Money Flow Index mfi | No | A value that conditions compare | Yes |
Force Index force_index | No | A value that conditions compare | Yes |
Chaikin Osc chaikin | No | A value that conditions compare | Yes |
VWAP vwap | No | A value that conditions compare | Yes |
Filters and conditions
Search filters
| Block | What it does |
|---|---|
Time Filter time_filter | Trading time restriction |
Session Filter session_filter | Trading session filter with a selectable time basis (server time or UTC). Use Session (auto DST) for windows that follow daylight saving. |
Weekday Filter weekday_filter | Allow trading on specific weekdays only |
Gotobi Filter gotobi_filter | Trade only on Gotobi days (5th,10th,15th,20th,25th,month-end). Ideal for Nakane trade. |
High-Low Range Filter hl_range_filter | Skip entry when the N-bar high-low range is out of range (filters volatile/quiet markets) |
Candle Pattern Filter candle_pattern | Skip entries unless the last closed bar is a pin bar / engulfing (price-action rejection reversal) |
MA Distance Filter ma_distance | Blocks entry when the price-to-MA distance (pips) is out of range (pullback / over-extension filter) |
Search conditions
| Block | What it does |
|---|---|
Cross cross | Crossover / Crossunder detection |
Compare compare | Compare two values (>, <, ==, !=, >=, <=) |
AND Gate and_gate | Pass only when all conditions are true |
OR Gate or_gate | Pass when any condition is true |
NOT Gate not_gate | Invert condition (NOT) |
Consecutive Bars consecutive_bars | Checks whether the last N closed bars moved in the same direction (up/down). Composable with other conditions via AND/OR |
MA Perfect Order ma_perfect_order | Checks whether multiple MAs are aligned in period order (perfect order). Composable with other conditions via AND/OR |
Why a block is not exported
MT5 can output every block. The other targets cannot always do the same. When a design contains a block that the chosen target cannot output, the Builder says so. It does not leave the block out. The table below lists each reason, the targets it applies to, and what triggers it.
| Target | Why a block is not exported | Applies to |
|---|---|---|
| MT4, Pine, cTrader, Python | Multi-symbol flows (a symbol on a part, or a target_symbols pair loop) are MT5 only; the MT4 export handles the single chart symbol | Any block with its own symbol set, or a flow that loops over a list of symbols |
| Pine, cTrader, Python | Parts that decide in the middle of a bar (every tick) are MT5/MT4 only; every other target decides at bar close and fills at the next bar open | Cooldown Filter, Time Exit, Profit Pips Close, Basket Money Close, Virtual/Hidden SL/TP, Pyramiding, Averaging Down, Basket Break Even, Close All, Account Guard |
| Pine, cTrader, Python | Calling an external MetaTrader indicator (.ex5/.ex4) by name is MetaTrader only | iCustom |
| Pine, Python | The measured spread is not part of the candle data on this target | Spread Filter; Price block set to Spread |
| Pine, Python | Free margin depends on the broker margin model and cannot be reproduced on this target | Account Info block set to Free Margin |
| Pine, cTrader, Python | Settings that rely on the MetaTrader account model (hedging control, account/broker restriction) are MetaTrader only | The hedging control, cashback hedge and account restriction settings |
| Pine | A part that reads the forming bar (shift 0) cannot be expressed in Pine (it decides at bar close). Use shift 1 or more | Indicator blocks and the OHLC block when the shift is 0 (the bar that is still forming) |
| Python | A part that reads the forming bar (shift 0) cannot be expressed in Python (it decides at bar close and fills at the next bar open). Use shift 1 or more | Indicator blocks and the OHLC block when the shift is 0 (the bar that is still forming) |
| Python | This target has no popup/push/email notification channel | Alert |
| cTrader | A part that reads another timeframe is not exported to this target: how the higher-timeframe bar index maps is not confirmed in the official docs | Multi Timeframe |
| cTrader | Parabolic SAR: the MT start-up state (initial direction and extreme point) is not verified against cTrader, so identical values are not guaranteed and it is not exported | Parabolic SAR |
| Python | The Python exporter does not cover this part yet (only parts whose trades were checked against the in-house validator are exported) | The other 83 blocks, apart from the ones above. In all, 96 of the 119 blocks are not exported to Python, and 23 are (see the Exports to column above) |
Some refusals depend on a setting value, not on the block itself. For example, an indicator block can be exported to Pine when its shift is 1 or more, but not when the shift is 0.
All blocks
Utility
2 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Start start | OnTick — Entry point executed every tick | None | All targets | — |
Multi Timeframe multi_tf | Reference indicator values from higher timeframes | Indicator (12 options); Timeframe (M5 / M15 / M30 / H1 / H4 / D1 / W1 / MN1); Symbol (blank = current chart); Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Band (Main / Upper / Lower); Line (Tenkan-sen / Kijun-sen / Senkou Span A / Senkou Span B / Chikou Span); Variable Name | MT5, MT4, Pine | — |
Indicators
52 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Moving Average ma | Moving Average (SMA/EMA/SMMA/LWMA) | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Slope output (Off (MA value) / On (slope in pips vs N bars ago)); Slope lookback bars (1–500); Symbol (blank = current chart) | All targets | Search part (default) |
RSI rsi | Relative Strength Index | Period (1–999); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
Bollinger Bands bb | Bollinger Bands (Upper/Main/Lower) | Period (1–999); Deviation (0.1–10); Band (Upper / Main / Lower); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
MACD macd | MACD (Main/Signal) | Fast EMA (1–999); Slow EMA (1–999); Signal Period (1–999); Line (Main / Signal); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
ATR atr | Average True Range | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Ichimoku ichimoku | Ichimoku Kinko Hyo (Tenkan/Kijun/Senkou A/B/Chikou) | Tenkan Period (1–999); Kijun Period (1–999); Senkou Span B Period (1–999); Line (Tenkan-sen / Kijun-sen / Senkou Span A / Senkou Span B / Chikou Span); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Donchian Channel donchian | Highest high / lowest low of the last N bars - for breakout and swing-level conditions | Period (1–999); Band (Upper / Lower); Shift (0–100); Timeframe (10 options); Variable Name | All targets | Search part (default) |
Opening Range Breakout session_orb | Freezes the high/low of the first N bars from a given time as a range, then reports a break of it as +1 (up) / -1 (down) / 0 (none) | Range start (minutes from 00:00) (0–1,439); Range bars (1–100); GMT offset (hours) (-12–14); Min break distance (pips, 0 = touch the edge) (0–10,000); Max break distance (pips, 0 = no cap) (0–10,000); First break of the day only (Yes / No); Shift (0–100); Timeframe (10 options); Variable Name | MT5, MT4, Pine, cTrader | Search part |
Heiken Ashi heiken_ashi | Heiken Ashi candle close/open - detect trend by candle color flip | Line (HA Close / HA Open); Shift (0–100); Timeframe (10 options); Variable Name | MT5, MT4, Pine, cTrader | Search part |
ADX adx | ADX — Trend Strength (Main/+DI/-DI) | Period (1–999); Line (ADX Main / +DI / -DI); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
CCI cci | Commodity Channel Index | Period (1–999); Applied Price (Typical / Close / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Parabolic SAR sar | Parabolic SAR — Trend-following stop | Step (0.001–1); Maximum (0.01–5); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine | Search part |
Stochastic stochastic | Stochastic Oscillator (%K/%D) | %K Period (1–999); %D Period (1–999); Slowing (1–999); Line (%K (Main) / %D (Signal)); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
Williams %R williams_r | Williams %R — Overbought/oversold oscillator (-100~0) | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Momentum momentum | Momentum — Rate of price change | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
OBV obv | On Balance Volume — Cumulative volume indicator | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
DeMarker demarker | DeMarker — Trend exhaustion detection (0~1) | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Alligator alligator | Bill Williams Alligator — Jaw/Teeth/Lips 3 lines | Jaw Period (1–999); Jaw Shift (0–100); Teeth Period (1–999); Teeth Shift (0–100); Lips Period (1–999); Lips Shift (0–100); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Line (Jaw (13) / Teeth (8) / Lips (5)); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Bears Power bears_power | Bears Power — Selling pressure strength | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Bulls Power bulls_power | Bulls Power — Buying pressure strength | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Force Index force_index | Force Index — Price change x Volume | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Envelope envelope | MA Envelope — Upper/Lower bands around moving average | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Deviation (%) (0.01–10); Band (Upper / Lower); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
RVI rvi | Relative Vigor Index — Trend strength (Main/Signal) | Period (1–999); Line (Main / Signal); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
DEMA dema | Double Exponential MA — a moving average with reduced lag | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
TEMA tema | Triple Exponential MA — even less lag than DEMA | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Adaptive MA ama | Kaufman Adaptive MA — smoothing adapts to volatility | Period (1–999); Fast EMA (1–999); Slow EMA (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
FrAMA frama | Fractal Adaptive MA — smoothing driven by fractal dimension | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
VIDyA vidya | Variable Index Dynamic Average — a CMO-driven adaptive MA | CMO Period (1–999); EMA Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Std Deviation stddev | Standard Deviation — how far price spreads from its average | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Awesome Osc awesome | Awesome Oscillator — momentum from the 5/34 SMA difference | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Accelerator Osc accelerator | Accelerator Oscillator — the acceleration of AO | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Supertrend supertrend | Supertrend — trend direction from an ATR-width trailing band | Period (1–999); ATR factor (0.1–100); Warmup bars (50–5,000); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
VLDMI vldmi | Variable-period RSI — stretches the RSI period by the ATR ratio and fades sharp drops or spikes | Base RSI period (1–999); Short ATR period (1–999); Period shift steps (0–50); Oversold level (0–100); Overbought level (0–100); Min RSI change (0–100); Bars to measure the change (1–500); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Persistence Ratio persistence | Direction-agreement ratio — how often the last N bars moved the same way as the bar before them | Bars to judge (N) (1–500); Threshold ratio (0–1); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Hull MA hma | Hull MA — recombines two LWMAs so the line keeps up with price instead of trailing it | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
QQE qqe | QQE — trails a one-way band around a smoothed RSI and reports which side it broke | Period (1–999); RSI smoothing (1–200); Band factor (0.1–100); Warm-up bars (50–5,000); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
VWAP vwap | VWAP — volume-weighted average price accumulated from an anchor (the day boundary by default). The bands are multiples of the weighted standard deviation. | Line (VWAP itself / Upper band (+Mult σ) / Lower band (−Mult σ)); Band multiple (0.1–10); Anchor time (minutes from midnight, 0 = daily) (0–1,439); GMT offset (hours) (-12–14); Lookback cap (bars) (1–5,000); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
ADX Wilder adx_wilder | ADX Wilder — trend strength using Wilder’s original smoothing (Main / +DI / −DI) | Period (1–999); Line (ADX Main / +DI / -DI); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Keltner Channel keltner | Keltner Channel — a moving average with bands at a multiple of ATR (Upper / Main / Lower) | Period (1–999); ATR period (1–999); ATR multiplier (0.1–100); Band (Upper / Main / Lower); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
ROC roc | Rate of Change — the percentage change from N bars ago | Period (1–999); Denominator (the price N bars ago (textbook) / the current price (as bundled with MT5)); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Ultimate Oscillator ultimate | Ultimate Oscillator — buying pressure over three periods, blended 4:2:1 | Fast period (1–999); Middle period (1–999); Slow period (1–999); Fast weight (0–100); Middle weight (0–100); Slow weight (0–100); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
DPO dpo | Detrended Price Oscillator — strips the trend out and leaves the cycle | Period (1–999); Formula (shift the price (textbook) / halve the period (as bundled with MT5)); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
OsMA osma | Difference between the MACD line and its signal (histogram) | Fast EMA (1–999); Slow EMA (1–999); Signal Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
TRIX trix | Rate of change of a triple-smoothed EMA — momentum without the noise | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Chaikin Osc chaikin | Chaikin Oscillator — money flow that includes volume | Fast EMA (1–999); Slow EMA (1–999); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Money Flow Index mfi | Money Flow Index — an RSI that includes volume (0-100) | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Volumes volumes | Tick volume — how active the bar was | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Accum/Distrib ad | A/D line — cumulative buying and selling pressure | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
BW Market Facil bwmfi | Bill Williams Market Facilitation Index — range per unit of volume | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Gator Osc gator | Gator Oscillator — the spread between the three Alligator lines | Jaw Period (1–999); Jaw Shift (0–100); Teeth Period (1–999); Teeth Shift (0–100); Lips Period (1–999); Lips Shift (0–100); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Line (Upper (top histogram) / Lower (bottom histogram)); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Fractals fractals | Bill Williams Fractals — the most recent confirmed swing high/low | Line (Upper (swing high = resistance) / Lower (swing low = support)); Search bars (1–500); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
iCustom icustom | Get custom indicator values | Indicator Name; Parameters; Buffer Index (0–20); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4 | — |
Price / Info
5 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Current Price price | Ask/Bid/Spread | Price Type (Bid / Ask / Spread); Variable Name; Symbol (blank = current chart) | All targets | — |
OHLC ohlc | Candlestick Open/High/Low/Close | OHLC (Close / Open / High / Low); Bar Shift (0–1,000); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part |
Time Info time_info | Time information (Hour/Minute/DayOfWeek) | Time Type (Hour / Minute / Day of Week (0=Sun) / Day); Variable Name | MT5, MT4, Pine, cTrader | — |
Account Info account_info | Account info (Balance/Equity/Profit) | Info Type (Balance / Equity / Floating P/L / Free Margin); Variable Name | MT5, MT4, Pine, cTrader | — |
Constant constant | Output a fixed value | Value (-999,999–999,999); Variable Name | All targets | — |
Conditions
10 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Compare compare | Compare two values (>, <, ==, !=, >=, <=) | Operator (> (greater than) / < (less than) / >= (greater or equal) / <= (less or equal) / == (equal) / != (not equal)); Offset (pips) | All targets | Search condition |
Cross cross | Crossover / Crossunder detection | Cross Type (Crossover (cross above) / Crossunder (cross below)) | All targets | Search condition |
MA Perfect Order ma_perfect_order | Checks whether multiple MAs are aligned in period order (perfect order). Composable with other conditions via AND/OR | Alignment direction (Bullish (fast > slow) / Bearish (fast < slow) / Either alignment) | MT5, MT4, Pine, cTrader | Search part, Search condition |
Consecutive Bars consecutive_bars | Checks whether the last N closed bars moved in the same direction (up/down). Composable with other conditions via AND/OR | Criterion (Close stepping up/down / Candle body (bullish/bearish)); Direction (Up (bullish / stepping up) / Down (bearish / stepping down)); Consecutive bars (N) (1–20) | MT5, MT4, Pine, cTrader | Search part, Search condition |
RSI Divergence rsi_divergence | Detects regular divergence between RSI and price. Connect an RSI node (shift=1) | Direction (Bullish (new low x rising RSI) / Bearish (new high x falling RSI)); Extreme level (bullish=oversold / bearish=overbought) (1–99); Pivot validity (bars) (1–500); Fire band (RSI distance from level) (0–50) | MT5, MT4, Pine, cTrader | — |
AND Gate and_gate | Pass only when all conditions are true | None | All targets | Search condition |
OR Gate or_gate | Pass when any condition is true | None | MT5, MT4, Pine, cTrader | Search condition |
NOT Gate not_gate | Invert condition (NOT) | None | All targets | Search condition |
Signal Latch signal_latch | Fires once, then stays silent until the reset condition occurs | Re-arm when (The reset condition (input 2) is true / This EA has no open positions) | MT5, MT4, Pine, cTrader | — |
Math Operations math_op | Arithmetic on two inputs | Operation (+ (add) / - (subtract) / × (multiply) / ÷ (divide)); Variable Name | MT5, MT4, Pine, cTrader | — |
Filters
21 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Time Filter time_filter | Trading time restriction | Start Hour (0–23); End Hour (0–23); Time basis (Server time / UTC) | All targets | Search filter |
Spread Filter spread_filter | Maximum spread filter | Max Spread (points) (1–1,000) | MT5, MT4, cTrader | — |
Position Filter position_filter | Maximum position count limit | Max Positions (1–100) | All targets | — |
Session (auto DST) tz_session_filter | Gate by market session with automatic daylight-saving adjustment | Market (London / New York / Tokyo); Auto daylight-saving (Yes / No); Broker GMT offset (winter) (-12–14) | MT5, MT4, Pine, cTrader | — |
Holiday Filter holiday_filter | Halt new orders on holidays and year-end | Region (Major (New Year/Christmas) / United States / United Kingdom / Europe / Japan); Also halt year-end (12/24-1/2) (Yes / No); Extra holidays (MM.DD, comma-separated) | MT5, MT4, Pine, cTrader | — |
High-Low Range Filter hl_range_filter | Skip entry when the N-bar high-low range is out of range (filters volatile/quiet markets) | High/Low Bars (1–500); Max pips (0=off) (0–100,000); Min pips (0=off) (0–100,000) | MT5, MT4, Pine, cTrader | Search filter |
Range Size Filter range_size_filter | Blocks entry unless the last closed bar's body is at least N times the recent average body (expansion-bar gate) | Avg body lookback bars (1–500); Multiplier (body >= avg x this) (0.1–100) | MT5, MT4, Pine, cTrader | — |
Days of Month Filter days_of_month_filter | Trade only on the listed calendar days (comma-separated 1-31), e.g. 24,25,26,27,28,29 for the month-end week | Allowed days (comma-separated 1-31); Time basis (Server time / UTC) | MT5, MT4, Pine, cTrader | — |
Candle Pattern Filter candle_pattern | Skip entries unless the last closed bar is a pin bar / engulfing (price-action rejection reversal) | Pattern (Bullish pin bar (lower wick, low rejection) / Bearish pin bar (upper wick, high rejection) / Bullish engulfing (reversal) / Bearish engulfing (reversal)); Wick / body ratio (pin bar) (1–20); Min body (pips, 0=off) (0–10,000) | MT5, MT4, Pine, cTrader | Search filter |
MA Distance Filter ma_distance | Blocks entry when the price-to-MA distance (pips) is out of range (pullback / over-extension filter) | MA period (1–1,000); MA method (Simple (SMA) / Exponential (EMA) / Smoothed (SMMA) / Linear Weighted (LWMA)); Max pips (0=off) (0–100,000); Min pips (0=off) (0–100,000); Price side (Above or below / Only above MA / Only below MA) | MT5, MT4, Pine, cTrader | Search filter |
Cooldown Filter cooldown_filter | Wait N seconds/minutes after last entry | Cooldown (seconds) (1–86,400) | MT5, MT4 | — |
Daily Trade Limit daily_trade_limit | Stop opening new trades once the daily count is reached | Max trades per day (0 = no limit) (0–1,000); Count (Positions opened today / Positions closed today) | MT5, MT4, Pine, cTrader | — |
Gotobi Filter gotobi_filter | Trade only on Gotobi days (5th,10th,15th,20th,25th,month-end). Ideal for Nakane trade. | Include month-end (Yes / No); Time basis (Server time / UTC); Day-judge timezone (UTC+N hours, 9 = JST); Shift weekend gotobi to Friday (No / Yes); Fire when N days ahead is a Gotobi day (0 = same day, 1 = enter the day before) (0–5); Month-end last business day only (ignore the 5/10 table) (No / Yes) | MT5, MT4, Pine, cTrader | Search filter |
Weekday Filter weekday_filter | Allow trading on specific weekdays only | Monday (ON / OFF); Tuesday (ON / OFF); Wednesday (ON / OFF); Thursday (ON / OFF); Friday (ON / OFF); Time basis (Server time / UTC) | MT5, MT4, Pine, cTrader | Search filter |
Drawdown Filter drawdown_filter | Stop trading when max drawdown exceeded | Max DD (%) (1–100); Base (Balance / Equity) | MT5, MT4, Pine, cTrader | — |
Volatility Filter volatility_filter | Stop trading when volatility outside ATR range | ATR Period (1–999); Min ATR (pips) (0–10,000); Max ATR (pips, 0 = no cap) (0–10,000); Timeframe (10 options) | MT5, MT4, Pine, cTrader | — |
Market Regime Filter regime_filter | Combines an ADX trend/range read with an ATR expansion/compression read, and trades only in the market regimes you allow | Allowed regime (Trend / Range / Expansion / Compression / Trend + Expansion / Range + Compression); ADX Period (1–999); ADX Threshold (1–100); ATR Period (1–999); ATR Lookback (bars) (2–500); Expansion ratio (1–10); Compression ratio (0.1–1) | MT5, MT4, Pine, cTrader | — |
Equity Target equity_target | Stop trading when profit target reached | Target Mode (Dollars / Percent); Target Amount (1–1,000,000); Target (%) (0.1–1,000) | MT5, MT4, Pine, cTrader | — |
Session Filter session_filter | Trading session filter with a selectable time basis (server time or UTC). Use Session (auto DST) for windows that follow daylight saving. | Session (Tokyo (0-9) / London (7-16) / New York (12-21) / Custom); Start Hour (0–23); End Hour (0–23); Time basis (Server time / UTC) | All targets | Search filter |
News Filter news_filter | Pause trading N minutes before/after news events | Before (min) (0–720); After (min) (0–720); News Hour (0–23); News Minute (0–59); Day of Week (0=daily, 1=Mon..5=Fri) (0–5) | MT5, MT4, Pine, cTrader | — |
New Bar Filter newbar_filter | Pass only on new bar formation | None | All targets | — |
Actions
15 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Open Buy open_buy | Open a buy position | Distance unit (pips (fixed width) / % of price (symbol-class independent)); SL (pips) (0–10,000); TP (pips) (0–10,000); SL (% of price, when unit is %) (0–100); TP (% of price, when unit is %) (0–100); Max Positions (1–100); Comment; Trade symbol (blank = current chart) | All targets | — |
Open Sell open_sell | Open a sell position | Distance unit (pips (fixed width) / % of price (symbol-class independent)); SL (pips) (0–10,000); TP (pips) (0–10,000); SL (% of price, when unit is %) (0–100); TP (% of price, when unit is %) (0–100); Max Positions (1–100); Comment; Trade symbol (blank = current chart) | All targets | — |
Close Position close_pos | Close position(s) | Close Target (All Positions / Buy Only / Sell Only) | MT5, MT4, Pine, cTrader | — |
Time Exit time_exit | Close by holding time / bars / time-of-day / Friday | Exit trigger (Close after N minutes held / Close after N bars held / Close all at time / Friday close); Hold threshold (min/bars) (1–100,000); Exit hour (0-23) (0–23); Exit minute (0-59) (0–59); Friday exit hour (0-23) (0–23); Target (All Positions / Buy Only / Sell Only) | MT5, MT4 | — |
Profit Pips Close profit_pips_close | Close the whole basket when aggregate floating pips reach the target (with time-decay) | Aggregation (Pips from avg entry (lot-weighted) / Simple sum of floating pips); Target pips (1–100,000); Time decay (None (fixed target) / Linear decay (by time held)); Decay window (minutes) (1–100,000); Target floor (pips) (0–100,000); Target (All Positions / Buy Only / Sell Only); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4 | — |
Basket Money Close basket_money_close | Close the basket when its floating P/L in account currency reaches a threshold | Target (All Positions / Buy Only / Sell Only); Trigger (Take profit (P/L at or above the amount) / Cut loss (P/L at or below minus the amount)); Amount (account currency) (0.01–1,000,000); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4 | — |
Virtual/Hidden SL/TP virtual_sl_tp | Close at market on internal SL/TP levels (never sent to the broker) | Virtual SL (pips, 0=off) (0–100,000); Virtual TP (pips, 0=off) (0–100,000); Target (All Positions / Buy Only / Sell Only); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4 | — |
Basket Average TP basket_average_tp | Places the weighted-average open +/- N pips as a hard TP on every position (disconnect-proof grid/nanpin take-profit) | TP pips beyond avg open (0.1–100,000); Target (All Positions / Buy Only / Sell Only); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4, Pine, cTrader | — |
Buy Limit buy_limit | Buy limit pending order | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Trade symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Sell Limit sell_limit | Sell limit pending order | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Trade symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Buy Stop buy_stop | Buy stop pending order | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Trade symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
OCO Bracket oco_bracket | OCO straddle: places a Buy Stop above and a Sell Stop below; when one leg fills, the other is auto-cancelled | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment | MT5, MT4, Pine, cTrader | — |
Sell Stop sell_stop | Sell stop pending order | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Trade symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Alert alert_node | Alert notification | Message; Alert Type (Popup / Push Notification / Email / All) | MT5, MT4, Pine, cTrader | — |
Partial Close partial_close | Partial position close | Close Mode (Percent / Lots); Close Amount (0.01–10,000); Close Target (All Positions / Buy Only / Sell Only) | MT5, MT4, Pine, cTrader | — |
Money Mgmt
7 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Fixed Lot fixed_lot | Fixed lot size | Lot Size (0.01–100) | All targets | — |
Risk-Based Lot risk_lot | Calculate lot from balance × risk % | Risk (%) (0.1–100); SL (pips) (1–10,000) | MT5, MT4, Pine, cTrader | — |
Margin-Leverage Lot leverage_lot | Allocates a fixed % of balance as margin and sizes the lot at current leverage | Margin Allocation (%) (0.1–100) | MT5, MT4, Pine, cTrader | — |
Martingale Lot martingale_lot | Double lot on loss (Martingale) | Base Lot (0.01–100); Multiplier (1.1–10); Max Level (1–10); Halt at drawdown (%) (1–100) | MT5, MT4, Pine, cTrader | — |
Pyramiding pyramiding | Pyramiding — Add positions in profit direction | Max Additions (1–20); Interval (pips) (1–1,000); Lot Multiplier (0.1–10) | MT5, MT4 | — |
Averaging Down nanpin | Averaging Down — Add positions against loss to improve avg price | Max Additions (1–20); Interval (pips) (1–1,000); Lot Multiplier (0.1–10); Close Mode (Close all at once (on avg profit) / Close individually); Stage table (leave empty for a single interval); Add-on counting (Basket (buy and sell combined) / Per side (buy and sell counted separately)) | MT5, MT4 | — |
Reversal Entry doten | Reversal Entry — Enter opposite direction after closing | Lot Mode (Same Lot / Custom Lot); Lot Size (0.01–100) | MT5, MT4, Pine, cTrader | — |
Exit Strategy
7 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Trailing Stop trailing_stop | Trailing stop loss | Trailing Mode (9 options); Trail Distance (pips) (1–1,000); Step (pips) (1–100); Pitch Step (pips, pitch mode) (1–1,000); Share of open profit to protect (%, percent mode) (1–100); Trail distance (% of entry price, price-ratio mode) (0.01–100); MA period (moving average mode) (1–999); MA method (moving average mode) (SMA / EMA / SMMA / LWMA); Bars to scan (high/low mode) (1–999); ATR period (ATR mode) (1–999); ATR multiplier (ATR mode) (0.1–20); SAR step (SAR mode) (0.001–1); SAR maximum (SAR mode) (0.01–1); Bars to scan (fractals mode) (1–999) | MT5, MT4, Pine, cTrader | — |
Break Even break_even | Move SL to entry when in profit | Distance unit (pips (fixed width) / % of price (symbol-class independent)); Trigger (pips) (1–1,000); Lock (pips) (0–100); Trigger (% of entry price, when unit is %) (0.01–100); Lock (% of entry price, when unit is %) (0–100) | MT5, MT4, Pine, cTrader | — |
Basket Break Even basket_breakeven | Move every basket position SL to the weighted-average break-even once total floating profit hits the trigger | Trigger total profit (acct ccy) (0–1,000,000); Lock offset (pips) (0–1,000) | MT5, MT4 | — |
Take Profit take_profit | Take profit level (Fixed pips / ATR multiple) | TP Mode (Fixed pips / ATR multiple); TP (pips) (1–10,000); ATR Multiple (0.1–20); ATR period (ATR mode) (1–999) | All targets | — |
Stop Loss stop_loss | Stop loss level (Fixed pips / ATR multiple) | SL Mode (Fixed pips / ATR multiple); SL (pips) (1–10,000); ATR Multiple (0.1–20); ATR period (ATR mode) (1–999); ATR SL Cap (pips, 0=off) (0–10,000) | All targets | — |
Close All close_all | Close All — Close all positions when condition met | Trigger (DD% Exceeded / Profit Amount Reached / Loss Amount Exceeded / Basket Profit (this EA) / Basket Loss (this EA) / Time / Bars held); Threshold (0.01–100,000); Target (Own EA Only / All Positions); Pause after close (min) (0–10,080) | MT5, MT4 | — |
Account Guard account_guard | Close this EA's positions when the account's floating loss exceeds N% of balance, then pause new entries | Floating loss cap (% of balance, 0=off) (0–100); Target (Own EA Only / All Positions); Pause after close (min) (0–10,080) | MT5, MT4 | — |