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.

Categories
| Category | Blocks | Used by the Miner search |
|---|---|---|
| Utility | 2 | 0 |
| Indicators | 57 | 49 |
| Price / Info | 5 | 1 |
| Conditions | 12 | 7 |
| Filters | 22 | 7 |
| Actions | 16 | 0 |
| Money Mgmt | 7 | 0 |
| Exit Strategy | 8 | 0 |
| All categories | 129 | 64 |
Blocks the Miner can use
The Strategy Miner does not search with every block. A search draws from 52 parts, of which 6 are selected by default. It can also add 7 filters and 7 conditions to a candidate. Two of the parts, Consecutive Bars and MA Perfect Order, are conditions, so they also appear in the condition list below.
Search parts
| Block | Selected by default | Used as | Needs volume data |
|---|---|---|---|
Moving Average ma | Yes | A value that conditions compare | No |
RSI rsi | Yes | A value that conditions compare | No |
Bollinger Bands bb | Yes | A value that conditions compare | No |
MACD macd | Yes | A value that conditions compare | No |
Stochastic stochastic | Yes | A value that conditions compare | No |
Donchian Channel donchian | Yes | A value that conditions compare | No |
ATR atr | No | A value that conditions compare | No |
Std Deviation stddev | No | A value that conditions compare | No |
Williams %R williams_r | No | A value that conditions compare | No |
CCI cci | No | A value that conditions compare | No |
Momentum momentum | No | A value that conditions compare | No |
ROC roc | No | A value that conditions compare | No |
DPO dpo | No | A value that conditions compare | No |
TRIX trix | No | A value that conditions compare | No |
DeMarker demarker | No | A value that conditions compare | No |
ADX adx | No | A value that conditions compare | No |
ADX Wilder adx_wilder | No | A value that conditions compare | No |
RVI rvi | No | A value that conditions compare | No |
Ultimate Oscillator ultimate | No | A value that conditions compare | No |
OsMA osma | No | A value that conditions compare | No |
Awesome Osc awesome | No | A value that conditions compare | No |
Accelerator Osc accelerator | No | A value that conditions compare | No |
Bears Power bears_power | No | A value that conditions compare | No |
Bulls Power bulls_power | No | A value that conditions compare | No |
Parabolic SAR sar | No | A value that conditions compare | No |
Heiken Ashi heiken_ashi | No | A value that conditions compare | No |
DEMA dema | No | A value that conditions compare | No |
TEMA tema | No | A value that conditions compare | No |
Hull MA hma | No | A value that conditions compare | No |
Envelope envelope | No | A value that conditions compare | No |
Keltner Channel keltner | No | A value that conditions compare | No |
Adaptive MA ama | No | A value that conditions compare | No |
FrAMA frama | No | A value that conditions compare | No |
VIDyA vidya | No | A value that conditions compare | No |
Consecutive Bars consecutive_bars | No | A condition | No |
MA Perfect Order ma_perfect_order | No | A condition | No |
Ichimoku ichimoku | No | A value that conditions compare | No |
Alligator alligator | No | A value that conditions compare | No |
Gator Osc gator | No | A value that conditions compare | No |
OHLC ohlc | No | A value that conditions compare | No |
Supertrend supertrend | No | A value that conditions compare | No |
QQE qqe | No | A value that conditions compare | No |
VLDMI vldmi | No | A value that conditions compare | No |
Opening Range Breakout session_orb | No | A value that conditions compare | No |
OBV obv | No | A value that conditions compare | Yes |
Volumes volumes | No | A value that conditions compare | Yes |
Accum/Distrib ad | No | A value that conditions compare | Yes |
BW Market Facil bwmfi | No | A value that conditions compare | Yes |
Money Flow Index mfi | No | A value that conditions compare | Yes |
Force Index force_index | No | A value that conditions compare | Yes |
Chaikin Osc chaikin | No | A value that conditions compare | Yes |
VWAP vwap | No | A value that conditions compare | Yes |
Filters and conditions
Search filters
| Block | What it does |
|---|---|
Time Filter time_filter | Trading time restriction |
Session Filter session_filter | Trading session filter with a selectable time basis (server time or UTC). Use Session (auto DST) for windows that follow daylight saving. |
Weekday Filter weekday_filter | Allow trading on specific weekdays only |
Gotobi Filter gotobi_filter | Trade only on Gotobi days (5th,10th,15th,20th,25th,month-end). Ideal for Nakane trade. |
High-Low Range Filter hl_range_filter | Skip entry when the N-bar high-low range is out of range (filters volatile/quiet markets) |
Candle Pattern Filter candle_pattern | Skip entries unless the last closed bars form the chosen candlestick pattern (pin bar, engulfing, harami, morning star, belt hold and more, 27 in all) |
MA Distance Filter ma_distance | Blocks entry when the price-to-MA distance (pips) is out of range (pullback / over-extension filter) |
Search conditions
| Block | What it does |
|---|---|
Cross cross | Crossover / Crossunder detection |
Compare compare | Compare two values (>, <, ==, !=, >=, <=) |
AND Gate and_gate | Pass only when all conditions are true |
OR Gate or_gate | Pass when any condition is true |
NOT Gate not_gate | Invert condition (NOT) |
Consecutive Bars consecutive_bars | Checks whether the last N closed bars moved in the same direction (up/down). Composable with other conditions via AND/OR |
MA Perfect Order ma_perfect_order | Checks whether multiple MAs are aligned in period order (perfect order). Composable with other conditions via AND/OR |
Why a block is not exported
MT5 can output every block. The other targets cannot always do the same. When a design contains a block that the chosen target cannot output, the Builder says so. It does not leave the block out. The table below lists each reason, the targets it applies to, and what triggers it.
| Target | Why a block is not exported | Applies to |
|---|---|---|
| MT4, Pine, cTrader, Python | Multi-symbol flows (a symbol on a part, or a target_symbols pair loop) are MT5 only; the MT4 export handles the single chart symbol | Any block with its own symbol set, or a flow that loops over a list of symbols |
| Pine, cTrader, Python | Parts that decide in the middle of a bar (every tick) are MT5/MT4 only; every other target decides at bar close and fills at the next bar open | Level 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, Python | Calling an external MetaTrader indicator (.ex5/.ex4) by name is MetaTrader only | iCustom |
| Pine, cTrader, Python | Linear 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 it | Linear Regression |
| Pine, cTrader, Python | Swing 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 counted | Swing High / Low |
| Pine, cTrader, Python | Chart 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 counted | Chart Pattern Signal |
| Pine, cTrader, Python | The 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 moved | Staged Trailing Table |
| MT4, Pine, cTrader, Python | Pivot 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 them | Pivot Points |
| MT4, Pine, cTrader, Python | Step-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 way | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 way | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | KST (four averaged rates of change added with weights) is exported to MT5 only; this target has not been checked against it | KST (Know Sure Thing) |
| MT4, Pine, cTrader, Python | Correlation between two symbols is exported to MT5 only; this target has not been checked against how the bars of the two symbols are lined up | Correlation |
| Pine, Python | The measured spread is not part of the candle data on this target | Spread Filter; Price block set to Spread |
| Pine, Python | Free margin depends on the broker margin model and cannot be reproduced on this target | Account Info block set to Free Margin |
| MT4, Pine, cTrader, Python | Pending-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 type | Pending Orders Manager |
| MT4, Pine, cTrader, Python | Remembering 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 close | Level Latch |
| MT4, Pine, cTrader, Python | Extended 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 only | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | The 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 way | Period Loss Limit |
| Pine, cTrader, Python | Settings that rely on the MetaTrader account model (hedging control, account/broker restriction) are MetaTrader only | The hedging control, cashback hedge and account restriction settings |
| Pine | A part that reads the forming bar (shift 0) cannot be expressed in Pine (it decides at bar close). Use shift 1 or more | Indicator blocks and the OHLC block when the shift is 0 (the bar that is still forming) |
| Python | A part that reads the forming bar (shift 0) cannot be expressed in Python (it decides at bar close and fills at the next bar open). Use shift 1 or more | Indicator blocks and the OHLC block when the shift is 0 (the bar that is still forming) |
| Python | This target has no popup/push/email notification channel | Alert |
| cTrader | A part that reads another timeframe is not exported to this target: how the higher-timeframe bar index maps is not confirmed in the official docs | Multi Timeframe |
| cTrader | Parabolic SAR: the MT start-up state (initial direction and extreme point) is not verified against cTrader, so identical values are not guaranteed and it is not exported | Parabolic SAR |
| MT4, Pine, cTrader, Python | Minute-precision time windows (start/end minute, exit window length) are MT5 only; this target stops at whole hours, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Blocking re-entry from closed-trade history is MT5 only; this target can only see open positions | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Counting 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Counting the open positions of the same symbol whatever their magic number is MT5 only; this target counts only this EA, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Allowing 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Restoring 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | The 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Sending 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 day | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Skipping the order when the lot is 0 is MT5 only; this target rounds up to the minimum lot and sends, so trades would differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Closing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Running 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Counting 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Computing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Updating 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Adding "never on Saturday or Sunday" to a time filter is MT5 only; this target would also pass weekends, so trades would differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Closing positions opened on an earlier server date at the date change is MT5 only; this target would carry them over, so exits would differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Capping 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Sizing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Remembering 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Remembering 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Blocking 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Saving 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Counting 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Placing 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 EA | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Skipping a pending order whose price is closer to the market than the minimum stop distance is MT5 only; this target would send it and fail | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading whether the daily bar has caught up with the current date as a value is MT5 only; this target cannot check the sync | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Building 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Adding 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Blocking a new entry when this Magic closed in the same minute is MT5 only; this target would re-enter at once | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Closing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 test | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Placing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Setting 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 differ | A block setting, as described in the reason |
| Pine, cTrader, Python | The 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 sent | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Narrowing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Sizing 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 differently | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Counting 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Blocking re-entry from the time of the last close is MT5 only; this target can only see open positions | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | An AND gate that passes once per day is MT5 only; this target cannot keep a per-day state, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A minimum holding time on a closing node is MT5 only; this target would also close a fresh position, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Applying a filter to exits only is MT5 only; on this target it would also block entries, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Gating nanpin add-ons with the entry conditions is MT5 only; on this target add-ons ignore the entry conditions, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Measuring the ATR filter on a closed bar is MT5 only; this target measures the forming bar, so values would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Applying a filter to new entries only is MT5 only; on this target it would also block exits, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Mixing buy and sell floating pips into one total and closing one side is MT5 only; this target sums each side separately | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading the second of the time as a value is MT5 only; this target stops at hour, minute and weekday, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Break-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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Starting the trail at "greater than or equal" is MT5 only; this target uses "greater than", so trades at the boundary would differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Feeding 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Retrying 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 naked | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Registering 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 missed | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Placing 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 slips | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | An 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 have | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Tagging 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Free-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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Remembering 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Basket 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Cancelling pending orders when an indicator condition holds is MT5 only; this target cancels by time window only, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A gate that passes only on the first tick of a shifted day is MT5 only; this target evaluates every tick, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Holding the high/low fixed until the shifted day changes is MT5 only; this target updates every bar, so trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Limiting 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Order 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Closing 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A stop order with no expiry (good till cancelled) is MT5 only; this target sets expiry differently, so it would not behave the same | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Skipping 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 same | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Scanning 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Freezing 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Moving 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 times | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Making 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Stepping 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Bollinger 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | The 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Taking 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Running 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Closing 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Using 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 account | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | ADX, +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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | ATR with Wilder smoothing (1/period) is MT5 only; this target uses the simple-average ATR, so values differ and trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | The 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Latching 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 missed | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Pushing 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 unavailable | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | The median of ATR over a set number of bars is MT5 only; this target can only average, so values differ and trades would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Candle 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Rounding a result down (floor) is MT5 only; this target keeps the fraction, so values such as the stop distance would differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Using 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Using 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Setting 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Holding 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Adding the commission to the position profit total is MT5 only; this target excludes commission, so the boundary shifts on accounts that charge it | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Tagging 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 together | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Absolute 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 differ | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Switching 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 results | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Using 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Inverting 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Checking 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | A 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Measuring 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Reading 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Multiplying 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Re-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, Python | Counting 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 match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Measuring the high-low range on another timeframe is MT5 only; this target measures on the chart timeframe, so values would not match | A block setting, as described in the reason |
| MT4, Pine, cTrader, Python | Blocking 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 positions | A block setting, as described in the reason |
| Python | The Python exporter does not cover this part yet (only parts whose trades were checked against the in-house validator are exported) | The other 83 blocks, apart from the ones above. In all, 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:
| Pattern | Bars | Rule in short |
|---|---|---|
| Bullish / bearish harami | 2 | A small body of the opposite colour inside the body of the bar before it |
| Doji | 1 | Body is at most 10% of the bar’s range. The minimum body setting does not apply |
| Morning / evening star | 3 | A 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 crows | 3 | Three bars of one colour, each closing further and opening inside the previous body |
| Hammer | 4 | Long lower wick, short upper wick, after a decline |
| Hanging man | 4 | The hammer shape after an advance |
| Shooting star | 4 | Long upper wick, short lower wick, after an advance |
| Tweezer top / bottom | 2 | Two bars of opposite colours whose highs (top) or lows (bottom) are within 10% of the larger range |
| Bullish / bearish belt hold | 1 | A 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 cross | 2 | A 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 doji | 1 | A doji with both wicks at least 30% of the range. The minimum body setting does not apply |
| Dragonfly doji | 1 | A 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 doji | 1 | A 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 line | 2 | A 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 cover | 2 | A 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) | 2 | The 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.
| Block | Mode | What it does |
|---|---|---|
| Stop Loss | High/low of the last N bars | The 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 Profit | Risk-reward ratio | The 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.
| Field | What it does |
|---|---|
| Risk profile | Six 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 amount | A 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
RiskAmountinput when an amount is set (theRiskPercentinput is then not generated) and aRiskLevelinput 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.
| Field | What it does |
|---|---|
| Weeks of the year | A 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 numbering | ISO (default) or from Jan 1 |
| n-th weekday of the month | A 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.
| Setting | What happens when the connected conditions are true |
|---|---|
| Place the order (normal) | The order is sent, as before |
| Draw an arrow only | No 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 only | No 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.
| Output | What 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.
| Level | Formula |
|---|---|
| P | (H + L + C) / 3 |
| R1 / S1 | 2P − L / 2P − H |
| R2 / S2 | P + (H − L) / P − (H − L) |
| R3 / S3 | H + 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 example20: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:stepsamong 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.
| Setting | What it does | Default |
|---|---|---|
| Type | High (swing high, resistance) or Low (swing low, support). Fixed when the code is written | High |
| Bars on each side | How many bars on the left and on the right must be lower (higher). 1 to 50 | 5 |
| Which swing | Counted from the newest: 1 is the latest swing, 2 the one before it. 1 to 20 | 1 |
| Max bars to look back | How far back the search goes. 1 to 999 | 100 |
- 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.
| Pattern | Rule (A is the newest swing of the kind, B the one before it, and so on) | Signal |
|---|---|---|
| Double Top | Two 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 peak | Sell: the closed bar’s close is below the neckline |
| Double Bottom | The 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 it | Buy: close above the neckline |
| Head and Shoulders | Three 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 shoulder | Sell: close below the neckline |
| Inverse Head and Shoulders | The mirror image with three swing lows and the highest swing highs between them | Buy: close above the neckline |
| Ascending Triangle | Two 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 line | Buy: close above the flat line |
| Descending Triangle | The mirror image: flat line from two swing lows within T (the lower of the two), two falling swing highs | Sell: close below the flat line |
| Setting | What it does | Default |
|---|---|---|
| Pattern | One of the six patterns above. Fixed when the code is written | Double Top |
| Bars each side of a swing | How many bars on the left and on the right a swing must beat. 1 to 50 | 3 |
| Tolerance (% of price) | The “same height” distance and the minimum pattern height. 0.01 to 5 | 0.1 |
| Max bars to look back | How far back swings are searched. 1 to 999 | 150 |
| Timeframe | The bars to read. Current chart by default | Current |
- 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.
| Rule | What it does | Settings |
|---|---|---|
| Fixed distance | Keeps the stop loss a fixed distance behind the current price | Distance (pips) |
| Break-even + offset | Moves the stop loss to the entry price plus (or minus, for a sell) an offset | Offset (pips) |
| ATR trail | Keeps the stop loss a multiple of ATR behind the current price | ATR period, multiplier |
| Previous bars high/low | Puts the stop loss just beyond the lowest low (buy) or highest high (sell) of the last closed bars | Buffer (pips), number of bars |
| Step | Locks X pips of profit for every Y pips the trade moves | Lock X (pips), per Y (pips) |
| Setting | What it does | Default |
|---|---|---|
| Unit of the stage start | A multiple of the initial stop loss distance, or profit in pips. One unit for the whole table | Multiple of the initial SL distance |
| Stage table | One row per stage: start, rule and its two numbers. Up to 50 rows | Break-even at 1x, ATR trail (14, x2) at 2x, fixed 10 pips at 3x |
| SL distance for positions without a stop loss | Used as the initial stop loss distance when a position has no stop loss | 20 pips |
| Smallest stop move | A new stop loss is sent only if it improves the current one by at least this many pips | 1 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:0and 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.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Start start | OnTick — Entry point executed every tick | None | All targets | — |
Multi Timeframe multi_tf | Reference indicator values from higher timeframes | Indicator (12 options); Timeframe (M5 / M15 / M30 / H1 / H4 / D1 / W1 / MN1); Symbol (blank = current chart); Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Band (Main / Upper / Lower); Line (Tenkan-sen / Kijun-sen / Senkou Span A / Senkou Span B / Chikou Span); Shift (0–100); Variable Name | MT5, MT4, Pine | — |
Indicators
57 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Moving Average ma | Moving Average (SMA/EMA/SMMA/LWMA) | Period (1–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 targets | Search part (default) |
RSI rsi | Relative Strength Index | Period (1–999); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
Bollinger Bands bb | Bollinger Bands (Upper/Main/Lower) | Period (1–999); Deviation (0.1–10); Band (Upper / Main / Lower); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
MACD macd | MACD (Main/Signal) | Fast EMA (1–999); Slow EMA (1–999); Signal Period (1–999); Line (Main / Signal); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
ATR atr | Average True Range | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Ichimoku ichimoku | Ichimoku Kinko Hyo (Tenkan/Kijun/Senkou A/B/Chikou) | Tenkan Period (1–999); Kijun Period (1–999); Senkou Span B Period (1–999); Line (Tenkan-sen / Kijun-sen / Senkou Span A / Senkou Span B / Chikou Span); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Donchian Channel donchian | Highest high / lowest low of the last N bars - for breakout and swing-level conditions | Period (1–999); Band (Upper / Lower); High/low basis (High and low / Close); Shift (0–100); Timeframe (10 options); Variable Name | All targets | Search part (default) |
Opening Range Breakout session_orb | Freezes the high/low of the first N bars from a given time as a range, then reports a break of it as +1 (up) / -1 (down) / 0 (none) | Range start (minutes from 00:00) (0–1,439); Range bars (1–100); GMT offset (hours) (-12–14); Min break distance (pips, 0 = touch the edge) (0–10,000); Max break distance (pips, 0 = no cap) (0–10,000); First break of the day only (Yes / No); Shift (0–100); Timeframe (10 options); Variable Name | MT5, MT4, Pine, cTrader | Search part |
Heiken Ashi heiken_ashi | Heiken Ashi candle close/open - detect trend by candle color flip | Line (HA Close / HA Open); Shift (0–100); Timeframe (10 options); Variable Name | MT5, MT4, Pine, cTrader | Search part |
ADX adx | ADX — Trend Strength (Main/+DI/-DI) | Period (1–999); Line (ADX Main / +DI / -DI); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
CCI cci | Commodity Channel Index | Period (1–999); Applied Price (Typical / Close / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Parabolic SAR sar | Parabolic SAR — Trend-following stop | Step (0.001–1); Maximum (0.01–5); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine | Search part |
Stochastic stochastic | Stochastic Oscillator (%K/%D) | %K Period (1–999); %D Period (1–999); Slowing (1–999); Line (%K (Main) / %D (Signal)); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part (default) |
Williams %R williams_r | Williams %R — Overbought/oversold oscillator (-100~0) | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Momentum momentum | Momentum — Rate of price change | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
OBV obv | On Balance Volume — Cumulative volume indicator | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
DeMarker demarker | DeMarker — Trend exhaustion detection (0~1) | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Alligator alligator | Bill Williams Alligator — Jaw/Teeth/Lips 3 lines | Jaw Period (1–999); Jaw Shift (0–100); Teeth Period (1–999); Teeth Shift (0–100); Lips Period (1–999); Lips Shift (0–100); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Line (Jaw (13) / Teeth (8) / Lips (5)); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Bears Power bears_power | Bears Power — Selling pressure strength | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Bulls Power bulls_power | Bulls Power — Buying pressure strength | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Force Index force_index | Force Index — Price change x Volume | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Envelope envelope | MA Envelope — Upper/Lower bands around moving average | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Deviation (%) (0.01–10); Band (Upper / Lower); Applied Price (Close / Open / High / Low); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
RVI rvi | Relative Vigor Index — Trend strength (Main/Signal) | Period (1–999); Line (Main / Signal); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
DEMA dema | Double Exponential MA — a moving average with reduced lag | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
TEMA tema | Triple Exponential MA — even less lag than DEMA | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Adaptive MA ama | Kaufman Adaptive MA — smoothing adapts to volatility | Period (1–999); Fast EMA (1–999); Slow EMA (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
FrAMA frama | Fractal Adaptive MA — smoothing driven by fractal dimension | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
VIDyA vidya | Variable Index Dynamic Average — a CMO-driven adaptive MA | CMO Period (1–999); EMA Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Std Deviation stddev | Standard Deviation — how far price spreads from its average | Period (1–999); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Awesome Osc awesome | Awesome Oscillator — momentum from the 5/34 SMA difference | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Accelerator Osc accelerator | Accelerator Oscillator — the acceleration of AO | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Supertrend supertrend | Supertrend — trend direction from an ATR-width trailing band | Period (1–999); ATR factor (0.1–100); Warmup bars (50–5,000); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
VLDMI vldmi | Variable-period RSI — stretches the RSI period by the ATR ratio and fades sharp drops or spikes | Base RSI period (1–999); Short ATR period (1–999); Period shift steps (0–50); Oversold level (0–100); Overbought level (0–100); Min RSI change (0–100); Bars to measure the change (1–500); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Persistence Ratio persistence | Direction-agreement ratio — how often the last N bars moved the same way as the bar before them | Bars to judge (N) (1–500); Threshold ratio (0–1); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Hull MA hma | Hull MA — recombines two LWMAs so the line keeps up with price instead of trailing it | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
QQE qqe | QQE — trails a one-way band around a smoothed RSI and reports which side it broke | Period (1–999); RSI smoothing (1–200); Band factor (0.1–100); Warm-up bars (50–5,000); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
VWAP vwap | VWAP — volume-weighted average price accumulated from an anchor (the day boundary by default). The bands are multiples of the weighted standard deviation. | Line (VWAP itself / Upper band (+Mult σ) / Lower band (−Mult σ)); Band multiple (0.1–10); Anchor time (minutes from midnight, 0 = daily) (0–1,439); GMT offset (hours) (-12–14); Lookback cap (bars) (1–5,000); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
ADX Wilder adx_wilder | ADX Wilder — trend strength using Wilder’s original smoothing (Main / +DI / −DI) | Period (1–999); Line (ADX Main / +DI / -DI); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Keltner Channel keltner | Keltner Channel — a moving average with bands at a multiple of ATR (Upper / Main / Lower) | Period (1–999); ATR period (1–999); ATR multiplier (0.1–100); Band (Upper / Main / Lower); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
ROC roc | Rate of Change — the percentage change from N bars ago | Period (1–999); Denominator (the price N bars ago (textbook) / the current price (as bundled with MT5)); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Linear Regression linreg | Linear Regression — the value, or the slope, of a straight line fitted to the last N prices | Period (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 pivot | Pivot 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 close | Level (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) kst | KST - four rates of change, each averaged, added with weights 1, 2, 3 and 4. The signal line can be chosen too | Rate 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 correlation | Correlation - 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 ultimate | Ultimate Oscillator — buying pressure over three periods, blended 4:2:1 | Fast period (1–999); Middle period (1–999); Slow period (1–999); Fast weight (0–100); Middle weight (0–100); Slow weight (0–100); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
DPO dpo | Detrended Price Oscillator — strips the trend out and leaves the cycle | Period (1–999); Formula (shift the price (textbook) / halve the period (as bundled with MT5)); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
OsMA osma | Difference between the MACD line and its signal (histogram) | Fast EMA (1–999); Slow EMA (1–999); Signal Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
TRIX trix | Rate of change of a triple-smoothed EMA — momentum without the noise | Period (1–999); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Chaikin Osc chaikin | Chaikin Oscillator — money flow that includes volume | Fast EMA (1–999); Slow EMA (1–999); MA Method (SMA / EMA / SMMA / LWMA); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Money Flow Index mfi | Money Flow Index — an RSI that includes volume (0-100) | Period (1–999); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Volumes volumes | Tick volume — how active the bar was | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Accum/Distrib ad | A/D line — cumulative buying and selling pressure | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
BW Market Facil bwmfi | Bill Williams Market Facilitation Index — range per unit of volume | Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Gator Osc gator | Gator Oscillator — the spread between the three Alligator lines | Jaw Period (1–999); Jaw Shift (0–100); Teeth Period (1–999); Teeth Shift (0–100); Lips Period (1–999); Lips Shift (0–100); MA Method (SMA / EMA / SMMA / LWMA); Applied Price (Close / Open / High / Low / Median / Typical / Weighted); Line (Upper (top histogram) / Lower (bottom histogram)); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | Search part |
Fractals fractals | Bill Williams Fractals — the most recent confirmed swing high/low | Line (Upper (swing high = resistance) / Lower (swing low = support)); Search bars (1–500); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Swing High / Low swing_levels | Swing High / Low - the price of the latest swing peak or trough | Type (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 icustom | Get custom indicator values | Indicator Name; Parameters; Buffer Index (0–20); Shift (0–100); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | MT5, MT4 | — |
Price / Info
5 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Current Price price | Ask/Bid/Spread | Price Type (Bid / Ask / Spread); Variable Name; Symbol (blank = current chart) | All targets | — |
OHLC ohlc | Candlestick Open/High/Low/Close | OHLC (Close / Open / High / Low); Bar Shift (0–1,000); Timeframe (10 options); Variable Name; Symbol (blank = current chart) | All targets | Search part |
Time Info time_info | Time information (Hour/Minute/DayOfWeek) | Time Type (10 options); Variable Name | MT5, MT4, Pine, cTrader | — |
Account Info account_info | Account info (Balance/Equity/Profit) | Info Type (15 options); Variable Name | MT5, MT4, Pine, cTrader | — |
Constant constant | Output a fixed value | Value (-999,999–999,999); Variable Name | All targets | — |
Conditions
12 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Compare compare | Compare two values (>, <, ==, !=, >=, <=) | Operator (> (greater than) / < (less than) / >= (greater or equal) / <= (less or equal) / == (equal) / != (not equal)); Offset (pips) | All targets | Search condition |
Cross cross | Crossover / Crossunder detection | Cross Type (Crossover (cross above) / Crossunder (cross below)) | All targets | Search condition |
MA Perfect Order ma_perfect_order | Checks whether multiple MAs are aligned in period order (perfect order). Composable with other conditions via AND/OR | Alignment direction (Bullish (fast > slow) / Bearish (fast < slow) / Either alignment) | MT5, MT4, Pine, cTrader | Search part, Search condition |
Consecutive Bars consecutive_bars | Checks whether the last N closed bars moved in the same direction (up/down). Composable with other conditions via AND/OR | Criterion (Close stepping up/down / Candle body (bullish/bearish) / 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, cTrader | Search part, Search condition |
RSI Divergence rsi_divergence | Detects regular divergence between RSI and price. Connect an RSI node (shift=1) | Direction (Bullish (new low x rising RSI) / Bearish (new high x falling RSI)); Extreme level (bullish=oversold / bearish=overbought) (1–99); Pivot validity (bars) (1–500); Fire band (RSI distance from level) (0–50) | MT5, MT4, Pine, cTrader | — |
AND Gate and_gate | Pass only when all conditions are true | Pass only once per day (first true tick of the day) (No / Yes) | All targets | Search condition |
OR Gate or_gate | Pass when any condition is true | None | MT5, MT4, Pine, cTrader | Search condition |
Chart Pattern Signal chart_pattern | Chart pattern - true only on the bar that closes through the neckline of a double top/bottom, head and shoulders, or triangle | Pattern (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_gate | Invert condition (NOT) | None | All targets | Search condition |
Signal Latch signal_latch | Fires once, then stays silent until the reset condition occurs | Re-arm when (The reset condition (input 2) is true / This EA has no open positions) | MT5, MT4, Pine, cTrader | — |
Level Latch level_latch | Remembers a value (e.g. the day high) at a set time and is true once, on the first tick that breaks it | Fires 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_op | Arithmetic on two inputs | Operation (+ (add) / - (subtract) / × (multiply) / ÷ (divide)); Variable Name | MT5, MT4, Pine, cTrader | — |
Filters
22 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Time Filter time_filter | Trading time restriction | Start Hour (0–23); End Hour (0–23); 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 targets | Search filter |
Spread Filter spread_filter | Maximum spread filter | Max Spread (points) (1–1,000) | MT5, MT4, cTrader | — |
Position Filter position_filter | Maximum position count limit | Max Positions (1–100) | All targets | — |
Session (auto DST) tz_session_filter | Gate by market session with automatic daylight-saving adjustment | Market (London / New York / Tokyo); Auto daylight-saving (Yes / No); Broker GMT offset (winter) (-12–14) | MT5, MT4, Pine, cTrader | — |
Holiday Filter holiday_filter | Halt new orders on holidays and year-end | Region (Major (New Year/Christmas) / United States / United Kingdom / Europe / Japan); Also halt year-end (12/24-1/2) (Yes / No); Extra holidays (MM.DD, comma-separated) | MT5, MT4, Pine, cTrader | — |
High-Low Range Filter hl_range_filter | Skip entry when the N-bar high-low range is out of range (filters volatile/quiet markets) | High/Low Bars (1–500); Max pips (0=off) (0–100,000); Min pips (0=off) (0–100,000) | MT5, MT4, Pine, cTrader | Search filter |
Range Size Filter range_size_filter | Blocks entry unless the last closed bar's body is at least N times the recent average body (expansion-bar gate) | Avg body lookback bars (1–500); Multiplier (body >= avg x this) (0.1–100) | MT5, MT4, Pine, cTrader | — |
Days of Month Filter days_of_month_filter | Trade only on the listed calendar days (comma-separated 1-31), e.g. 24,25,26,27,28,29 for the month-end week | Allowed days (comma-separated 1-31); Time basis (Server time / UTC) | MT5, MT4, Pine, cTrader | — |
Candle Pattern Filter candle_pattern | Skip entries unless the last closed 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, cTrader | Search filter |
MA Distance Filter ma_distance | Blocks entry when the price-to-MA distance (pips) is out of range (pullback / over-extension filter) | MA period (1–1,000); MA method (Simple (SMA) / Exponential (EMA) / Smoothed (SMMA) / Linear Weighted (LWMA)); Max pips (0=off) (0–100,000); Min pips (0=off) (0–100,000); Price side (Above or below / Only above MA / Only below MA) | MT5, MT4, Pine, cTrader | Search filter |
Cooldown Filter cooldown_filter | Wait N seconds/minutes after last entry | Cooldown (seconds) (1–86,400); 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_limit | Stop opening new trades once the daily count is reached | Max trades per day (0 = no limit) (0–1,000); Count (Positions opened today / Positions closed today) | MT5, MT4, Pine, cTrader | — |
Gotobi Filter gotobi_filter | Trade only on Gotobi days (5th,10th,15th,20th,25th,month-end). Ideal for Nakane trade. | Include month-end (Yes / No); Time basis (Server time / UTC); Day-judge timezone (UTC+N hours, 9 = JST); Shift weekend gotobi to Friday (No / Yes); Fire when N days ahead is a Gotobi day (0 = same day, 1 = enter the day before) (0–5); Month-end last business day only (ignore the 5/10 table) (No / Yes) | MT5, MT4, Pine, cTrader | Search filter |
Weekday Filter weekday_filter | Allow trading on specific weekdays only | Monday (ON / OFF); Tuesday (ON / OFF); Wednesday (ON / OFF); Thursday (ON / OFF); Friday (ON / OFF); Time basis (Server time / UTC); 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, cTrader | Search filter |
Drawdown Filter drawdown_filter | Stop trading when max drawdown exceeded | Max DD (%) (1–100); Base (Balance / Equity) | MT5, MT4, Pine, cTrader | — |
Period Loss Limit period_loss_filter | Stops 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 rules | Period (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_filter | Stop trading when volatility outside ATR range | ATR Period (1–999); Min ATR (pips) (0–10,000); Max ATR (pips, 0 = no cap) (0–10,000); Timeframe (10 options) | MT5, MT4, Pine, cTrader | — |
Market Regime Filter regime_filter | Combines an ADX trend/range read with an ATR expansion/compression read, and trades only in the market regimes you allow | Allowed regime (Trend / Range / Expansion / Compression / Trend + Expansion / Range + Compression); ADX Period (1–999); ADX Threshold (1–100); ATR Period (1–999); ATR Lookback (bars) (2–500); Expansion ratio (1–10); Compression ratio (0.1–1) | MT5, MT4, Pine, cTrader | — |
Equity Target equity_target | Stop trading when profit target reached | Target Mode (Dollars / Percent); Target Amount (1–1,000,000); Target (%) (0.1–1,000) | MT5, MT4, Pine, cTrader | — |
Session Filter session_filter | Trading session filter with a selectable time basis (server time or UTC). Use Session (auto DST) for windows that follow daylight saving. | Session (Tokyo (0-9) / London (7-16) / New York (12-21) / Custom); Start Hour (0–23); End Hour (0–23); Time basis (Server time / UTC) | All targets | Search filter |
News Filter news_filter | Pause trading N minutes before/after news events | Before (min) (0–720); After (min) (0–720); News Hour (0–23); News Minute (0–59); Day of Week (0=daily, 1=Mon..5=Fri) (0–5) | MT5, MT4, Pine, cTrader | — |
New Bar Filter newbar_filter | Pass only on new bar formation | None | All targets | — |
Actions
16 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Open Buy open_buy | Open a buy position | Distance unit (pips (fixed width) / % of price (symbol-class independent)); SL (pips) (0–10,000); TP (pips) (0–10,000); SL (% of price, when unit is %) (0–100); TP (% of price, when unit is %) (0–100); Max Positions (1–100); 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_sell | Open a sell position | Distance unit (pips (fixed width) / % of price (symbol-class independent)); SL (pips) (0–10,000); TP (pips) (0–10,000); SL (% of price, when unit is %) (0–100); TP (% of price, when unit is %) (0–100); Max Positions (1–100); 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_pos | Close position(s) | Close Target (All Positions / Buy Only / Sell Only) | MT5, MT4, Pine, cTrader | — |
Time Exit time_exit | Close by holding time / bars / time-of-day / Friday | Exit trigger (Close after N minutes held / Close after N bars held / Close all at time / Friday close); Hold threshold (min/bars) (1–100,000); Exit hour (0-23) (0–23); Exit minute (0-59) (0–59); 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_close | Close the whole basket when aggregate floating pips reach the target (with time-decay) | Aggregation (Pips from avg entry (lot-weighted) / Simple sum of floating pips); Target pips (1–100,000); Time decay (None (fixed target) / Linear decay (by time held)); Decay window (minutes) (1–100,000); Target floor (pips) (0–100,000); Target (All Positions / Buy Only / Sell Only); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)); Positions summed (Target side only / Buys and sells mixed (closes the target side only)) | MT5, MT4 | — |
Basket Money Close basket_money_close | Close the basket when its floating P/L in account currency reaches a threshold | Target (All Positions / Buy Only / Sell Only); Trigger (Take profit (P/L at or above the amount) / Cut loss (P/L at or below minus the amount)); Amount (account currency) (0.01–1,000,000); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4 | — |
Virtual/Hidden SL/TP virtual_sl_tp | Close at market on internal SL/TP levels (never sent to the broker) | Virtual SL (pips, 0=off) (0–100,000); Virtual TP (pips, 0=off) (0–100,000); Target (All Positions / Buy Only / Sell Only); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4 | — |
Basket Average TP basket_average_tp | Places the weighted-average open +/- N pips as a hard TP on every position (disconnect-proof grid/nanpin take-profit) | TP pips beyond avg open (0.1–100,000); Target (All Positions / Buy Only / Sell Only); Aggregation scope (This EA only (own Magic) / Across Magics (all positions on the same symbol)) | MT5, MT4, Pine, cTrader | — |
Buy Limit buy_limit | Buy limit pending order | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Trade symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Sell Limit sell_limit | Sell limit pending order | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment; Trade symbol (blank = current chart) | MT5, MT4, Pine, cTrader | — |
Buy Stop buy_stop | Buy stop pending order | Offset (pips) (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_bracket | OCO straddle: places a Buy Stop above and a Sell Stop below; when one leg fills, the other is auto-cancelled | Offset (pips) (1–10,000); SL (pips) (0–10,000); TP (pips) (0–10,000); Expiry (hours) (1–720); Comment | MT5, MT4, Pine, cTrader | — |
Sell Stop sell_stop | Sell stop pending order | Offset (pips) (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_node | Alert notification | Message; 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_close | Partial position close | Close 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 position | MT5, MT4, Pine, cTrader | — |
Pending Orders Manager pending_lifecycle | Deletes pending orders by weekday/hour or age, and remembers their prices to re-place them later | Orders 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); Comment | MT5 | — |
Money Mgmt
7 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Fixed Lot fixed_lot | Fixed lot size | Lot Size (0.01–100) | All targets | — |
Risk-Based Lot risk_lot | Calculate lot from balance × risk % | Risk (%) (0.1–100); SL (pips) (1–10,000); 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_lot | Allocates a fixed % of balance as margin and sizes the lot at current leverage | Margin Allocation (%) (0.1–100) | MT5, MT4, Pine, cTrader | — |
Martingale Lot martingale_lot | Double lot on loss (Martingale) | Base Lot (0.01–100); Multiplier (1.1–10); Max Level (1–10); Halt at drawdown (%) (1–100) | MT5, MT4, Pine, cTrader | — |
Pyramiding pyramiding | Pyramiding — Add positions in profit direction | Max Additions (1–20); Interval (pips) (1–1,000); Lot Multiplier (0.1–10) | MT5, MT4 | — |
Averaging Down nanpin | Averaging Down — Add positions against loss to improve avg price | Max Additions (1–20); Interval (pips) (1–1,000); Lot Multiplier (0.1–10); Close Mode (Close all at once (on avg profit) / Close individually); Stage table (leave empty for a single interval); Add-on counting (Basket (buy and sell combined) / Per side (buy and sell counted separately)) | MT5, MT4 | — |
Reversal Entry doten | Reversal Entry — Enter opposite direction after closing | Lot Mode (Same Lot / Custom Lot); Lot Size (0.01–100) | MT5, MT4, Pine, cTrader | — |
Exit Strategy
8 blocks in this category.
| Block | What it does | Settings | Exports to | In the Miner |
|---|---|---|---|---|
Trailing Stop trailing_stop | Trailing stop loss | Trailing Mode (9 options); Trail Distance (pips) (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_even | Move SL to entry when in profit | Distance 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_breakeven | Move every basket position SL to the weighted-average break-even once total floating profit hits the trigger | Trigger total profit (acct ccy) (0–1,000,000); Lock offset (pips) (0–1,000) | MT5, MT4 | — |
Staged Trailing Table staged_trail | Staged trailing table - switches the stop-loss rule by profit stage | Unit 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_profit | Take 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_loss | Stop 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_all | Close All — Close all positions when condition met | Trigger (DD% Exceeded / Profit Amount Reached / Loss Amount Exceeded / Basket Profit (this EA) / Basket Loss (this EA) / Time / Bars held); Threshold (0.01–100,000); Target (Own EA Only / All Positions); Pause after close (min) (0–10,080) | MT5, MT4 | — |
Account Guard account_guard | Close this EA's positions when the account's floating loss exceeds N% of balance, then pause new entries | Floating loss cap (% of balance, 0=off) (0–100); Target (Own EA Only / All Positions); Pause after close (min) (0–10,080) | MT5, MT4 | — |