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 129 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
Indicators5749
Price / Info51
Conditions127
Filters227
Actions160
Money Mgmt70
Exit Strategy80
All categories12964

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 bars form the chosen candlestick pattern (pin bar, engulfing, harami, morning star, belt hold and more, 27 in all)
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 openLevel Latch, Cooldown Filter, Time Exit, Profit Pips Close, Basket Money Close, Virtual/Hidden SL/TP, Pending Orders Manager, 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, cTrader, PythonLinear regression (the value or slope of a straight line fitted to the last N prices) is exported to MT5 and MT4 only; this target has not been checked against itLinear Regression
Pine, cTrader, PythonSwing high / low (the price of the Nth most recent confirmed bar that is higher or lower than N bars on each side) is exported to MT5 and MT4 only; this target has not been checked against how swings are detected and countedSwing High / Low
Pine, cTrader, PythonChart patterns (double top / bottom, head and shoulders, inverse head and shoulders, ascending / descending triangle, found from swing points and a close beyond the neckline) are exported to MT5 and MT4 only; this target has not been checked against how swings, the tolerance and the breakout bar are countedChart Pattern Signal
Pine, cTrader, PythonThe staged trailing table (the stop-loss follows a different rule - fixed distance, break-even, ATR, recent bars or steps - depending on the profit stage reached) is exported to MT5 and MT4 only; this target has not been checked against how the stage is chosen and the stop is movedStaged Trailing Table
MT4, Pine, cTrader, PythonPivot points (levels from the previous day, week or month high, low and close) are exported to MT5 only; this target has not been checked against themPivot Points
MT4, Pine, cTrader, PythonStep-by-step partial close (up to 25 steps, each once per position) is exported to MT5 only; the other targets cannot keep the per-position record the same wayA block setting, as described in the reason
MT4, Pine, cTrader, PythonA minimum interval between alerts and the account-status text are exported to MT5 only; the other targets cannot keep the last-send time the same wayA block setting, as described in the reason
MT4, Pine, cTrader, PythonKST (four averaged rates of change added with weights) is exported to MT5 only; this target has not been checked against itKST (Know Sure Thing)
MT4, Pine, cTrader, PythonCorrelation between two symbols is exported to MT5 only; this target has not been checked against how the bars of the two symbols are lined upCorrelation
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
MT4, Pine, cTrader, PythonPending-order lifecycle control (cancel by time, remember and re-place prices, several pending orders of one type, duplicate-price check) is MT5 only; the other targets assume one pending order per typePending Orders Manager
MT4, Pine, cTrader, PythonRemembering a value at a set time and going true once on the first tick-level break is MT5 only; the other targets decide only at bar closeLevel Latch
MT4, Pine, cTrader, PythonExtended break-even / trailing (fractional pips or points, separate buy and sell values, trail before or after break-even only, sell-formula compat setting) is MT5 onlyA block setting, as described in the reason
MT4, Pine, cTrader, PythonThe period-loss entry stop is MT5 only: it measures the loss against the period-start balance rebuilt from the whole account deal history, which the other targets cannot read the same wayPeriod Loss Limit
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
MT4, Pine, cTrader, PythonMinute-precision time windows (start/end minute, exit window length) are MT5 only; this target stops at whole hours, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonBlocking re-entry from closed-trade history is MT5 only; this target can only see open positionsA block setting, as described in the reason
MT4, Pine, cTrader, PythonA moving average with a period of 1000 or more is MT5 only; other targets differ in history depth and indicator limits, so values would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonCounting the maximum positions across every open position and pending order of the account is MT5 only; this target counts only this EA, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonCounting the open positions of the same symbol whatever their magic number is MT5 only; this target counts only this EA, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA shared position slot that counts only the listed magic numbers is MT5 only; this target counts only its own magic number, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonAllowing only one send per bar across several order nodes and legs is MT5 only; this target can only limit each order node or leg on its own, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonRestoring the one-send-per-bar mark at start-up from the bar of the last trade of the listed magic numbers is MT5 only; this target cannot restore it after a restart, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA value for the Japanese bank-day profile (last bank day of the month, gotobi Friday, other gotobi day, regular Friday, Monday to Thursday) built from the Japanese holiday table is MT5 only; this target has no holiday table, so the day profile would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonThe move in pips between two Japan-time minutes measured on M1 opens is MT5 only; this target has no Japan-time conversion with summer-time switching and cannot skip when that M1 bar is missing, so the moves would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the bar count of a timeframe, the spread in pips and a constant scaled by the pip size as values is MT5 only; this target cannot make the same values, so the decision boundaries would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonSending only once per Japan-time day per magic number and keeping the mark through a restart is MT5 only; this target cannot keep the mark, so trades would repeat on the same dayA block setting, as described in the reason
MT4, Pine, cTrader, PythonSkipping the order when the lot is 0 is MT5 only; this target rounds up to the minimum lot and sends, so trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonClosing at a Japan-time minute and closing positions opened on an earlier Japan date at the date change is MT5 only; this target has no Japan-time conversion with summer-time switching, so the exit times would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonRunning the same decision on a one-second timer as well as on ticks is MT5 only; this target decides only on ticks, so entry and exit times would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonCounting the current bar as already seen at start-up, so the first bar is not passed as a new bar, is MT5 only; this target passes one extra time right after start-up, so trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonComputing MACD with its own EMA recursion from the first close (the signal also an EMA) is MT5 only; the MACD of this target starts its calculation elsewhere, so crossings would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading RSI or CCI as a z-score over the last N bars (sample standard deviation) is MT5 only; this target has no such value, so conditions would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the best favourable pips since entry (maximum floating profit) as a value is MT5 only; this target has no such value, so exits that lock in profit would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonA value that is 1 only on the first tick of a new bar is MT5 only; this target has no such value, so exits that decide once per bar would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonUpdating the new-bar memory only on ticks that pass the earlier filters is MT5 only; this target updates it on every tick, so it would miss new bars and trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonAdding "never on Saturday or Sunday" to a time filter is MT5 only; this target would also pass weekends, so trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonClosing positions opened on an earlier server date at the date change is MT5 only; this target would carry them over, so exits would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonCapping the risk lot by the smaller of the remaining total and daily risk room is MT5 only; this target has no such room, so lot sizes would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonSizing the risk lot from the value of one pip times the stop-loss pips, rounding down to the step and giving 0 below the minimum lot, is MT5 only; this target uses another formula and rounding, so lot sizes would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonRemembering the best floating profit and the profit-lock arming per position across a restart is MT5 only; this target loses the value at a restart, so exits that lock in profit would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonRemembering the last judged bar per position across a restart for once-per-bar exits is MT5 only; this target loses the memory at a restart, so exits would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonBlocking new entries while a position from an earlier server date remains (closing it first) is MT5 only; this target would still enter, so trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonSaving the held and sampled state of a signal latch so a restart keeps it is MT5 only; this target loses the state at a restart, so the trades of that day would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonCounting positions opened today (or since a given time) from the history as well is MT5 only; this target counts only open positions, so a position already closed is missed and trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonPlacing a pending order with a broker-side expiry at a given server time (and re-placing it without expiry if the broker rejects it) is MT5 only; this target sets no expiry, so the order can outlive the EAA block setting, as described in the reason
MT4, Pine, cTrader, PythonSkipping a pending order whose price is closer to the market than the minimum stop distance is MT5 only; this target would send it and failA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading whether the daily bar has caught up with the current date as a value is MT5 only; this target cannot check the syncA block setting, as described in the reason
MT4, Pine, cTrader, PythonBuilding 10, 15 or 20 minute bars from M1 and reading their RSI, moving average, ATR ratio and ADX is MT5 only; this target cannot build them, so values and trades would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonAdding the Magic numbers that closed in the current minute to the shared position count is MT5 only; this target can enter again in the same minute, so the open count would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonBlocking a new entry when this Magic closed in the same minute is MT5 only; this target would re-enter at onceA block setting, as described in the reason
MT4, Pine, cTrader, PythonClosing positions of several Magic numbers with a different hold time each, counted from the opening minute, is MT5 only; this target cannot, so exits would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading whether the server time is past a minute of the day (a different minute on Friday) as a value is MT5 only; this target cannot make the same testA block setting, as described in the reason
MT4, Pine, cTrader, PythonPlacing the stop loss at the high/low of the last N bars before the entry bar (with a gap and min/max pips) is MT5 only; this target cannot place the same level, so the stop would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonSetting the take profit as a multiple of the stop-loss distance (risk-reward ratio, with min/max pips) is MT5 only; this target cannot place the same level, so the target would differA block setting, as described in the reason
Pine, cTrader, PythonThe signal-only mode (draw an arrow or a vertical line on the chart and place no order) is MT5 and MT4 only; this target cannot draw the same marks, so orders that should not be placed would be sentA block setting, as described in the reason
MT4, Pine, cTrader, PythonNarrowing the weekday filter by week of the year or by the n-th occurrence of the weekday in the month is MT5 only; this target cannot judge the same days, so the trading days would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonSizing the risk lot by an absolute amount in the account currency, or by a 6-step risk profile (lot x 1/3 to x 3), is MT5 only; this target cannot size the same way, so lot sizes would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonA wait after an attempt, shared by all legs and cleared when the trading day changes, is MT5 only; this target has no wait, so retries would be spaced differentlyA block setting, as described in the reason
MT4, Pine, cTrader, PythonCounting daily P/L and balance with the entry-side commission included (the MT4 way of accounting) is MT5 only; this target counts differently, so lot sizes would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonBlocking re-entry from the time of the last close is MT5 only; this target can only see open positionsA block setting, as described in the reason
MT4, Pine, cTrader, PythonAn AND gate that passes once per day is MT5 only; this target cannot keep a per-day state, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA minimum holding time on a closing node is MT5 only; this target would also close a fresh position, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonApplying a filter to exits only is MT5 only; on this target it would also block entries, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonGating nanpin add-ons with the entry conditions is MT5 only; on this target add-ons ignore the entry conditions, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonMeasuring the ATR filter on a closed bar is MT5 only; this target measures the forming bar, so values would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonApplying a filter to new entries only is MT5 only; on this target it would also block exits, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA close-based high/low channel (highest and lowest close in the window) is MT5 only; this target only has the high/low channel, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonMixing buy and sell floating pips into one total and closing one side is MT5 only; this target sums each side separatelyA block setting, as described in the reason
MT4, Pine, cTrader, PythonA trailing start distance and a GMT-seconds check interval are MT5 only; this target starts following once in profit and checks every tick, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the second of the time as a value is MT5 only; this target stops at hour, minute and weekday, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonBreak-even only while a single position is open, and a GMT-seconds check interval, are MT5 only; this target checks every tick regardless of the count, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonStarting the trail at "greater than or equal" is MT5 only; this target uses "greater than", so trades at the boundary would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonFeeding the order lot from a value node (for example the latest position lot times a multiplier) is MT5 only; this target uses a fixed lot input, so the lot would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonRetrying the stop-loss and take-profit on every tick for a position that has none is MT5 only; this target sets them once at order time, so a missed one stays nakedA block setting, as described in the reason
MT4, Pine, cTrader, PythonRegistering the shared virtual levels from the deal history is MT5 only; this target registers from positions alive at the bar head, so a position opened and closed within the bar is missedA block setting, as described in the reason
MT4, Pine, cTrader, PythonPlacing stop-loss and take-profit from the actual fill price is MT5 only; this target places them from the requested price, so the levels differ when the fill slipsA block setting, as described in the reason
MT4, Pine, cTrader, PythonAn explicit "no stop-loss / no take-profit" setting is MT5 only; this target reads 0 as the default value, so it would attach a stop or target the original does not haveA block setting, as described in the reason
MT4, Pine, cTrader, PythonTagging positions with a slot and gating entries per slot (skip when filled, add only after the base slot drifts against it) is MT5 only; this target has no slots, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonFree-margin based risk lots, rounding up to the lot step and adding a fixed lot are MT5 only; this target uses balance and rounds down, so lot sizes would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the candle body size and the average over the past N bars as a value is MT5 only; this target stops at a single bar open/high/low/close, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonRemembering the extreme value and price after an indicator reaches a level and waiting for the return is MT5 only; this target holds no such state, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonBasket take-profit per lot in points, strict greater-than checks, a minimum position count and a points unit for the average-price target are MT5 only; this target stops at money or pips with greater-or-equal, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonCancelling pending orders when an indicator condition holds is MT5 only; this target cancels by time window only, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA gate that passes only on the first tick of a shifted day is MT5 only; this target evaluates every tick, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonHolding the high/low fixed until the shifted day changes is MT5 only; this target updates every bar, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonLimiting break-even / trailing to a position that is alone in its direction, moving a stop only when it is strictly outside the stops level, and acting only while the stop is still short of the entry (or unset) are MT5 only; this target has none of these checks, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonOrder flags (lowered on send, re-armed when flat or on a close), a per-key bar guard (once per bar; on a close, no closing on a bar where an order with the same key was sent) and a latch (blocked until the close of another timeframe changes) are MT5 only; this target holds no such state, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonClosing only the newest position on a side and re-arming flags afterwards is MT5 only; this target closes all matching positions at once, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading a price at "the bar of the newest open position + N" is MT5 only; this target cannot look up the entry bar, so the value would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonA stop order with no expiry (good till cancelled) is MT5 only; this target sets expiry differently, so it would not behave the sameA block setting, as described in the reason
MT4, Pine, cTrader, PythonSkipping a stop order when SL/TP is too close to the price (instead of widening it) is MT5 only; this target handles too-close levels differently, so it would not behave the sameA block setting, as described in the reason
MT4, Pine, cTrader, PythonScanning a custom-indicator buffer from the newest bar for the first value above or below the current bid (the nearest zigzag peak or trough) is MT5 only; this target cannot scan that way, so the value would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonFreezing D1 highs and lows (shifts 0 to 10) at the first tick of a given hour and replacing older values beaten by newer ones with sentinel values is MT5 only; this target rereads each time, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA time exit judged in seconds (close once held longer than N seconds) is MT5 only; this target judges in whole minutes, so it would close up to a second early and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonMoving the stop loss unconditionally based on the Ask for buys and the Bid for sells (it may even move to a worse level), and trailing from the stop loss as it was at the start of the tick, are MT5 only; this target uses a different basis and movement, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA time exit that counts held bars on a chosen timeframe instead of the chart timeframe is MT5 only; this target counts on the chart timeframe, so exits would happen at different timesA block setting, as described in the reason
MT4, Pine, cTrader, PythonMaking a stop pending order follow Ask+distance (Bid-distance), throttled by the time of the last move and a pip difference, is MT5 only; this target cannot follow the same way, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonStepping the stop loss by a fixed amount with separate step and distance for the loss side and the profit side of the entry, and dropping the take profit on the first change, is MT5 only; this target moves differently, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA new-bar filter on a chosen timeframe instead of the chart timeframe is MT5 only; this target judges on the chart timeframe, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonBollinger Bands built from the sample standard deviation (divided by n-1) are MT5 only; this target keeps the population deviation, so the band width differs slightly and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonThe standard deviation squeeze test (tick volume filter, rate of change, consecutive contraction, acceleration and the combined score in one) is MT5 only; this target does not judge it the same way, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonTaking the latest swing high or low (the number of bars on each side follows the volatility) as a price is MT5 only; this target does not find the same price, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonRunning break even, an ATR trail and a swing trail as one, with settings chosen by the start of the position comment (the mark for trend and counter-trend trades), is MT5 only; this target does not close the same way, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonClosing on per-bar shared virtual levels (one for buys and one for sells, set from the entry, trailed in profit and re-limited when the trade goes against it) is MT5 only; this target cannot hold the same levels, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA high-low range that finds the bar position on a chosen timeframe and applies it to the chart timeframe highs and lows (reproducing the original mix-up) is MT5 only; this target reads it differently, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonUsing the original Magic Number as is (settings.magic_number) is MT5 only; this target uses an automatic value, so the trades cannot be told apart from the original ones on the same accountA block setting, as described in the reason
MT4, Pine, cTrader, PythonADX, +DI and -DI from an own Wilder recursion (seeded with the first bar, started 500 bars back) are MT5 only; this target seeds differently, so values differ and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonATR with Wilder smoothing (1/period) is MT5 only; this target uses the simple-average ATR, so values differ and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA value for the seconds of a Japan-time trading day (the day changes at a set minute) and for the seconds since server midnight of the day that holds a Japan-time anchor is MT5 only; this target has no Japan-time conversion with summer-time switching, so the windows would shift and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonThe high or low of a fixed time window of the trading day (M1 or M5 bars), and whether that window is final, is MT5 only; this target cannot place the window edges by Japan time with summer time, so the highs and lows would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonLatching a condition tick by tick until a reset, and holding the value seen on the first tick the gate opened while it stays open, are MT5 only; this target only has a per-bar latch, so a condition that rises mid-bar is missedA block setting, as described in the reason
MT4, Pine, cTrader, PythonPushing a level into a two-deep history once per trading day and reading the level from one or two entries back is MT5 only; this target cannot keep a history across restarts, so earlier days levels are unavailableA block setting, as described in the reason
MT4, Pine, cTrader, PythonThe median of ATR over a set number of bars is MT5 only; this target can only average, so values differ and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonCandle range, body, body ratio and lower-wick ratio that carry the previous value over bars where the value is zero are MT5 only; this target reads each bar afresh, so doji bars would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the average high-low range of the past N bars, skipping Saturday and Sunday bars, as a value is MT5 only; this target cannot build the same value, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the average of an indicator over the past N bars as a value is MT5 only; this target stops at a single bar value, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonRounding a result down (floor) is MT5 only; this target keeps the fraction, so values such as the stop distance would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonUsing the value of a connected node (in pips) as the stop distance is MT5 only; this target stops at a fixed distance, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA money-management lot computed from leverage x free margin with currency conversion (switchable to the fixed lot by an input) is MT5 only; this target uses a fixed lot or a different formula, so lot sizes would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonUsing the price of a connected node directly as the stop-loss / take-profit price (and a take-profit set as N times the stop distance) is MT5 only; this target stops at pips or ATR-multiple distances, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonSetting the break-even trigger and lock as multiples of ATR is MT5 only; this target stops at fixed pips, so it would not follow volatility and trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonHolding back until the newest same-direction position is more than N bars old is MT5 only; this target does not count bars from the position time, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonAdding the commission to the position profit total is MT5 only; this target excludes commission, so the boundary shifts on accounts that charge itA block setting, as described in the reason
MT4, Pine, cTrader, PythonTagging orders and closing only the tagged positions of one side at a separate time is MT5 only; this target cannot tell the tags apart and would close the whole side togetherA block setting, as described in the reason
MT4, Pine, cTrader, PythonAbsolute value, minimum and maximum in the calculation node are MT5 only; this target has the four basic operations only, so comparisons of signed values would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the day shifted by the server GMT offset and a summer-time rule (US or EU style) is MT5 only; this target uses the plain server date, so day rollover and month-edge checks would differA block setting, as described in the reason
MT4, Pine, cTrader, PythonSwitching money management (fixed lot, compound, compound plus fixed lot) by an input is MT5 only; this target is fixed to one method, so switching would change resultsA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the month (1-12) as a value is MT5 only; this target stops at hour, minute, weekday and day, so a month-and-day rule would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonUsing Japan time (with automatic summer-time correction) or a server summer-time correction as the clock base is MT5 only; this target stops at UTC and server time, so trades around the clock change would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA fixed date list, month-day ranges (year wrap allowed) and month-day / full-date values are MT5 only; this target stops at hour, minute, weekday, day and month, so fixed-date trading would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the clock a few seconds shifted (the original second adjustment) is MT5 only; this target uses the plain current time, so entries a few seconds early would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonInverting the gotobi filter (skip those days) and a calendar month-end day are MT5 only; this target can only pass gotobi days, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonChecking an exit on every tick, outside the new-bar gate, is MT5 only; this target evaluates once per bar, so an exit set for a specific minute would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonA loss-side threshold on the aggregate pips, closing until flat after the target is reached, and a strict greater-than test are MT5 only; this target only checks the target once, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonMeasuring each averaging step from the oldest position and counting the adds separately are MT5 only; this target measures from the latest add and counts positions, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonReading the position state the EA holds (count, oldest/latest open price, lot-weighted floating pips, profit total, drift against the latest position, spread as a price) as a value is MT5 only; this target stops at account values and position filters, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonMultiplying the lot only while conditions hold, and growing the lot by a power of the same-side position count, are MT5 only; this target keeps a fixed lot, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonRe-counting the positions the EA holds right before sending and requiring at least N on the same side and at most N on the opposite side is MT5 only; this target stops at the position cap on the order node, so trades would not match (the trailing-stop options single_only and new_bar_only and the break-even option new_bar_only are the same: MT5 only)A block setting, as described in the reason
MT4, Pine, cTrader, PythonCounting closes outside a band (at least Start and at most End bars), pin bars by wick ratio, and a range for the run length are MT5 only; this target stops at runs of at least N bars, so trades would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonMeasuring the high-low range on another timeframe is MT5 only; this target measures on the chart timeframe, so values would not matchA block setting, as described in the reason
MT4, Pine, cTrader, PythonBlocking re-entry from the last order the EA sent (kept after the position closes, released on the next bar open) is MT5 only; this target can only see open positionsA block setting, as described in the reason
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, 106 of the 129 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. The Multi Timeframe block follows the same rule: its Shift property is 0 by default, and Pine can export it with a shift of 1 or more. In the same way, Time Filter minutes, Time Exit window length, Cooldown Filter based on trade history, and the “New entries only” scope of the Time, Spread, Position and Cooldown filters are MT5 only. The same goes for the Donchian Channel “Close prices” basis, the Profit Pips Close “Buys and sells together” sum, the Trailing Stop start distance and check interval, and the Month option of Time Info. Also MT5 only: a Moving Average period above 999 (up to 9999), the Position Filter account-wide count (open trades and pending orders together), the AND Gate “once per day” option, Cooldown Filter measured in bars from the last close (per buy or sell side), the “Exit only” scope and the “Also block adds” option of the filters and Compare, a minimum holding time in seconds or in bars on the closing blocks, the Trailing Stop negative start, separate sell start and “check once per N minutes”, and the Volatility Filter new-entries-only scope with a confirmed bar. For the Averaging (Nanpin) block, the entry gate and the Ask/Bid distance rule are MT5 only. Every one of them is refused with a reason on the other targets. The same goes for Time Info with Japan time or server summer-time correction, a seconds shift, a date list, month-day ranges, month-day or full-date values, Gotobi Filter skip or calendar month-end, every-tick exits, Cooldown Filter based on the last order sent, Profit Pips Close loss threshold, keep-closing and strict comparison, and averaging measured from the oldest position or with its own add counter. The same goes for reading the positions the EA holds as values (count, oldest and latest open price, lot-weighted floating pips, profit total, drift against the latest position, spread as a price), Fixed Lot that doubles only while the connected conditions hold or grows by a power of the same-side position count, the position gate on the Buy and Sell blocks (a minimum on the same side and a maximum on the opposite side, counted right before sending), the Trailing Stop single-position and new-bar-only options, Consecutive Bars as a band walk, a pin bar by wick ratio or a range of run lengths, and the High-Low Range Filter on another timeframe. The same goes for the seconds value of Time Info, the Break-Even single-position and every-N-seconds options, the Trailing Stop “start at or above” comparison, Buy and Sell with stop loss and take profit set from the filled price, or with position slots (a slot tag, and a base slot with a drift distance in points), the Risk Lot free-margin base, round-up and fixed-lot add, Candle Data as a body size or an average over the past N bars, Level Latch in extreme mode, the Basket Money Close points-per-lot, strictly-greater and minimum-count options, the Average Take Profit points unit and minimum count, Pending Lifecycle cancel on a condition, the AND Gate shifted-day first-tick option, the Donchian Channel daily hold, the explicit “no stop loss” / “no take profit” setting on Buy, Sell and the pending-order blocks (a stop or target of 0 alone falls back to the default distance), and Account Info with an account-wide count, the seconds since the latest position opened, or a drift measured from the bar open in points. The same goes for the Buy and Sell flag key, once-per-bar guard, latch and slot mark, Close Position closing only the newest position or only a slot mark, the Break-Even and Trailing Stop one-per-side and minimum-stop-distance options, Break-Even before-entry-only, Candle Data carried range, body, body percentage and lower wick, Account Info position profit with commission, Time Info with a shifted day (GMT offset and summer-time rule), the Risk Lot fixed / compounding switch, and the Math absolute value, minimum and maximum. The same goes for Math round-down (floor), Candle Data as the average range over N bars skipping Saturday and Sunday, CCI averaged over the past N bars, and Buy and Sell with the stop loss distance taken from a connected value block or with a wait of N bars after the newest same-direction position. The same goes for the Risk Lot currency-converted money-management lot (leverage and risk percent), Buy and Sell with the stop loss or take profit given as a price from a connected value block (or the take profit as a multiple of the stop loss distance), and Break-Even with its trigger and lock set in ATR multiples. The same goes for Close Position with the once-per-bar guard (it does not close on a bar where a Buy or Sell block with the same key sent an order), and for Account Info as the floating points from the lot-weighted average open price (truncated to whole points) or the peak of that value while the position group lives, which an average-price trailing close can use. The same goes for Candle Data read relative to the bar the current position opened on, Candle Data as a daily snapshot fixed at a start hour (with stale older values replaced by a sentinel), iCustom scanning a buffer for the nearest value above or below the bid (a zigzag peak or trough), Buy Stop and Sell Stop with the stop loss taken as a price from a connected value block or with no expiry (good till cancelled), and Pending Lifecycle cancelling only the pending orders whose price differs from a connected value. The same goes for the Time Exit holding time judged in seconds, the Break-Even direct stop loss move (measured on the Ask or Bid, may go to a worse level) and its new-bar-only option, and the Trailing Stop chase from the stop loss at the start of the tick. The same goes for Pending Lifecycle re-pricing a pending order to follow the market, Buy Stop and Sell Stop that skip the order when the stop loss or take profit is closer than the minimum distance, the Trailing Stop that crawls the stop loss in fixed steps or sets it by entry tag (break-even, ATR trail and swing trail), New Bar Filter on a chosen timeframe or for entries only, Bollinger Bands with the sample deviation, ATR with Wilder smoothing, Time Exit counted in bars of a chosen timeframe, Virtual SL/TP with shared per-bar levels, High-Low Range read by a position taken on another timeframe, Donchian as a dynamic swing price, and Standard Deviation as a squeeze judgment. The same goes for a fixed magic number in the strategy settings, ADX (Wilder) from its own seeded recursion, Buy and Sell that re-attach a missing stop loss and take profit on every tick or take the lot from a connected value block, Virtual SL/TP levels registered from the deal history, the Position Filter count of the same symbol across all magic numbers, and Account Info as the lot of the latest position or the drift from the latest position to the current Ask or Bid in points. Time Info can count seconds from a chosen trading-day start, and OHLC can return the high or low of an M1 or M5 window within the trading day. Signal Latch can keep a signal once it is true or sample it at a lock time, Math can read a level kept from earlier trading days, ATR can return the median of its latest values, and Risk Lot can size from equity or free margin with a maximum lot. Also MT5 only: the Position Filter count across a list of magic numbers shared by several legs, the Buy and Sell “one send per bar across all legs” option, and the Cooldown Filter timeframe and shared magic list. The same goes for the Buy and Sell “restore the group bar marks at start” list, “one send per Japan day per magic number” and “skip when the lot is 0” options, Time Info as a Japanese day type (month-end bank day, the 5th-multiple days, Wednesday, Thursday and Friday, with the Japanese holiday table), OHLC as the move between two M1 opens of a Japan-time day or as the number of bars, Account Info spread in pips, Constant in pips, New Bar Filter that does not count the bar present at start, Risk Lot sized from the per-pip value and rounded down to the lot step, and Time Exit by a Japan-time closing minute or by a one-second timer. The same goes for MACD with its own EMA recursion (the signal also an EMA), RSI or CCI read as a z-score over the last N bars, Account Info as the best floating pips since entry (optionally as it stood at the start of the current M1 bar), OHLC as a pulse on the first tick of a new bar, New Bar Filter that updates its memory only on ticks that passed the earlier entry filters, Time Filter that never passes Saturday or Sunday, Time Exit that closes positions opened on an earlier server date, and Risk Lot capped by the smaller of the remaining total room and the remaining daily room over a magic number range. The same goes for Signal Latch that keeps its state across a restart within the same trading day, Account Info counting positions that opened since a chosen time and already closed, Account Info as the end of a wait after an attempt shared by several legs (with Alert Node recording the attempt), Buy Stop and Sell Stop with a server-time expiry (retried without it if refused) or skipped when closer than the minimum stop distance, Time Info as whether the daily bar has reached today, the Risk Lot MT4-style commission, Account Info keeping the best floating pips across a restart, and the Position Filter blocking entries while positions from an earlier day remain. Also MT5 only: indicators (RSI, Moving Average, OHLC close, ATR ratio, ADX) read from bars of 10, 15, 20, 30 or 60 minutes built from M1 bars, the New Bar Filter that fires at those bar boundaries once enough bars exist, the Position Filter and Cooldown Filter counting positions that closed in the current minute, Time Exit with a holding time per magic number (also closing positions without a stop loss or from an earlier day), and Time Info as whether the daily closing time has passed.

