Docs menu

Blocks that can't be exported Pro

Which parts and settings each export target refuses, why, and how to fix a blocked export. A blocked part is never dropped silently.

This feature is part of Pro.

When a strategy contains something the chosen target cannot express, the Builder saves no file. A file that quietly left a part out would trade differently from the strategy you tested, so the export is refused instead. This page lists what is refused and why. The tables are built from the same list the Builder uses.

MetaTrader 5 refuses nothing. MetaTrader 4 refuses a strategy that uses more than one symbol, the Period Loss Limit block, and the wiring cases listed under “Other cases that block an export”.

What you see when an export is blocked

  1. The Builder shows the panel These parts cannot be exported to the selected target:.
  2. Each blocked part is listed with the reason.
  3. The blocked parts are marked on the canvas.
  4. No file is downloaded.
The orange panel that lists the blocked part with its reason after a refused export
The panel names each blocked part and gives the reason. No file is saved.

The server gives the same answer to a request for a blocked export, with the status 422 and the code target_blocked.

Parts that are blocked

These parts are refused whatever their settings are.

ReasonNot exported toParts
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 docscTraderMulti Timeframe
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 exportedcTraderParabolic SAR
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 itTradingView Pine, cTraderLinear Regression
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 countedTradingView Pine, cTraderSwing High / Low
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 themMetaTrader 4, TradingView Pine, cTraderPivot Points
KST (four averaged rates of change added with weights) is exported to MT5 only; this target has not been checked against itMetaTrader 4, TradingView Pine, cTraderKST (Know Sure Thing)
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 upMetaTrader 4, TradingView Pine, cTraderCorrelation
Calling an external MetaTrader indicator (.ex5/.ex4) by name is MetaTrader onlyTradingView Pine, cTraderiCustom
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 countedTradingView Pine, cTraderChart Pattern Signal
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 closeMetaTrader 4, TradingView Pine, cTraderLevel Latch
The measured spread is not part of the candle data on this targetTradingView PineSpread Filter
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 openTradingView Pine, cTraderCooldown Filter, Time Exit, Profit Pips Close, Basket Money Close, Virtual/Hidden SL/TP, Pyramiding, Averaging Down, Basket Break Even, Close All, Account Guard
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 wayMetaTrader 4, TradingView Pine, cTraderPeriod Loss Limit
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 typeMetaTrader 4, TradingView Pine, cTraderPending Orders Manager
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 movedTradingView Pine, cTraderStaged Trailing Table

Python also refuses every part outside the short list on the Python page.

Settings and strategy options that are blocked

These depend on how a part is set or on the strategy as a whole.

ReasonNot exported toWhat sets it off
A part that reads the forming bar (shift 0) cannot be expressed in Pine (it decides at bar close). Use shift 1 or moreTradingView PineAn indicator, OHLC or Multi Timeframe part whose Shift (or Bar shift) is 0
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 morePythonAn indicator, OHLC or Multi Timeframe part whose Shift (or Bar shift) is 0
The measured spread is not part of the candle data on this targetTradingView Pine, PythonCurrent Price with Price Type set to Spread (and the Spread Filter part)
Free margin depends on the broker margin model and cannot be reproduced on this targetTradingView Pine, PythonAccount Info with Info Type set to Free Margin
Settings that rely on the MetaTrader account model (hedging control, account/broker restriction) are MetaTrader onlyTradingView Pine, cTrader, PythonThe Hedging Prevention, Cashback Hedge Mode and Account Restriction settings
Multi-symbol flows (a symbol on a part, or a target_symbols pair loop) are MT5 only; the MT4 export handles the single chart symbolMetaTrader 4, TradingView Pine, cTrader, PythonA symbol set on a part, or a list of symbols in the strategy settings
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 openTradingView Pine, cTrader, PythonEntry timing set to Every tick or On touch

Instruments that are blocked

The cTrader export refuses these instruments, because the platform decides their pip size. Other targets export them.

InstrumentSymbol in the Miner
GoldXAUUSD
SilverXAGUSD
WTI crude oilLIGHTCMDUSD
Brent crude oilBRENTCMDUSD
S&P 500 indexUSA500IDXUSD
Nasdaq 100 indexUSATECHIDXUSD
Dow Jones indexUSA30IDXUSD
DAX indexDEUIDXEUR
FTSE 100 indexGBRIDXGBP
Nikkei 225 indexJPNIDXJPY

Other cases that block an export

  • Wiring that would trade differently from what you see. MetaTrader 5 exports these and warns. Every other target refuses them, with the reason for each connection:
    • An indicator or price wired straight into an action or into a logic gate. Put a condition (Compare or Cross) in between.
    • An indicator or price that reaches an action only through a filter. Put a condition between them.
    • A Compare or Cross part with more than two inputs. Only the first two are read, so remove the extra connections.
    • More than one exit part of the same kind, where only the last would apply. Keep one.

How to fix a blocked export

  1. Read the reason for the first blocked part. Each reason names what to change.
  2. Choose one of these:
    • Change the part’s setting. For example, set the Shift of an indicator to 1 instead of 0, or change the entry timing to Bar close.
    • Remove the part. The strategy changes, so check it again in the Builder.
    • Pick another target. MetaTrader 5 takes every part.
  3. Click the download button again.

Do not edit the downloaded file to add a blocked part back. The Builder gives no file for those, and a part that was not checked on the target can trade differently.

Next steps