Docs menu

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.
The Nodes list in the Builder, with the five categories it shows
The Nodes list shows five categories. Filters, Money Mgmt and Exit Strategy are set in the Settings tab.

Categories

CategoryBlocksUsed by the Miner search
Utility20
Indicators5249
Price / Info51
Conditions107
Filters217
Actions150
Money Mgmt70
Exit Strategy70
All categories11964

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

BlockSelected by defaultUsed asNeeds volume data
Moving Average maYesA value that conditions compareNo
RSI rsiYesA value that conditions compareNo
Bollinger Bands bbYesA value that conditions compareNo
MACD macdYesA value that conditions compareNo
Stochastic stochasticYesA value that conditions compareNo
Donchian Channel donchianYesA value that conditions compareNo
ATR atrNoA value that conditions compareNo
Std Deviation stddevNoA value that conditions compareNo
Williams %R williams_rNoA value that conditions compareNo
CCI cciNoA value that conditions compareNo
Momentum momentumNoA value that conditions compareNo
ROC rocNoA value that conditions compareNo
DPO dpoNoA value that conditions compareNo
TRIX trixNoA value that conditions compareNo
DeMarker demarkerNoA value that conditions compareNo
ADX adxNoA value that conditions compareNo
ADX Wilder adx_wilderNoA value that conditions compareNo
RVI rviNoA value that conditions compareNo
Ultimate Oscillator ultimateNoA value that conditions compareNo
OsMA osmaNoA value that conditions compareNo
Awesome Osc awesomeNoA value that conditions compareNo
Accelerator Osc acceleratorNoA value that conditions compareNo
Bears Power bears_powerNoA value that conditions compareNo
Bulls Power bulls_powerNoA value that conditions compareNo
Parabolic SAR sarNoA value that conditions compareNo
Heiken Ashi heiken_ashiNoA value that conditions compareNo
DEMA demaNoA value that conditions compareNo
TEMA temaNoA value that conditions compareNo
Hull MA hmaNoA value that conditions compareNo
Envelope envelopeNoA value that conditions compareNo
Keltner Channel keltnerNoA value that conditions compareNo
Adaptive MA amaNoA value that conditions compareNo
FrAMA framaNoA value that conditions compareNo
VIDyA vidyaNoA value that conditions compareNo
Consecutive Bars consecutive_barsNoA conditionNo
MA Perfect Order ma_perfect_orderNoA conditionNo
Ichimoku ichimokuNoA value that conditions compareNo
Alligator alligatorNoA value that conditions compareNo
Gator Osc gatorNoA value that conditions compareNo
OHLC ohlcNoA value that conditions compareNo
Supertrend supertrendNoA value that conditions compareNo
QQE qqeNoA value that conditions compareNo
VLDMI vldmiNoA value that conditions compareNo
Opening Range Breakout session_orbNoA value that conditions compareNo
OBV obvNoA value that conditions compareYes
Volumes volumesNoA value that conditions compareYes
Accum/Distrib adNoA value that conditions compareYes
BW Market Facil bwmfiNoA value that conditions compareYes
Money Flow Index mfiNoA value that conditions compareYes
Force Index force_indexNoA value that conditions compareYes
Chaikin Osc chaikinNoA value that conditions compareYes
VWAP vwapNoA value that conditions compareYes

Filters and conditions

Search filters

BlockWhat it does
Time Filter time_filterTrading time restriction
Session Filter session_filterTrading session filter with a selectable time basis (server time or UTC). Use Session (auto DST) for windows that follow daylight saving.
Weekday Filter weekday_filterAllow trading on specific weekdays only
Gotobi Filter gotobi_filterTrade only on Gotobi days (5th,10th,15th,20th,25th,month-end). Ideal for Nakane trade.
High-Low Range Filter hl_range_filterSkip entry when the N-bar high-low range is out of range (filters volatile/quiet markets)
Candle Pattern Filter candle_patternSkip entries unless the last closed bar is a pin bar / engulfing (price-action rejection reversal)
MA Distance Filter ma_distanceBlocks entry when the price-to-MA distance (pips) is out of range (pullback / over-extension filter)

Search conditions

BlockWhat it does
Cross crossCrossover / Crossunder detection
Compare compareCompare two values (>, <, ==, !=, >=, <=)
AND Gate and_gatePass only when all conditions are true
OR Gate or_gatePass when any condition is true
NOT Gate not_gateInvert condition (NOT)
Consecutive Bars consecutive_barsChecks 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_orderChecks 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.