Period Loss Limit

The Period Loss Limit filter protects an account from a daily-loss rule such as the ones prop firms set. When the result for the current period falls to the limit or worse, the strategy opens no new trades until the next period starts. It then resumes by itself.

  • Period is day, week (starts Monday), month, year (from January 1) or since start. A period starts at 00:00 server time plus Period reset hour. Since start counts from the moment the EA first ran: that time is kept in a terminal global variable named after the Magic Number, so a restart keeps the same starting point (clearing the terminal global variables, or running on another terminal, starts it again). It has no reset hour.
  • How the limit is measured is either a percentage of the balance at the start of the period (default) or an amount in the account currency. Loss limit is the percentage; Loss limit (amount) is the amount, and a value of 0 switches that limit off. The balance at the start is rebuilt from the account’s closed deals in the period, so restarting the EA does not change it.
  • Profit cap (0 = off) stops new entries once the result for the period reaches this much profit. It uses the same unit as the loss limit: a percentage of the starting balance, or an amount. The stop is kept until the period ends, like the loss stop.
  • Drawdown limit (percentage of the starting balance, and/or an amount; 0 = off) stops new entries when the result for the period falls that far below its highest point so far in the same period. The highest point is tracked while the EA is running, so after a restart it starts again from the current result. The percentage and the amount can both be set; whichever is reached first stops the entries. Because the period can be a day, a week, a month, a year or since start, one block covers the five period lengths; add one block per period to use several together. To use only the drawdown limit, set Loss limit (or Loss limit (amount)) to 0.
  • Count floating loss decides whether open trades count (equity) or only closed trades (balance).
  • Close all positions closes the strategy’s own open positions the moment the limit is hit. Without it, open positions stay and only new entries stop.
  • The stop is kept until the period ends, even if the loss shrinks again.
  • The result counts every trade of the account in that period, not only this strategy’s. Deposits and withdrawals are not trades and are ignored.
  • It is an entry stop checked about once per second. A price gap or a slow close can still end below the limit, so keep a margin under the firm’s own limit.
  • Exports to MT5 only. The other targets refuse it with a reason. The Measure tab does not simulate it and lists it among the parts it skipped.

