Mql Error Code 130
Contents |
draho 2007.09.26 07:44 Hello, Can anybody help me with this error? I am sending an Order using this command: Ticket = OrderSend(Symbol(), mql4 ordersend error 130 OP_BUY, 1, Ask, 3, 30, 30, "Buy_Order", 0, 0, Green); I want to
Mql4 Error Codes
buy 1 lot and set StopLoss and TakeProfit to 30 pips and I am receiving the error #130 mql4 ordermodify error 1 - Invalid stops. I have AlpariUK demo Account and I am trying it on EURUSD pair with the following MarketInfo: MODE_POINT -> 0.0001 MODE_DIGITS -> 4 MODE_SPREAD -> 2 MODE_STOPLEVEL ->
Mql4 Error 4109
2 MODE_LOTSIZE -> 100000 MODE_TICKVALUE -> 10 MODE_TICKSIZE -> 0.0001 MODE_MINLOT -> 0.01 MODE_LOTSTEP -> 0.01 MODE_MAXLOT -> 99999 Thanks for any help Draho similar Error opening BUY order : 130 Get last order result (buy,sell,close,stop loss)... Strategy Tester Visual Mode Problem EA failed with "Every Tick" / minimum StopLoss value OrderSend in backtest mode 2644 phy 2007.09.26 08:05 # mql4 ordermodify error 130 Stoploss and TakeProfit need to be a price, not an integer of pips int OrderSend(string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) similar Firts EANeed help writing a custom indicatore-TurboFxExternal Dll pass double by referencehelp me please , I want close all the oder by one click anyboby can help ? me thank ! 124 Heino 2008.01.06 02:25 # phy wrote: Stoploss and TakeProfit need to be a price, not an integer of pips int OrderSend(string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE) I have the same problem with stop in my EA, the Variables are that: extern double StopLoss = 30.0; extern double TakeProfit = 50.0; and then so: if(signal==2) { res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,StopLoss,TakeProfit,"Sell",MAGICMA,0,Red); if (res>0) { Print("Order #",res," opend by Sell Signal"); } else { err=GetLastError(); Print("Error(",err,") opening Sell position: ",ErrorDescription(err)); } return; } if(signal==1) { res=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,StopLoss,TakeProfit,"Buy",MAGICMA,0,Blue); if (res>0) { Print("Order #",res," opend by normale Buy Signa
Return Codes Trade Server Return CodesCompiler WarningsCompilation ErrorsRuntime Errors
Mql4 Error 4051
Trade Server Return Codes GetLastError() - returns error
Mql4 Error Code 5004
codes. Error codes are defined in stderror.mqh. To print the error description mql4 error 4073 you can use the ErrorDescription() function, defined in stdlib.mqh. Example: #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the http://stackoverflow.com/questions/26331310/order-sent-failed-with-error-130 company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 http://mql4you.ru/tag/error-130 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Order Sent Failed with Error #130 up vote 1 down vote favorite I'm trying to insert a takeprofit and mql4 error stoploss argument in my SendOrder() function, but I'm getting the following error: Order Sent Failed with Error #130 This is my code: extern double takeprofit = 30.0; extern double stoploss = 20.0; stoploss = NormalizeDouble( stoploss, 5 ); // SET stop loss Print( "stoploss", stoploss ); takeprofit = NormalizeDouble( takeprofit, 5 ); // SET take profit ticket = OrderSend( Symbol(), OP_SELL, lotsize, Ask, 100, stoploss, takeprofit, 0, 0, 0, CLR_NONE ); if ( mql4 ordermodify error ticket < 0 ) { Print( "Order send failed with error #", GetLastError() ); } else Print( "Order send sucesso!!" ); I already checked documentation for the function NormalizeDouble(), but I'm still getting the error. What should I do? mql mql4 share|improve this question edited Oct 14 '14 at 4:42 user3666197 7,85721330 asked Oct 13 '14 at 0:08 Filipe Ferminiano 1,14722046 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted A ) Fully comply with the MQL4 OrderSend() syntax requirements int anOrderTKT; // DECLARE int double anOrderLotSIZE; // DECLARE double string anOrderCommentSTRING; // DECLARE string anOrderTKT = OrderSend( _Symbol, // CPU-glitch, is faster than calling Symbol(), OP_SELL, // XTO.Type anOrderLotSIZE, // XTO.Size [LT]s Bid, // XTO.EntryPRICE { OP_BUY: Ask | OP_SELL: Bid } 100, // XTO.SLIPPAGE [PT]s 0, // XTO.SL_PRICE 0, // XTO.TP_PRICE, anOrderCommentSTRING, // XTO.Comment 0, // XTO.MagNUM# 0, // XTO.PendingOrderEXPIRE CLR_NONE // GUI.MarkerCOLOR ); // ==> { EMPTY | aTkt# } Your code fails at setting a correct SHORT trade Entry-Price, as it shall read rather Bid, not Ask ( this error is hidden as it is effectively masked-out by a rather cosmic distance of 100 points in a tolerable slippage distance from the said price ). Your code fails at assigning int ( 0 ) in place, w
Автор: palt 3 Фев Что значит 2010.02.01 17:00 MyExpert GBPUSD,M15: OrderModify error 130 почему обычно эта ошибка возникает? Очень много подобных вопросов мне приходит. Поэтому публикую таблицу кодов ошибок. Например посмотрев вышеописанную ошибку error 130 становится понятно, что функция OrderModify пытается изменить стоп-лосс или тейк-профит слишком близко к текущей цене. Коды ошибок GetLastError()— функция, возвращающая коды ошибок. Кодовые константы ошибок определены в файле stderror.mqh. Для вывода текстовых сообщений следует использовать функцию ErrorDescription(), определенную в файле stdlib.mqh. Коды ошибок, возвращаемые торговым сервером или клиентским терминалом: Значение Описание 0 Нет ошибки 1 Нет ошибки, но результат неизвестен 2 Общая ошибка 3 Неправильные параметры 4 Торговый сервер занят 5 Старая версия клиентского терминала 6 Нет связи с торговым сервером 7 Недостаточно прав 8 Слишком частые запросы 9 Недопустимая операция нарушающая функционирование сервера 64 Счет заблокирован 65 Неправильный номер счета 128 Истек срок ожидания совершения сделки 129 Неправильная цена 130 Неправильные стопы 131 Неправильный объем 132 Рынок закрыт 133 Торговля запрещена 134 Недостаточно денег для совершения операции 135 Цена изменилась 136 Нет цен 137 Брокер занят 138 Новые цены 139 Ордер заблокирован и уже обрабатывается 140 Разрешена только покупка 141 Слишком много запросов 145 Модификация запрещена, так как ордер слишком близок к рынку 146 Подсистема торговли занята 147 Испол