TargetWhy a block is not exportedApplies to
MT4, Pine, cTrader, PythonMulti-symbol flows (a symbol on a part, or a target_symbols pair loop) are MT5 only; the MT4 export handles the single chart symbolAny block with its own symbol set, or a flow that loops over a list of symbols
Pine, cTrader, PythonParts 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 openCooldown 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, PythonCalling an external MetaTrader indicator (.ex5/.ex4) by name is MetaTrader onlyiCustom
Pine, PythonThe measured spread is not part of the candle data on this targetSpread Filter; Price block set to Spread
Pine, PythonFree margin depends on the broker margin model and cannot be reproduced on this targetAccount Info block set to Free Margin
Pine, cTrader, PythonSettings that rely on the MetaTrader account model (hedging control, account/broker restriction) are MetaTrader onlyThe hedging control, cashback hedge and account restriction settings
PineA part that reads the forming bar (shift 0) cannot be expressed in Pine (it decides at bar close). Use shift 1 or moreIndicator blocks and the OHLC block when the shift is 0 (the bar that is still forming)
PythonA 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 moreIndicator blocks and the OHLC block when the shift is 0 (the bar that is still forming)
PythonThis target has no popup/push/email notification channelAlert
cTraderA part that reads another timeframe is not exported to this target: how the higher-timeframe bar index maps is not confirmed in the official docsMulti Timeframe
cTraderParabolic 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 exportedParabolic SAR
PythonThe 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.