Candle Pattern shapes

The Candle Pattern filter judges the last closed bar (and the bars before it for the patterns that need them). Pin bar and engulfing are the original four. The others (27 shapes in all) are:

PatternBarsRule in short
Bullish / bearish harami2A small body of the opposite colour inside the body of the bar before it
Doji1Body is at most 10% of the bar’s range. The minimum body setting does not apply
Morning / evening star3A long bar, a small-body bar (a third of the first body or less), then a bar of the opposite colour that closes past the middle of the first body
Three white soldiers / three black crows3Three bars of one colour, each closing further and opening inside the previous body
Hammer4Long lower wick, short upper wick, after a decline
Hanging man4The hammer shape after an advance
Shooting star4Long upper wick, short lower wick, after an advance
Tweezer top / bottom2Two bars of opposite colours whose highs (top) or lows (bottom) are within 10% of the larger range
Bullish / bearish belt hold1A long bar (body at least 60% of the range) that opens within 5% of its range from its low (bullish) or high (bearish)
Bullish / bearish harami cross2A doji (body at most 10% of its range) inside the body of the bar before it, which must be the opposite colour. The minimum body setting does not apply
Long-legged doji1A doji with both wicks at least 30% of the range. The minimum body setting does not apply
Dragonfly doji1A doji with a lower wick of at least 60% of the range and an upper wick of at most 10%. The minimum body setting does not apply
Gravestone doji1A doji with an upper wick of at least 60% of the range and a lower wick of at most 10%. The minimum body setting does not apply
Piercing line2A bullish bar that opens below the close of a bearish bar, then closes above the middle of that bar’s body but below its open
Dark cloud cover2A bearish bar that opens above the close of a bullish bar, then closes below the middle of that bar’s body but above its open
Inside bar (bullish / bearish)2The last closed bar’s high is below and its low above the bar before it, and it closes up (bullish) or down (bearish)

