2010.04.01 21:56
#1
У меня такая ошибка возникает из-за кривого контроля величины выставляемых стопов.
2010.04.03 13:31
#2
zigan писал(а) # :
У меня такая ошибка возникает из-за кривого контроля величины выставляемых стопов.
Спасибо! У меня как раз была проблема с кривостью конроля стопов! А в документации написано как то тумано!
2010.07.29 22:40
#3
а у меня такая ошибка вискакивает из-за реквот в тестере… помогите избавиться, если ето возможно
2010.07.30 10:43
#4
maryan.dirtyn:
а у меня такая ошибка вискакивает из-за реквот в тестере… помогите избавиться, если ето возможно
Как Вы определили, что это реквоты?
Эта ошибка возникает при неудаче OrderSend. А что конкретно там произошло, можно выяснить, проанализировав код возврата торгового сервера. Об этом явно сказано в описании функции OrderSend
2010.07.30 11:06
#5
stringo:
Как Вы определили, что это реквоты?
Эта ошибка возникает при неудаче OrderSend. А что конкретно там произошло, можно выяснить, проанализировав код возврата торгового сервера. Об этом явно сказано в описании функции OrderSend
ну у меня в логах тестера пишет:
2010.07.30 12:05:26 Core 1 price corrected from 1.23434 to 1.23437, deviation: 10 (instant sell 4.00 EURUSD at 1.23434 sl: 1.23634 tp: 1.21934)(1.23437 / 1.23452 / 1.23437)
2010.07.30 12:05:25 Core 1 Error №:4756 (код возврата торгового сервера)
2010.07.30 12:05:25 Core 1 requote 1.23431 / 1.23446 / 1.23431 (instant sell 4.00 EURUSD at 1.23443 sl: 1.23643 tp: 1.21943)
2010.07.31 23:50
#6
maryan.dirtyn:
ну у меня в логах тестера пишет:
2010.07.30 12:05:26 Core 1 price corrected from 1.23434 to 1.23437, deviation: 10 (instant sell 4.00 EURUSD at 1.23434 sl: 1.23634 tp: 1.21934)(1.23437 / 1.23452 / 1.23437)
2010.07.30 12:05:25 Core 1 Error №:4756 (код возврата торгового сервера)
2010.07.30 12:05:25 Core 1 requote 1.23431 / 1.23446 / 1.23431 (instant sell 4.00 EURUSD at 1.23443 sl: 1.23643 tp: 1.21943)
Реквота тут совершенно не причём и возникает уже при следующем вызове OrderSend().
Стопы также достаточные: 200 и 500 пипсов
Цена также влазит в deviation в данном случае
А Error №:4756
ERR_TRADE_SEND_FAILED 4756 Не удалось отправить торговый
запрос
А вообще то у Вас сделки совершаются ?
2010.08.02 01:30
#7
Valmars:
Реквота тут совершенно не причём и возникает уже при следующем вызове OrderSend().
Стопы также достаточные: 200 и 500 пипсов
Цена также влазит в deviation в данном случае
А Error №:4756
ERR_TRADE_SEND_FAILED 4756 Не удалось отправить торговый
запрос
А вообще то у Вас сделки совершаются ?
да.. все остальное в норме.. примерно 40 сделок и 100-150 ордеров.. только один раз вискакивает вот такое на тестере.
2011.08.28 17:45
#8
прошел год.. нашел свою же ж тему на форуме.. у меня опять ошибка 4756 .. что ето означает?
2011.08.28 18:01
#9
maryan.dirtyn:
прошел год.. нашел свою же ж тему на форуме.. у меня опять ошибка 4756 .. что ето означает?
А код возврата торгового сервера анализировали?
2018.11.17 11:23
#10
Сегодня воскресенье. Рынок закрыт. Отлаживаю скрипт по модификации СЛ и ТП открытой позиции в mql5 с помощью PositionModify. Тоже получаю ошибку 4756 (после GetLastError()). Но если рынок закрыт (воскресенье), то ошибка должна быть 10018. Пока не понимаю, что происходит.
Aleksey Mavrin:
Почему решили что именно тип исполнения по заливке вызвал ошибку? Может другие варианты тип по времени действия например?
Я выше привёл код, который находится в конце моей функции, которая открывает рыночные ордера:
if (m_result.order < 1) { writeLog(MESSAGE_ERROR, __FUNCTION__ + " { position wasn't sent! " + "m_result.retcode = '" + iToS(m_result.retcode) + "' | " + "orderType = '" + EnumToString(m_request.type) + "' | " + "orderPrice = '" + dToS(m_request.price) + "' | " + "sl = '" + dToS(m_request.sl) + "' | " + "tp = '" + dToS(m_request.tp) + "' | " + "typeFilling = '" + (string)ENUM_ORDER_TYPE_FILLING(m_request.type_filling) + "' | " + "spread = '" + dToS(m_symbol.spread()) + "' }"); if (_LastError > 0) //---- Контролируем возможные ошибки writeLog(MESSAGE_ERROR, __FUNCTION__ + " { _LastError = '" + iToS(_LastError) + "' }"); return false; }
Так вот после пачки ошибок:
2020.12.16 23:42:40.742 2020.01.03 08:00:02 failed market sell 0.001 EURUSD sl: 1.12462 tp: 1.07462 [Invalid volume]
***
***
***
2020.12.16 23:42:40.742 2020.01.03 08:00:03 failed market sell 0.001 EURUSD sl: 1.12462 tp: 1.07462 [Invalid volume]
Я вижу, что writeLog() принтует в журнал следующее:
2020.12.16 23:42:40.742 2020.01.03 08:00:03 PositionsHandling::open { position wasn't sent! m_result.retcode = '10014' | orderType = 'ORDER_TYPE_SELL' | orderPrice = '1.11662' | sl = '1.12462' | tp = '1.07462' | typeFilling = '1' | spread = '0.00003' }
2020.12.16 23:42:40.742 2020.01.03 08:00:03 PositionsHandling::open { _LastError = '4756' }
Здесь видно, что в ходе отправки ордера произошла ошибка 4756 т.е. «Не удалось отправить торговый запрос«, а значение m_result.retcode = 10014 т.е. не правильный объём. Очевидно, что проблема в лоте. Как ещё это можно понимать?
Ещё нужно обратить внимание на значение typeFilling = 1, соответствующее перечислению (SYMBOL_FILLING_FOK)
Теперь, я ради эксперимента, непосредственно перед отправкой ордера присваиваю значение типа заливки ордера 2, соответствующее перечислению SYMBOL_FILLING_IOC. Делаю я это вот так:
m_request.type_filling = SYMBOL_FILLING_IOC;
Вот что вернёт функция writeLog() после отправки ордера:
2020.12.16 23:54:50.920 2020.01.03 08:00:03 PositionsHandling::open { position wasn't sent! m_result.retcode = '10030' | orderType = 'ORDER_TYPE_SELL' | orderPrice = '1.11662' | sl = '1.12462' | tp = '1.07462' | typeFilling = '2' | spread = '0.00003' }
2020.12.16 23:54:50.920 2020.01.03 08:00:03 PositionsHandling::open { _LastError = '4756' }
.Вижу, что ошибка возвращаемая посредством m_result.retcode на сей раз другая, а точнее 10030 т.е. «Указан неподдерживаемый тип исполнения ордера по остатку «.
Вот я и показал, что как не задай, всё равно ордер не выставить.
Please refer to the updated Error Guide here:
https://docs.pineconnector.com/error
Here are some common issues faced by your other retail trader buddies.
For MetaTrader Error Codes (130, 4756 etc), please click below to see more information.
If you see the expiration date on your MetaTrader terminal, but are not receiving signals,
the issue is likely on your TradingView’s setup
Please go through the list of potential causes and ensure that your alerts are configured correctly.
| Potential Causes | Remarks & Remedies |
|---|---|
| Incorrect License ID | In your Syntax, ensure your License ID indicated in your alert message matches your License ID that you input in your MetaTrader terminal |
| Incorrect Syntax Formatting | Spacing between your texts and commasInvalid: 5123456789012 , buy , EURUSD , risk=1 Valid: 5123456789012,buy,EURUSD,risk=1 |
| Incorrect Syntax Formatting | Multiple License IDsInvalid: 512345,6789012,buy,EURUSD,risk=1 Valid: 512345,buy,EURUSD,risk=1 |
| Invalid Syntax Command | Ensure commands used are as per the Syntax GuideInvalid: 5123456789012,long,EURUSD Valid: 5123456789012,buy,EURUSD,risk=1 |
| Misspelling in Syntax | Ensure that parameters are all typed out correctlyInvalid: 5123456789012,buy,EURUSD,rsik=1,trialdist=20 Valid: 5123456789012,buy,EURUSD,risk=1,traildist=20 |
| Accidental Inclusions in Syntax | Ensure that there are no accidental letters or symbols in your syntaxInvalid: 5123456789012,buy,EURUSD,risk=1,sl=5} Valid: 5123456789012,buy,EURUSD,risk=1,sl=5 |
| Incorrect Webhook Address | Ensure that you are linking the alerts to the appropriate webhook addressInvalid: http://pineconnector.net/webhook/ Valid: https://pineconnector.net/webhook/ |
| Incorrect Alerts Setup | If you see an arrow on your TV chart without an accompanying alert in the alerts log, it means your alert trigger might be incorrectly configured.
Please check your Alerts Log on your TradingView terminal. Important: The comparison should be between your TradingView’s alerts log and your MetaTrader’s Experts Tab (and not your chart). |
| Value | Description | Errors & Remarks |
|---|---|---|
| 130 | Invalid Stops |
ERR_INVALID_STOPS
You might have sent an alert in pips while your EA setting is set to price. Alternatively, your SL is higher or TP is lower than your current price for long trades and vice versa. Please check your EA settings – it might be in pips target when you intend for price targets and vice versa. Ensure that your SL and TP are not too close. You may check the minimum stops of the symbol in the symbol list under «Stops level». If you are sending pending orders, please ensure that your entry price is not too close. Since there is a small mismatch in prices when comparing TV and MT4 quotes, we recommend that you use «price=» based on pips. |
| 131 | Invalid Trade Volume |
ERR_INVALID_TRADE_VOLUME
Ensure minimum and incremental volume supported by broker. |
| 132 | Market is Closed |
ERR_MARKET_CLOSED
TGIF, no more trading! |
| 133 | Trade is Disabled |
ERR_TRADE_DISABLED
Symbol restricted by broker. Ensure that Live Trading is Allowed, and that the Symbol used is exactly as per your Symbol List (CTRL+U) |
| 134 | Trade is Disabled |
ERR_NOT_ENOUGH_MONEY
You are probably trying to open a position too large whereby you have insufficient free margin. Please use a smaller “risk=“ value or use the appropriate Volume Type. |
| 4017 | DLL calls are not allowed |
ERR_DLL_CALLS_NOT_ALLOWED
Allow DLL calls in your EA and options. |
| 4051 | Invalid Function Parameter Value |
ERR_INVALID_FUNCTION_PARAMETER_VALUE
Please ensure that you have a «risk=» in your syntax. Kindly note the the «risk=» parameter is required for entry commands (buy, sell, buystop, sellstop, buylimit, selllimit) |
| 4106 | Unknown Symbol |
ERR_UNKNOWN_SYMBOL
Please ensure that you are using the exact symbol as per your Symbol List (CTRL+U on your MT4). Please note that the symbol is case sensitive. |
| 4109 | Trade is not allowed |
ERR_TRADE_NOT_ALLOWED
Allow automated trading. Please check the following: After checking (1) and (2), the face at the top right corner of your chart should be smiling. |
| Varied | Array not in range | Please contact support through our email or LiveChat including the PineConnector EA version and the 2 numbers in the brackets (xx,xx) that came with the Error. |
For a full list of MetaTrader 4 (MQL4) errors, please refer HERE.
| Value | Description | Errors & Remarks |
|---|---|---|
| 4752 | Trading by Expert Advisors prohibited | Allow trading in the EA properties. |
| 4756 | Trade request sending failed |
ERR_TRADE_SEND_FAILED
On your MT5 Terminal, please go to the «Journal» tab at the bottom and look for the Error. It should indicate «Unsupported Filling Mode», «No Prices» or «Invalid Request». 1. Unsupported filling mode Please ensure you are using the latest MT5 EA available. In the EA Settings (F7 on your MetaTrader terminal), under «Broker Set», select «Broker Set B». 2. No prices 3. Invalid request There might be a character before or after the symbol such as «$», «#», «S», etc 4. Trade Disabled There might be a character before or after the symbol such as «$», «#», «S», etc 5. Invalid Expiration |
| Varied | Array not in range | Please contact support through our email or LiveChat including the PineConnector EA version and the 2 numbers in the brackets (xx,xx) that came with the Error. |
For a full list of MetaTrader 5 (MQL5) errors, please refer HERE.
Invalid filling mode
Magic Keys Agent
Last Update vor 7 Monaten
Error 4756 is an INVALID_FILL error. That means you have to change the Filling Mode from the EA parameters. Filling mode changes the way your order is handled and it differs from broker to broker. What you have to do is go to the parameters window (right-click on chart -> experts -> Properties or just press F7) and change the fillinf mode to ORDER_FILLING_IOC or ORDER_FILLING_FOK.
Error 4756 si an INVALID_FILL error. That means you have to change the filling mode from the EA parameters. Filling mode changes the way your order is handled and it differs from broker to broker. What you have to do is go to the parameters window (right-click on chart -> Experts -> Properties or just press F7) and change the filling mode to ORDER_FILLING_IOC or ORDER_FILLING_FOK.
Was this article helpful?
0 out of 18 liked this article
Risk Disclosure:
Futures and forex trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones’ financial security or life style. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results.
Hypothetical Performance Disclosure:
Hypothetical performance results have many inherent limitations, some of which are described below. no representation is being made that any account will or is likely to achieve profits or losses similar to those shown; in fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk of actual trading. for example, the ability to withstand losses or to adhere to a particular trading program in spite of trading losses are material points which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program which cannot be fully accounted for in the preparation of hypothetical performance results and all which can adversely affect trading results.
Testimonial Disclosure:
Testimonials appearing on www.strategyquant.com may not be representative of the experience of other clients or customers and is not a guarantee of future performance or success.