BlockWhat it doesSettingsExports toIn the Miner
Start startOnTick — Entry point executed every tickNoneAll targets—
Multi Timeframe multi_tfReference indicator values from higher timeframesIndicator (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 NameMT5, MT4, Pine—

Indicators

52 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Moving Average maMoving 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 targetsSearch part (default)
RSI rsiRelative Strength IndexPeriod (1–999); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)All targetsSearch part (default)
Bollinger Bands bbBollinger 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 targetsSearch part (default)
MACD macdMACD (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 targetsSearch part (default)
ATR atrAverage True RangePeriod (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Ichimoku ichimokuIchimoku 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, cTraderSearch part
Donchian Channel donchianHighest high / lowest low of the last N bars - for breakout and swing-level conditionsPeriod (1–999); Band (Upper / Lower); Shift (0–100); Timeframe (10 options); Variable NameAll targetsSearch part (default)
Opening Range Breakout session_orbFreezes 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 NameMT5, MT4, Pine, cTraderSearch part
Heiken Ashi heiken_ashiHeiken Ashi candle close/open - detect trend by candle color flipLine (HA Close / HA Open); Shift (0–100); Timeframe (10 options); Variable NameMT5, MT4, Pine, cTraderSearch part
ADX adxADX — 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, cTraderSearch part
CCI cciCommodity Channel IndexPeriod (1–999); Applied Price (Typical / Close / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Parabolic SAR sarParabolic SAR — Trend-following stopStep (0.001–1); Maximum (0.01–5); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, PineSearch part
Stochastic stochasticStochastic 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 targetsSearch part (default)
Williams %R williams_rWilliams %R — Overbought/oversold oscillator (-100~0)Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Momentum momentumMomentum — Rate of price changePeriod (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, cTraderSearch part
OBV obvOn Balance Volume — Cumulative volume indicatorShift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
DeMarker demarkerDeMarker — Trend exhaustion detection (0~1)Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Alligator alligatorBill Williams Alligator — Jaw/Teeth/Lips 3 linesJaw 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, cTraderSearch part
Bears Power bears_powerBears Power — Selling pressure strengthPeriod (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Bulls Power bulls_powerBulls Power — Buying pressure strengthPeriod (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Force Index force_indexForce Index — Price change x VolumePeriod (1–999); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Envelope envelopeMA Envelope — Upper/Lower bands around moving averagePeriod (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, cTraderSearch part
RVI rviRelative 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, cTraderSearch part
DEMA demaDouble Exponential MA — a moving average with reduced lagPeriod (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, cTraderSearch part
TEMA temaTriple Exponential MA — even less lag than DEMAPeriod (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, cTraderSearch part
Adaptive MA amaKaufman Adaptive MA — smoothing adapts to volatilityPeriod (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, cTraderSearch part
FrAMA framaFractal Adaptive MA — smoothing driven by fractal dimensionPeriod (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, cTraderSearch part
VIDyA vidyaVariable Index Dynamic Average — a CMO-driven adaptive MACMO 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, cTraderSearch part
Std Deviation stddevStandard Deviation — how far price spreads from its averagePeriod (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, cTraderSearch part
Awesome Osc awesomeAwesome Oscillator — momentum from the 5/34 SMA differenceShift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Accelerator Osc acceleratorAccelerator Oscillator — the acceleration of AOShift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Supertrend supertrendSupertrend — trend direction from an ATR-width trailing bandPeriod (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, cTraderSearch part
VLDMI vldmiVariable-period RSI — stretches the RSI period by the ATR ratio and fades sharp drops or spikesBase 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, cTraderSearch part
Persistence Ratio persistenceDirection-agreement ratio — how often the last N bars moved the same way as the bar before themBars 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 hmaHull MA — recombines two LWMAs so the line keeps up with price instead of trailing itPeriod (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, cTraderSearch part
QQE qqeQQE — trails a one-way band around a smoothed RSI and reports which side it brokePeriod (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, cTraderSearch part
VWAP vwapVWAP — 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, cTraderSearch part
ADX Wilder adx_wilderADX 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, cTraderSearch part
Keltner Channel keltnerKeltner 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, cTraderSearch part
ROC rocRate of Change — the percentage change from N bars agoPeriod (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, cTraderSearch part
Ultimate Oscillator ultimateUltimate Oscillator — buying pressure over three periods, blended 4:2:1Fast 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, cTraderSearch part
DPO dpoDetrended Price Oscillator — strips the trend out and leaves the cyclePeriod (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, cTraderSearch part
OsMA osmaDifference 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, cTraderSearch part
TRIX trixRate of change of a triple-smoothed EMA — momentum without the noisePeriod (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, cTraderSearch part
Chaikin Osc chaikinChaikin Oscillator — money flow that includes volumeFast 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, cTraderSearch part
Money Flow Index mfiMoney 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, cTraderSearch part
Volumes volumesTick volume — how active the bar wasShift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Accum/Distrib adA/D line — cumulative buying and selling pressureShift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
BW Market Facil bwmfiBill Williams Market Facilitation Index — range per unit of volumeShift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4, Pine, cTraderSearch part
Gator Osc gatorGator Oscillator — the spread between the three Alligator linesJaw 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, cTraderSearch part
Fractals fractalsBill Williams Fractals — the most recent confirmed swing high/lowLine (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 icustomGet custom indicator valuesIndicator 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.

BlockWhat it doesSettingsExports toIn the Miner
Current Price priceAsk/Bid/SpreadPrice Type (Bid / Ask / Spread); Variable Name; Symbol (blank = current chart)All targets—
OHLC ohlcCandlestick Open/High/Low/CloseOHLC (Close / Open / High / Low); Bar Shift (0–1,000); Timeframe (10 options); Variable Name; Symbol (blank = current chart)All targetsSearch part
Time Info time_infoTime information (Hour/Minute/DayOfWeek)Time Type (Hour / Minute / Day of Week (0=Sun) / Day); Variable NameMT5, MT4, Pine, cTrader—
Account Info account_infoAccount info (Balance/Equity/Profit)Info Type (Balance / Equity / Floating P/L / Free Margin); Variable NameMT5, MT4, Pine, cTrader—
Constant constantOutput a fixed valueValue (-999,999–999,999); Variable NameAll targets—

Conditions

10 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Compare compareCompare two values (>, <, ==, !=, >=, <=)Operator (> (greater than) / < (less than) / >= (greater or equal) / <= (less or equal) / == (equal) / != (not equal)); Offset (pips)All targetsSearch condition
Cross crossCrossover / Crossunder detectionCross Type (Crossover (cross above) / Crossunder (cross below))All targetsSearch condition
MA Perfect Order ma_perfect_orderChecks whether multiple MAs are aligned in period order (perfect order). Composable with other conditions via AND/ORAlignment direction (Bullish (fast > slow) / Bearish (fast < slow) / Either alignment)MT5, MT4, Pine, cTraderSearch part, Search condition
Consecutive Bars consecutive_barsChecks whether the last N closed bars moved in the same direction (up/down). Composable with other conditions via AND/ORCriterion (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, cTraderSearch part, Search condition
RSI Divergence rsi_divergenceDetects 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_gatePass only when all conditions are trueNoneAll targetsSearch condition
OR Gate or_gatePass when any condition is trueNoneMT5, MT4, Pine, cTraderSearch condition
NOT Gate not_gateInvert condition (NOT)NoneAll targetsSearch condition
Signal Latch signal_latchFires once, then stays silent until the reset condition occursRe-arm when (The reset condition (input 2) is true / This EA has no open positions)MT5, MT4, Pine, cTrader—
Math Operations math_opArithmetic on two inputsOperation (+ (add) / - (subtract) / × (multiply) / ÷ (divide)); Variable NameMT5, MT4, Pine, cTrader—

Filters

21 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Time Filter time_filterTrading time restrictionStart Hour (0–23); End Hour (0–23); Time basis (Server time / UTC)All targetsSearch filter
Spread Filter spread_filterMaximum spread filterMax Spread (points) (1–1,000)MT5, MT4, cTrader—
Position Filter position_filterMaximum position count limitMax Positions (1–100)All targets—
Session (auto DST) tz_session_filterGate by market session with automatic daylight-saving adjustmentMarket (London / New York / Tokyo); Auto daylight-saving (Yes / No); Broker GMT offset (winter) (-12–14)MT5, MT4, Pine, cTrader—
Holiday Filter holiday_filterHalt new orders on holidays and year-endRegion (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_filterSkip 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, cTraderSearch filter
Range Size Filter range_size_filterBlocks 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_filterTrade only on the listed calendar days (comma-separated 1-31), e.g. 24,25,26,27,28,29 for the month-end weekAllowed days (comma-separated 1-31); Time basis (Server time / UTC)MT5, MT4, Pine, cTrader—
Candle Pattern Filter candle_patternSkip 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, cTraderSearch filter
MA Distance Filter ma_distanceBlocks 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, cTraderSearch filter
Cooldown Filter cooldown_filterWait N seconds/minutes after last entryCooldown (seconds) (1–86,400)MT5, MT4—
Daily Trade Limit daily_trade_limitStop opening new trades once the daily count is reachedMax trades per day (0 = no limit) (0–1,000); Count (Positions opened today / Positions closed today)MT5, MT4, Pine, cTrader—
Gotobi Filter gotobi_filterTrade 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, cTraderSearch filter
Weekday Filter weekday_filterAllow trading on specific weekdays onlyMonday (ON / OFF); Tuesday (ON / OFF); Wednesday (ON / OFF); Thursday (ON / OFF); Friday (ON / OFF); Time basis (Server time / UTC)MT5, MT4, Pine, cTraderSearch filter
Drawdown Filter drawdown_filterStop trading when max drawdown exceededMax DD (%) (1–100); Base (Balance / Equity)MT5, MT4, Pine, cTrader—
Volatility Filter volatility_filterStop trading when volatility outside ATR rangeATR 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_filterCombines an ADX trend/range read with an ATR expansion/compression read, and trades only in the market regimes you allowAllowed 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_targetStop trading when profit target reachedTarget Mode (Dollars / Percent); Target Amount (1–1,000,000); Target (%) (0.1–1,000)MT5, MT4, Pine, cTrader—
Session Filter session_filterTrading 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 targetsSearch filter
News Filter news_filterPause trading N minutes before/after news eventsBefore (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_filterPass only on new bar formationNoneAll targets—

Actions

15 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Open Buy open_buyOpen a buy positionDistance 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_sellOpen a sell positionDistance 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_posClose position(s)Close Target (All Positions / Buy Only / Sell Only)MT5, MT4, Pine, cTrader—
Time Exit time_exitClose by holding time / bars / time-of-day / FridayExit 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_closeClose 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_closeClose the basket when its floating P/L in account currency reaches a thresholdTarget (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_tpClose 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_tpPlaces 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_limitBuy limit pending orderOffset (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_limitSell limit pending orderOffset (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_stopBuy stop pending orderOffset (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_bracketOCO straddle: places a Buy Stop above and a Sell Stop below; when one leg fills, the other is auto-cancelledOffset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); CommentMT5, MT4, Pine, cTrader—
Sell Stop sell_stopSell stop pending orderOffset (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_nodeAlert notificationMessage; Alert Type (Popup / Push Notification / Email / All)MT5, MT4, Pine, cTrader—
Partial Close partial_closePartial position closeClose 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.

BlockWhat it doesSettingsExports toIn the Miner
Fixed Lot fixed_lotFixed lot sizeLot Size (0.01–100)All targets—
Risk-Based Lot risk_lotCalculate lot from balance × risk %Risk (%) (0.1–100); SL (pips) (1–10,000)MT5, MT4, Pine, cTrader—
Margin-Leverage Lot leverage_lotAllocates a fixed % of balance as margin and sizes the lot at current leverageMargin Allocation (%) (0.1–100)MT5, MT4, Pine, cTrader—
Martingale Lot martingale_lotDouble 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 pyramidingPyramiding — Add positions in profit directionMax Additions (1–20); Interval (pips) (1–1,000); Lot Multiplier (0.1–10)MT5, MT4—
Averaging Down nanpinAveraging Down — Add positions against loss to improve avg priceMax 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 dotenReversal Entry — Enter opposite direction after closingLot Mode (Same Lot / Custom Lot); Lot Size (0.01–100)MT5, MT4, Pine, cTrader—

Exit Strategy

7 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Trailing Stop trailing_stopTrailing stop lossTrailing 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_evenMove SL to entry when in profitDistance 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_breakevenMove every basket position SL to the weighted-average break-even once total floating profit hits the triggerTrigger total profit (acct ccy) (0–1,000,000); Lock offset (pips) (0–1,000)MT5, MT4—
Take Profit take_profitTake 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_lossStop 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_allClose All — Close all positions when condition metTrigger (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_guardClose this EA's positions when the account's floating loss exceeds N% of balance, then pause new entriesFloating loss cap (% of balance, 0=off) (0–100); Target (Own EA Only / All Positions); Pause after close (min) (0–10,080)MT5, MT4—