The hammer, hanging man and shooting star use the same Wick / body ratio setting as the pin bars. “After a decline” means the close two bars back is below the close four bars back. Patterns are judged on closed bars only. These patterns export to MT5, MT4, Pine and cTrader; Python does not support the Candle Pattern block.

Stop Loss and Take Profit modes

The Stop Loss and Take Profit blocks each have a mode setting. Fixed pips and ATR multiple are the original modes. Two more are available.

BlockModeWhat it does
Stop LossHigh/low of the last N barsThe stop is placed beyond the lowest low (buy) or the highest high (sell) of the N bars before the entry bar, plus an optional gap in pips. It is computed once from those bars, so it does not loosen when a new bar arrives
Take ProfitRisk-reward ratioThe target is the stop distance multiplied by the ratio. The stop distance is read the first time the EA sees the position with a stop loss, and remembered for that position

Both modes take a minimum and a maximum distance in pips (0 = off). The minimum is applied first and the maximum second, so when they conflict the maximum wins.

  • The risk-reward target needs a stop loss on the position. Put the Stop Loss block in the same flow (the high/low mode is the usual pairing). If the position has no stop, the target is left alone.
  • The remembered stop distance is lost if the EA restarts. After a restart the distance is read again from the stop currently set on the position, which may already have moved.
  • These modes export to MT5 only. The other targets refuse them with a reason. The Measure tab simulates both.

