EA Errors
Find the full MT5 error and follow the matching checks. MT4 guidance is available below when you need it.
Start with the full message, not only its number. Read the Experts and Journal entries around the failed MT5 request. If you use MetaTrader 4, open its separate error reference below; numbers can mean different things on the two platforms.
If TradingView fires but no corresponding message reaches PineConnector, start with Missing signals. This page covers terminal and trade-request errors after that stage.
Find your error
Section titled “Find your error”| Platform | Error |
|---|---|
| MT5 | 4752 — EA trading disabled · 4756 — request failed |
| MT4 or MT5 | Zero divide |
Need the logs? See Experts, Journal, or saved log files.
MetaTrader 5
Section titled “MetaTrader 5”EA trading is disabled
ERR_TRADE_DISABLED: Expert Advisors are not permitted to trade.
Confirm that Algo Trading is enabled in MetaTrader and allowed in the PineConnector EA’s properties.
- Check both permission levels
The terminal toolbar setting and the EA’s own trading permission must allow the action.
- Confirm the result
After correcting permissions, use a new demo test and check the Experts output and resulting order.
Trade request could not be sent
ERR_TRADE_SEND_FAILED is a general request failure. The accompanying message identifies the next check.
Read the full Experts and Journal message at the same timestamp. Match its wording to a case below.
Match the message beside 4756
Section titled “Match the message beside 4756”| Message | Check first | Next action |
|---|---|---|
| Unsupported filling mode | The symbol’s permitted order-filling policy | Check the broker/symbol specification. Older PineConnector EAs offer Broker Set B for this case; use it only if that setting exists in your version and matches the supported configuration. |
| No prices | Symbol selection, connection and incoming quotes | Show the exact symbol in Market Watch and confirm it has a current quote during its trading session. Do not keep resending against an unavailable quote. |
| Invalid request | Exact symbol and the full request parameters | Compare the message with the broker’s symbol and supported order type. A matching symbol alone does not prove the rest of the request is valid. |
| Trade disabled | Whether the account and symbol permit this trade | Confirm the symbol, session and broker restrictions; check terminal/EA permissions as well. |
| Invalid expiration | The pending order’s expiration policy | Check the broker’s supported expiration settings. Older EA guidance mentions Broker Set C; confirm version support before changing that setting. |
| Invalid volume | Minimum, maximum and volume step | Check the requested lots against the symbol’s contract specification and your EA’s Volume Type. |
| Invalid stops | Target units, correct side and minimum distance | Follow the stops checklist. |
| Requote | The current quote and execution mode | Check the broker’s returned detail. Confirm whether any order was placed before retrying, then investigate repeated requotes with your broker/support on demo. |
| Invalid price | Price validity for that symbol and order | Check the allowed price increment, direction and distance of the pending entry, stop loss and take profit. |
These cases correspond to separate MetaTrader trade-server return details. 4756 alone does not select one fix.
Check stops and prices
Section titled “Check stops and prices”Use this checklist for MT5 Invalid stops/Invalid price or MT4 130:
- Confirm units. A legacy
sl=ortp=value follows the EA’s Target Type. A price such as1.08000must not be interpreted as a pip distance. Review the exact parameter in Syntax. - Check the correct side. Targets must make sense for the direction and order type. A buy stop loss must not be above the relevant market/entry price; a sell stop loss must not be below it.
- Check minimum distances. Open the symbol specification and inspect its Stops level, shown in points. Use the point size and the documented PineConnector pip convention for that instrument; do not treat a displayed point count as the same number of pips.
- Check price increments. The broker must accept the requested price step and decimal precision.
- Check pending entries separately. The entry price and expiration can be invalid even when SL and TP are acceptable.
MetaTrader 4 errorsOpen this reference only if your terminal is MT4.
These checks apply to MetaTrader 4. Choose the matching error below; the shared stops checklist and Zero divide guidance remain available outside this section.
Invalid stops
ERR_INVALID_STOPS: a stop or pending-entry level is invalid for the request.
Compare the message’s target units with the EA’s Target Type and pending-entry setting.
- Inspect the symbol specification
Check minimum stop distance, price increments and the current broker quote.
- Review the actual levels
Use the stops-and-prices checklist above. Correct the parameter or level, then repeat a controlled demo test.
Invalid trade volume
ERR_INVALID_TRADE_VOLUME: the requested lot size does not meet the broker’s rules.
Open the symbol specification and compare minimum volume, maximum volume and volume step with the requested lots.
- Check how the EA calculated the size
Confirm your Volume Type and the value supplied in the message. Decimal places alone do not establish a valid volume step.
Market closed
ERR_MARKET_CLOSED: the symbol is outside its trading session.
Check that symbol’s trading hours on your broker’s server, including holidays and session breaks.
- Wait for a valid session
Send a new test only when the symbol is open and quotes are available.
Trading disabled
ERR_TRADE_DISABLED: trading is not available for this account or symbol.
Confirm the exact symbol and whether your broker permits trading it on this account.
- Check the local setup
Show the symbol in the Symbols list and confirm the EA’s live-trading permission is enabled.
- Separate a broker restriction from an EA issue
On a demo account, check whether an equivalent manual trade is permitted. Ask the broker about a restriction if manual trading is blocked too.
Not enough margin
ERR_NOT_ENOUGH_MONEY: the account does not have enough available margin for the request.
Read the required and available margin in the Experts output.
- Review the requested size
Confirm Volume Type before reducing a risk/volume value. Existing positions and broker margin rules affect what is available.
- Escalate an apparent mismatch
If the log shows sufficient available margin but the broker rejects the trade, send the full request and broker response to support.
DLL calls are not allowed
ERR_DLL_CALL_NOT_ALLOWED: the required DLL permission is disabled.
Review Allow DLL imports in both MetaTrader Options and the PineConnector EA’s properties.
- Check your environment
Your self-hosted computer or VPS must support the PineConnector EA’s required DLL usage. Follow the MT4 setup guide for its current files and permissions.
Invalid function parameter
ERR_INVALID_FUNCTION_PARAMETER_VALUE: a function received an invalid value.
Read the full error and compare your message with the required fields for that command.
- Check entry sizing fields
A missing risk= is one case identified by the older entry-message guide. Follow the syntax supported by your EA version; this error number does not prove that a missing risk field is the cause.
- Keep the failing example
If the message matches the reference, send the exact request and log to support instead of adding guessed parameters.
Unknown symbol
ERR_UNKNOWN_SYMBOL: MetaTrader does not recognise the requested symbol.
Copy the name exactly from your broker’s Symbols list, including capitalisation and any suffix.
- Check any mapping
Confirm that TradingView placeholders or Symbol Mapping resolve to that exact name. EURUSD and eurusd are not interchangeable in the documented syntax.
Trading is not allowed
ERR_TRADE_NOT_ALLOWED: automated trading permission is disabled.
Enable automated trading in Tools → Options → Expert Advisors, then check Allow live trading in the EA’s Common tab.
- Confirm the EA is ready
Check the AutoTrading toolbar state and the EA’s chart status. Use a demo request to verify the permission change.
Chart object does not exist
ERR_OBJECT_DOES_NOT_EXIST: a chart object expected by the program was not found.
Save the full error and the surrounding Experts output.
- Send the context to support
Include the EA version, event time, Signal ID where available, and what you were doing when the error appeared. Do not assume changing trade size will fix a chart-object error.
For another MT4 code, use the official MQL4 error list. Confirm the terminal platform before applying its checks.
Zero divide
Section titled “Zero divide”A calculation attempted division by zero
The program could not complete a calculation. The location and surrounding log are needed to investigate the cause.
Record the complete message, including any line/column numbers shown in brackets, and your PineConnector EA version.
- Preserve the request and environment
Keep the Signal ID, symbol, relevant EA settings and Experts/Journal lines around the event.
- Report the issue
Send that evidence to PineConnector Support. Do not repeatedly resend a live request while its outcome is uncertain.
Still stuck, or using Edge?
Section titled “Still stuck, or using Edge?”For a self-hosted setup, collect the local Experts and Journal logs. For an Edge connection, begin with its Portal connection and signal details; contact support if the required terminal detail is not exposed in your view. Desktop permission steps above apply to a terminal you manage yourself.
Send PineConnector Support the platform/EA version, event time, relevant Signal ID, exact error and expected outcome. Share account details privately only when needed, and omit passwords and signal secrets from screenshots.
For an MT5 code not listed here, use the official MQL5 runtime error list.