Risk Lot: risk profile and amount

The Risk Lot block (and the lot section of the settings panel) sizes each trade from the risk you accept and the stop distance. Two optional fields change how that risk is set. Both are off by default, so existing flows generate the same MetaTrader code.

FieldWhat it does
Risk profileSix steps that multiply the risk amount: 1 = x1/3, 2 = x1/2, 3 = x1 (standard), 4 = x1.5, 5 = x2, 6 = x3. The lot scales with it, because the lot is the risk amount divided by the stop loss risk per lot. “Off” leaves the risk as it is
Risk amountA fixed amount in the account currency per trade, used instead of the risk percentage. 0 = off, and the percentage is used
  • The profile multiplies whichever base is in use, the percentage or the amount, so the two can be combined. With a risk amount of 100 and profile 5, each trade risks 200.
  • The lot is still rounded to the lot step and held between the minimum and maximum lot of the symbol, so a very small amount or a 1/3 profile can end up at the minimum lot.
  • The exported EA gets a RiskAmount input when an amount is set (the RiskPercent input is then not generated) and a RiskLevel input when a profile is chosen, so both can be changed in the tester without regenerating.
  • These two fields export to MT5 only. The other targets refuse them with a reason. A Risk Lot block with neither field set exports as before.

Weekday Filter: week of the year and n-th weekday

The Weekday Filter block (and the weekday filter in the settings panel) can narrow the allowed days further. Both fields are empty by default, so existing flows generate the same MetaTrader code.

FieldWhat it does
Weeks of the yearA list such as 1-4,10,52. New entries are allowed only in those weeks. Numbers outside 1-53 are ignored; an empty field means every week
Week numberingISO (default) or from Jan 1
n-th weekday of the monthA list such as 1,3 (1-5). The n-th time the weekday has come round in the month: day 1-7 is the 1st, 8-14 the 2nd, and so on. An empty field means all

How the weeks are counted:

  • ISO follows ISO 8601. Weeks start on Monday, and week 1 is the week that holds the first Thursday of the year. A year has 52 or 53 weeks, so the first days of January can belong to week 52 or 53 of the previous year, and the last days of December to week 1 of the next.
  • From Jan 1 makes January 1-7 week 1, January 8-14 week 2, and so on in blocks of seven days, whatever the weekday. The last block of a year is week 53 (one day, or two in a leap year).

The week is read from the same clock and day as the weekday checkboxes (the Time basis setting, and the bar shift when one is set). The weekday checkboxes, the week list and the n-th weekday list all have to match for the filter to pass. For example, only Friday checked with n-th = 1 means the first Friday of the month.

These two fields export to MT5 only. The other targets refuse them with a reason. A weekday filter with both empty exports as before.

Open Buy / Open Sell: signal only

The Open Buy and Open Sell blocks have a Signal only (no order) property. It is set to Place the order (normal) by default, so existing flows generate the same MetaTrader code as before.

SettingWhat happens when the connected conditions are true
Place the order (normal)The order is sent, as before
Draw an arrow onlyNo order is sent. A buy arrow (blue) or a sell arrow (red) is drawn on the chart at the current price
Draw a vertical line onlyNo order is sent. A vertical line (blue for buy, red for sell) is drawn at the current bar
  • At most one mark is drawn per bar and per block, and the marks stay on the chart so you can look back over them, in the Strategy Tester visual mode or on a live chart.
  • The other settings of the block (stop loss, take profit, maximum positions, comment) and the hedging, position-count and lot rules are not used while it is on, because nothing is traded.
  • This is available for MT5 and MT4. The other targets refuse it with a reason.

Linear Regression

The Linear Regression block fits a straight line (least squares) to the last N prices and gives you one of two numbers.

OutputWhat it is
Regression line value (newest bar)Where the fitted line sits at the newest bar of the window
Regression line slope (per bar)How much the fitted line rises or falls per bar, in price units
  • Settings: period (2 or more), applied price, shift and timeframe. Compare the slope with 0 to read the direction, or the value with the price to read the distance from the line.
  • This is available for MT5 and MT4. The other targets refuse it with a reason.

Pivot Points

The Pivot Points block gives a level worked out from the last finished day, week or month, using the classic formulas on that period’s high H, low L and close C.

LevelFormula
P(H + L + C) / 3
R1 / S12P − L / 2P − H
R2 / S2P + (H − L) / P − (H − L)
R3 / S3H + 2(P − L) / L − 2(H − P)
  • Settings: the level, the period it is based on (previous day, week or month), shift and timeframe. The level does not move while the next period is running; it changes on the first bar of a new period.
  • The level and the period are fixed when the code is written, so they are not inputs of the EA.
  • This is available for MT5 only. The other targets refuse it with a reason. The Measure tab does not calculate it, so a strategy that uses it is not simulated there.

KST (Know Sure Thing)

The KST block adds four averaged rates of change with the weights 1, 2, 3 and 4: KST = 1·SMA(ROC1) + 2·SMA(ROC2) + 3·SMA(ROC3) + 4·SMA(ROC4). Each rate of change is 100 × (close − close N bars ago) / close N bars ago. The signal line is the average of the KST over the signal period.

  • Settings: four rate-of-change periods (10, 15, 20, 30) and four averaging periods (10, 10, 10, 15) by default, the signal period (9), the output (KST or signal line), shift and timeframe. It uses closing prices.
  • The signal period is an input of the EA only when the output is the signal line.
  • This is available for MT5 only. The other targets refuse it with a reason. The Measure tab does not calculate it, so a strategy that uses it is not simulated there.

Correlation

The Correlation block gives the Pearson correlation between the closes of the chart’s symbol (or the symbol set on the block) and a second symbol over the last N bars: +1 when they move the same way, −1 when they move opposite ways, near 0 when unrelated.

  • Settings: period (2 or more), the symbol to compare with, shift and timeframe. The two series are lined up by bar number, so both symbols need history on the chosen timeframe; if either has fewer bars than needed the EA skips that tick. The result is 0 when one of the series does not move at all.
  • The comparison symbol is written exactly as typed, so use the name your broker uses.
  • This is available for MT5 only. The other targets refuse it with a reason. The Measure tab does not calculate it, so a strategy that uses it is not simulated there.

Partial Close: step table

By default Partial Close closes one share of every matching position each time its condition is true. The optional Step table closes a position in stages as its profit grows, with up to 25 steps.

  • Write steps as profit pips:amount, separated by commas, for example 20:50,40:25. When a position’s profit reaches 20 pips, 50 is closed; at 40 pips, another 25.
  • Amount is a percentage of the position’s first size in percent mode, and a number of lots in lots mode. Steps are sorted by profit, so the order you type does not matter.
  • Each step fires once per position. The first size and the number of steps done are kept in terminal global variables named after the Magic Number and the ticket, so a restart does not repeat a step.
  • A step whose amount is as large as what is left closes the position. A step smaller than the symbol’s minimum lot is skipped.
  • The block’s own condition has to be true at the moment the profit is reached, so wire it to a condition that stays true while the position is open if you want every step to fire.
  • Leave the table empty to keep the single close described above; nothing else changes. When the table is used, Close amount is not used.
  • Hedging accounts only: on a netting account the position’s ticket does not change when you add to it, so the recorded first size can be out of date. Single symbol only (not the multi-symbol mode).
  • Exports to MT5 only; the other targets refuse it with a reason. The Measure tab does not simulate the steps and lists partial_close:steps among the parts it skipped.

Alert: periodic notification

By default Alert sends its message every time its condition is true. Two optional settings change that.

  • Minutes between alerts: when it is 1 or more, a new alert is sent only if that many minutes have passed since the last one. 0 keeps the default.
  • Add balance, equity and open positions: appends the account balance, equity and number of open positions to the message.
  • Leave both off and the block behaves as before. Wire it to a condition that stays true (for example an always-true condition) if you want a regular status message.
  • The last-send time is kept in the running EA only, so it starts again after a restart. This is available for MT5 only; the other targets refuse it with a reason. The Measure tab does not simulate alerts.

Time base: summer-time shift

The Time base of the time-based filters can be set to Server time, minus 1 hour during summer time or to Japan time. Both use the Server DST rule input (US or EU) to find the summer-time period, so the window stays at the same clock time all year. They are available for MT5 only. The Measure tab does not apply the shift: a flow that uses it is listed as unsupported there.

Broker symbol prefix and suffix

Settings has Text before symbol names and Text after symbol names. They are added to the symbols named on blocks and to the target symbols list, so EURUSD becomes EURUSDm with the suffix m. The chart’s own symbol is not changed. Both are inputs, so they can be changed in the EA without a rebuild. Empty by default. Quotes, backslashes and spaces are removed. Available for MT5 only (the multi-symbol mode is MT5 only).

Swing High / Low

The Swing High / Low block gives the price of a recent swing peak or swing trough, so you can use it as a resistance or support level. A closed bar counts as a swing high when its high is strictly higher than the highs of the N bars on each side of it (a swing low: its low is strictly lower than the lows of those bars). Only closed bars are used, so a swing is known N bars after it formed and never changes afterwards. The bar that is still forming is never read.

SettingWhat it doesDefault
TypeHigh (swing high, resistance) or Low (swing low, support). Fixed when the code is writtenHigh
Bars on each sideHow many bars on the left and on the right must be lower (higher). 1 to 505
Which swingCounted from the newest: 1 is the latest swing, 2 the one before it. 1 to 201
Max bars to look backHow far back the search goes. 1 to 999100
  • The three numbers are inputs of the EA. Timeframe is set on the block; the block has no shift setting.
  • If the search range holds fewer swings than “Which swing” asks for, or the chart has too little history, the EA skips that tick.
  • Connect it to a Compare or Cross block to test the price against the level. Unlike the Fractals block, which has 2 bars on each side and returns only the latest one, you choose the bars on each side and which swing to read.
  • This is available for MT5 and MT4. The other targets refuse it with a reason. The Measure tab does not calculate it, so a strategy that uses it is not simulated there.

Chart Pattern Signal

The Chart Pattern Signal block is a condition. It is true on one closed bar only: the first bar whose close breaks the neckline (or, for a triangle, the flat line) of the chosen pattern, in the direction of the break. It is false on every other bar, and it fires once per pattern: a bar does not count when an earlier closed bar since the last pattern point has already closed beyond the line.

Patterns are found only from swing points. A closed bar is a swing high when its high is strictly higher than the highs of the N bars on each side of it (a swing low: its low is strictly lower than the lows of those bars), the same definition as the Swing High / Low block. The bar that is still forming is never read, and the swings do not change after they are known.

Tolerance is a percentage of price. Two prices count as “the same height” when they differ by no more than Tolerance % of their average price. The same distance (T below) is also the minimum size of the pattern’s height.

PatternRule (A is the newest swing of the kind, B the one before it, and so on)Signal
Double TopTwo newest swing highs within T of each other. The neckline is the lowest swing low strictly between them. The lower peak stands at least T above the neckline. No bar since the newest peak made a high more than T above the higher peakSell: the closed bar’s close is below the neckline
Double BottomThe mirror image: two newest swing lows within T, the neckline is the highest swing high between them, the higher trough stands at least T below itBuy: close above the neckline
Head and ShouldersThree newest swing highs: left shoulder, head, right shoulder. The head is higher than both shoulders by at least T, and the shoulders are within T of each other (T is Tolerance % of the head price). The neckline is the straight line through the lowest swing low between the left shoulder and the head and the lowest swing low between the head and the right shoulder, extended to the current bar. No higher high than the head since the right shoulderSell: close below the neckline
Inverse Head and ShouldersThe mirror image with three swing lows and the highest swing highs between themBuy: close above the neckline
Ascending TriangleTwo newest swing highs within T of each other give a flat line (the higher of the two). Two swing lows after the first of those highs, the older one lower than the newer one by at least T, and the newer one at least T below the flat lineBuy: close above the flat line
Descending TriangleThe mirror image: flat line from two swing lows within T (the lower of the two), two falling swing highsSell: close below the flat line
SettingWhat it doesDefault
PatternOne of the six patterns above. Fixed when the code is writtenDouble Top
Bars each side of a swingHow many bars on the left and on the right a swing must beat. 1 to 503
Tolerance (% of price)The “same height” distance and the minimum pattern height. 0.01 to 50.1
Max bars to look backHow far back swings are searched. 1 to 999150
TimeframeThe bars to read. Current chart by defaultCurrent
  • Strength, Tolerance and Max bars to look back are inputs of the EA. If the chart has too little history, the block stays false.
  • The signal has a direction built in (sell for a break down, buy for a break up). Connect it to the matching Open Buy or Open Sell block; the block does not open trades by itself.
  • A pattern is always read from the newest swings only. An older pattern that is no longer the newest sequence of swings is not found.
  • This is available for MT5 and MT4. The other targets refuse it with a reason. The Measure tab does not calculate it, so a strategy that uses it is not simulated there.

Staged Trailing Table

The Staged Trailing Table block moves the stop loss by a different rule at each stage of profit. You write a table of up to 50 stages. Each stage has a start (how far the trade is in profit) and a rule. When the profit reaches a stage, that stage’s rule is used. If several stages are reached, the one with the highest start applies. The stop loss only ever moves toward profit, never back.

RuleWhat it doesSettings
Fixed distanceKeeps the stop loss a fixed distance behind the current priceDistance (pips)
Break-even + offsetMoves the stop loss to the entry price plus (or minus, for a sell) an offsetOffset (pips)
ATR trailKeeps the stop loss a multiple of ATR behind the current priceATR period, multiplier
Previous bars high/lowPuts the stop loss just beyond the lowest low (buy) or highest high (sell) of the last closed barsBuffer (pips), number of bars
StepLocks X pips of profit for every Y pips the trade movesLock X (pips), per Y (pips)
SettingWhat it doesDefault
Unit of the stage startA multiple of the initial stop loss distance, or profit in pips. One unit for the whole tableMultiple of the initial SL distance
Stage tableOne row per stage: start, rule and its two numbers. Up to 50 rowsBreak-even at 1x, ATR trail (14, x2) at 2x, fixed 10 pips at 3x
SL distance for positions without a stop lossUsed as the initial stop loss distance when a position has no stop loss20 pips
Smallest stop moveA new stop loss is sent only if it improves the current one by at least this many pips1 pip
  • Turn it on in the Exit strategies section of the Settings panel. It is an exit setting, not a block you drag onto the canvas. The stage table is edited as rows (start, rule, two numbers) and starts with 3 stages.
  • The initial stop loss distance is read from the position the first time the block sees it and kept while the position is open (in a MetaTrader global variable named EAB_STG_<magic>_<position>).
  • The stop loss is never placed closer than the broker’s minimum stop distance. If a rule would break it, that tick is skipped.
  • The block works on the positions of this EA (same magic number) and runs on the closed bar like the other exit blocks. It does not change the existing Trailing Stop and Break-Even blocks.
  • The table is stored as a text such as 1:be:0:0;2:atr:14:2;3:fix:10:0 and each number becomes an input of the EA, so you can optimize them in the Strategy Tester.
  • This is available for MT5 and MT4. The other targets refuse it with a reason. The Measure tab does not simulate it.

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); Shift (0–100); Variable NameMT5, MT4, Pine—

Indicators

57 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Moving Average maMoving Average (SMA/EMA/SMMA/LWMA)Period (1–9,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); High/low basis (High and low / Close); 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
Linear Regression linregLinear Regression — the value, or the slope, of a straight line fitted to the last N pricesPeriod (2–999); Output (Regression line value (newest bar) / Regression line slope (per bar)); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4—
Pivot Points pivotPivot Points - a base line and the resistance and support lines around it, from the last finished day's (or week's, month's) high, low and closeLevel (P / R1 / R2 / R3 / S1 / S2 / S3); Based on (Previous day / Previous week / Previous month); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5—
KST (Know Sure Thing) kstKST - four rates of change, each averaged, added with weights 1, 2, 3 and 4. The signal line can be chosen tooRate of change period 1 (1–999); Rate of change period 2 (1–999); Rate of change period 3 (1–999); Rate of change period 4 (1–999); Average period 1 (1–999); Average period 2 (1–999); Average period 3 (1–999); Average period 4 (1–999); Signal period (1–200); Output (KST / Signal line); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5—
Correlation correlationCorrelation - how closely this symbol's closes move with another symbol's (-1 to +1)Period (2–999); Symbol to compare with; Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5—
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—
Swing High / Low swing_levelsSwing High / Low - the price of the latest swing peak or troughType (High (swing high = resistance) / Low (swing low = support)); Bars on each side (1–50); Which swing (1 = latest) (1–20); Max bars to look back (1–999); Timeframe (10 options); Variable Name; Symbol (blank = current chart)MT5, MT4—
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 (10 options); Variable NameMT5, MT4, Pine, cTrader—
Account Info account_infoAccount info (Balance/Equity/Profit)Info Type (15 options); Variable NameMT5, MT4, Pine, cTrader—
Constant constantOutput a fixed valueValue (-999,999–999,999); Variable NameAll targets—

Conditions

12 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) / Band walk (bars closing outside the Bollinger Bands, MT5 only) / Pin bar (wick ratio, MT5 only)); 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 truePass only once per day (first true tick of the day) (No / Yes)All targetsSearch condition
OR Gate or_gatePass when any condition is trueNoneMT5, MT4, Pine, cTraderSearch condition
Chart Pattern Signal chart_patternChart pattern - true only on the bar that closes through the neckline of a double top/bottom, head and shoulders, or trianglePattern (Double Top (sell on break down) / Double Bottom (buy on break up) / Head and Shoulders (sell on break down) / Inverse Head and Shoulders (buy on break up) / Ascending Triangle (buy on break up) / Descending Triangle (sell on break down)); Bars each side of a swing (1–50); Tolerance (% of price) (0.01–5); Max bars to look back (1–999); Timeframe (10 options)MT5, MT4—
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—
Level Latch level_latchRemembers a value (e.g. the day high) at a set time and is true once, on the first tick that breaks itFires when the price breaks (Above the remembered value / Below the remembered value); Remember at hour (server time, 0-23) (0–23); Remember at minute (0-59) (0–59); Remembering window (minutes) (1–1,440); Remember again on every new bar inside the window (No / Yes); Stop watching after (hours, 0 = until remembered again) (0–168); Stay true after the break (minutes, 0 = that tick only) (0–1,440)MT5—
Math Operations math_opArithmetic on two inputsOperation (+ (add) / - (subtract) / × (multiply) / ÷ (divide)); Variable NameMT5, MT4, Pine, cTrader—

Filters

22 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Time Filter time_filterTrading time restrictionStart Hour (0–23); End Hour (0–23); Start Minute (0-59) (0–59); End Minute (0-59) (0–59); Time basis (Server time / UTC / Server time, minus 1 hour during summer time (MT5 only) / Japan time, summer-time shift applied automatically (MT5 only))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 bars form the chosen candlestick pattern (pin bar, engulfing, harami, morning star, belt hold and more, 27 in all)Pattern (27 options); 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); Measured from (Open positions / Trade history incl. closed (seconds) / Trade history incl. closed (bars) / Last close in history (seconds) / Last close in history (bars) / Last order sent (MT5 only, released on the next bar)); Bars to wait (1 = same bar) (1–10,000)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); Week of year (e.g. 1-4,10); Week numbering (ISO 8601 (Monday start) / From Jan 1, 7-day blocks); n-th weekday of month (e.g. 1,3)MT5, MT4, Pine, cTraderSearch filter
Drawdown Filter drawdown_filterStop trading when max drawdown exceededMax DD (%) (1–100); Base (Balance / Equity)MT5, MT4, Pine, cTrader—
Period Loss Limit period_loss_filterStops new entries for the rest of the period (day / week / month / year / since start) once the period loss reaches the limit. The limit can be an amount, and a profit cap can be set too. Protects against prop-account daily-loss rulesPeriod (Day / Week (starts Monday) / Month / Year (from January 1) / Since start (from the first run of the EA)); How the limit is measured (% of the period-start balance / Amount (account currency)); Loss limit (% of period-start balance) (0–100); Loss limit (amount, account currency, when measured by amount, 0=off) (min 0); Profit cap (same unit as above, 0=off) (min 0); Drawdown limit (fall from the period's peak, % of the period-start balance, 0 = off) (0–100); Drawdown limit (fall from the period's peak, amount in account currency, 0 = off) (min 0); Count floating loss (Yes / No); Period reset hour (server time) (0–23); Close all positions when the limit is hit (No / Yes)MT5—
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

16 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); Signal only (no order) (Place the order (normal) / Draw an arrow only / Draw a vertical line only); 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); Signal only (no order) (Place the order (normal) / Draw an arrow only / Draw a vertical line only); 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); Exit window length (min, 0 = legacy) (0–1,440); 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)); Positions summed (Target side only / Buys and sells mixed (closes the target side only))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) (0.1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Count pending orders per (Order type (one at a time) / This node (up to the max below)); Max pending orders (per node) (1–50); Skip if the price is already taken (No / Yes); Same-price tolerance (points) (0–1,000); Allow offset 0 / fractional pips (No / Yes); 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) (0.1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Count pending orders per (Order type (one at a time) / This node (up to the max below)); Max pending orders (per node) (1–50); Skip if the price is already taken (No / Yes); Same-price tolerance (points) (0–1,000); Allow offset 0 / fractional pips (No / Yes); Trade symbol (blank = current chart)MT5, MT4, Pine, cTrader—
Alert alert_nodeAlert notificationMessage; Periodic alert: minutes to wait after the last send (0 = every time the condition is true; MT5 only) (0–100,000); Add balance, equity and open position count to the message (MT5 only) (No / Yes); 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); Step table (profit pips:amount, comma separated, up to 25 steps, e.g. 20:50,40:25; empty = the single close above; MT5 only). Amount is a % of the first position size, or lots in lots mode; each step fires once per positionMT5, MT4, Pine, cTrader—
Pending Orders Manager pending_lifecycleDeletes pending orders by weekday/hour or age, and remembers their prices to re-place them laterOrders to manage (Buy and sell / Buy only / Sell only); Order kind (Stop and limit / Stop only / Limit only); Delete in a time window (No / Yes); Window weekday (0=Sun ... 6=Sat, -1 = every day) (-1–6); Window start hour (server time) (0–24); Window end hour (exclusive, 24 = midnight) (0–24); Also delete orders older than (hours, 0 = off) (0–720); Forget remembered prices while the window is active (No / Yes); Remember prices and re-place them later (No / Yes); Memory slots (1-32) (1–32); Remember at hour (server time) (0–23); Delete the orders after remembering them (No / Yes); Re-place at hour (server time) (0–23); Expiration of re-placed orders (hours) (1–720); Skip prices already pending or open (No / Yes); Drop stale levels against the connected value (buys below it, sells above it) (No / Yes); CommentMT5—

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); Risk profile (MT5 only) (Off (use the values above) / 1: lot x 1/3 / 2: lot x 1/2 / 3: lot x 1 (standard) / 4: lot x 1.5 / 5: lot x 2 / 6: lot x 3); Risk amount (account currency, 0 = use %, MT5 only) (0–100,000,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

8 blocks in this category.

BlockWhat it doesSettingsExports toIn the Miner
Trailing Stop trailing_stopTrailing stop lossTrailing Mode (9 options); Trail Distance (pips) (0.1–100,000); Step (pips) (0.1–100,000); 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); Distance unit (distance mode) (Whole pips / Pips (decimals allowed) / Points (1/10 pip on 5-digit symbols)); When it follows (distance mode) (Standard (once in profit) / Before break-even only (pulls the SL up while it is worse than entry) / After break-even only (moves the SL by one step at a time)); Separate values for sells (No / Yes); Trail distance for sells (0.1–100,000); Step for sells (0–100,000); Start distance (0 = same as the trail distance, negative = may start before entry) (-100,000–100,000); Start distance for sells (0 = same as buys) (-100,000–100,000); Check every N seconds on the GMT clock (0 = every tick) (0–59); Check once per N minutes (0 = every tick) (0–1,440)MT5, MT4, Pine, cTrader—
Break Even break_evenMove SL to entry when in profitDistance unit (pips (fixed width) / % of price (symbol-class independent) / pips (decimals allowed) / points (1/10 pip on 5-digit symbols)); Trigger (pips) (0.1–100,000); Lock (pips) (0–100,000); Trigger (% of entry price, when unit is %) (0.01–100); Lock (% of entry price, when unit is %) (0–100); Separate values for sells (No / Yes); Trigger for sells (0.1–100,000); Lock for sells (0–100,000); Sell break-even formula (Correct (stop moves below the entry price) / Compat: sells use the buy formula (reproduces EAs with that quirk))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—
Staged Trailing Table staged_trailStaged trailing table - switches the stop-loss rule by profit stageUnit of the stage start (Multiple of the initial SL distance / Profit in pips); Stage table (up to 50 stages); SL distance for positions without a stop-loss (pips) (0.1–10,000); Smallest stop move worth sending (pips) (0–1,000)MT5, MT4—
Take Profit take_profitTake profit level (Fixed pips / ATR multiple / Risk-reward ratio)TP Mode (Fixed pips / ATR multiple / Risk-reward ratio); TP (pips) (1–10,000); ATR Multiple (0.1–20); ATR period (ATR mode) (1–999); Risk-reward ratio (x the stop distance, RR mode) (0.1–50); TP min (pips, RR mode, 0=off) (0–10,000); TP max (pips, RR mode, 0=off) (0–10,000)All targets—
Stop Loss stop_lossStop loss level (Fixed pips / ATR multiple / High-low of the last N bars)SL Mode (Fixed pips / ATR multiple / High/low of last N bars); 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); Bars for high/low (last N, high/low mode) (1–500); Gap beyond the high/low (pips, high/low mode) (0–1,000); SL min (pips, high/low mode, 0=off) (0–10,000); SL max (pips, high/low mode, 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—