Error 4108
Contents |
Page Last Post Printable Version Similar Threads Close all pending orders and open orders once they reach profit target 3 replies Order Modify Error 1 2 replies problem with pending order throwing error 130 on mql4 ordersend error 131 order send 2 replies EA failed to update stop error 0/4108 2 replies
Error 4051
Error opening a order 0 replies Platform Tech / Reply to Thread Subscribe Order delete error 4108 (with 2 open mql4 error 129 orders) Post #1 Quote First Post: Oct 30, 2014 9:05am Oct 30, 2014 9:05am BeLikeWater | Commercial Member | Joined Jan 2010 | 545 Posts Ei there programming guring wish you could help
Mt4 Ordermodify Error 1
me with this code. Im using this one to close the open orders, it does work when I have only 1 trade open, but when I have 2 trades it only close one, and gives the "Order delete error 4108". Anyone has an idea of what to do? for (int i=1; i<=OrdersTotal(); i++) //Cycle for all orders.. { //displayed in the terminal if(OrderSelect(i-1,SELECT_BY_POS)==true)//If there is the next error 4107 mql4 one { Alert("HA ENTRADO OrderTicket 0 ", OrderTicket()); if (OrderType()==OP_BUY) {OrderClose(OrderTicket(),OrderLots(),Bid,25);} if (OrderType()==OP_SELL) {OrderClose(OrderTicket(),OrderLots(),Ask,25);} } } Greetings, BeLikewater Post #2 Quote Oct 30, 2014 9:36am Oct 30, 2014 9:36am FerruFx Joined May 2007 | Status: MT4 EAs/Indicators/Alerts coder | 5,886 Posts Your loop is wrong. Try this instead : Inserted Code for(int i = OrdersTotal()-1; i >= 0; i--) { if(!OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) continue; ... ... MT4 EAs/Indicators/Alerts coder Post #3 Quote Oct 30, 2014 9:42am Oct 30, 2014 9:42am RedLineFred Joined Sep 2012 | Status: Member | 223 Posts The issue is that you need to count down your orders and not count up, where you were using i++, FerruFX rightly identifies i--. "Choices are the hinges of destiny." - Pythagoras (570 BC - 495 BC) Post #4 Quote Oct 30, 2014 9:51am Oct 30, 2014 9:51am FerruFx Joined May 2007 | Status: MT4 EAs/Indicators/Alerts coder | 5,886 Posts Quoting RedLineFred Disliked The issue is that you need to count down your orders and not count up, where you were using i++, FerruFX rightly identifies i--. Ignored Exactly. Because if you close the #1 before #2, the #2 become #1 and can't be close because the #1 were closed previously
log in or register 12 Do you know that MQL5 can create custom graphical tools? 114330 Forex Trader 2005.10.03 07:42 Hi, I was trying to build an array of the open order tickets, but OrderTicket()
Mql4 Getlasterror
just returns 0. Is that a known issue or am I
Mql4 Error 1
somehow messing up the incredibly simple code? Loren CreateGridOrdersTune by Konstantin Chernov 10 A script for opening a mql4 check for open orders grid of orders If you need to quickly open several pending orders (Buy Limit, Sell Limit, Buy Stop, Sell Stop) on a certain distance from the current price, this http://www.forexfactory.com/showthread.php?t=511029 script will do all the routine for you! Allow AutoTrading before running the script. Usage: Run the script on a chart. Input Parameters: Language of messages displayed (EN, RU, DE, FR, ES) - language of the output messages (English, Russian, German, French, Spanish). Price for open - open price. If set to Elder AutoEnvelope by Financial Trading Seminars https://www.mql5.com/en/forum/44781 Inc. 39 Envelopes or channel lines are set parallel to the Moving Average (to the slow MA if you use two MAs). The two channel lines must contain approximately 95% of all prices for the past two or three months on a daily chart, with only the extremes protruding outside. Channel lines provide attractive profit targets - sell longs near the upper line and cover shorts near the lower line. The AutoEnvelope is a custom indicator - an original tool that automatically selects channels width by calculating a PipTick Supply Demand MT5 by Michal Jurnik 147 PipTick Supply Demand is the best indicator we have ever made. This great tool automatically draws a supply and demand zones which are the best places for opening and closing the positions. It has many advanced features such as multi timeframe zones support, displaying width of zones, alert notifications for retouched zones and much more. Because of principle of market fractality, this indicator can be used for any kind of trading. It does not matter w
публикаций Альпари Форумы Пользователи Блоги Календарь Обратная связь Больше Форумы компании Альпари → Трейдинг → Автоматическая http://forum.alpari.ru/index.php?/topic/50736-error-4108/ торговля Отключен JavaScript У вас отключен JavaScript. Некоторые возможности системы не будут работать. Пожалуйста, включите JavaScript для получения https://support.industry.siemens.com/tf/ww/en/posts/wincc-api-function-error-4108/4012/?page=0&pageSize=10 доступа ко всем функциям. error 4108 Начата: VoKirill , 19 Окт 2011 02:06 Авторизуйтесь для ответа в error 1 теме Сообщений в теме: 18 #1 VoKirill VoKirill Я тут случайно 6 сообщений Регистрация: 09 Окт 2011 Отправлено 19 Октябрь 2011 - 02:06 Подскажите пожалуйста. При тестировании советника выскакивает ошибка OrderDelete error 4108. В mql4 error 1 результате чего не закрываются ордера и упираются в лосю. Заранее спасибо 0 Наверх #2 Мэкс Мэкс Завсегдатай 518 сообщений Регистрация: 13 Сен 2007 Отправлено 19 Октябрь 2011 - 06:09 Ошибка- не верный тикет.Вы наверно пытаетесь удалить рыночные ордера функцией для отложек?Нужно закрыть ф-ией:bool OrderClose( int ticket, double lots, double price, int slippage, color Color=CLR_NONE) 0 Наверх #3 VoKirill VoKirill Я тут случайно 6 сообщений Регистрация: 09 Окт 2011 Отправлено 19 Октябрь 2011 - 12:48 Да, я работаю с отложенными ордерами, но использую предложенную вами функцию. Ниже представлен часть кода, которая удаляет ордераfor (int i=1; i<=OrdersTotal(); i++) { if(OrderSelect(i-1,SELECT_BY_POS)==true)//Если есть следующи
Skip over Search Skip over Site Explorer Site ExplorerSite Explorer Search Product Support Services Forum mySupport Navigation WINCC API FUNCTION ERROR 4108 Created by: KABASAKAL at: 7/4/2006 10:55 AM (2 Replies) Rating (0) Thanks 0 Actions New post 3 Entries 7/4/2006 10:55 AM Rate (0) KABASAKAL Member Joined: 5/29/2006 Last visit: 4/8/2013 Posts: 3 Rating: (0) HELLOMY PROJECT VERSION IS PCS7 V6.1.DURING THE OS COMPILE APPEAR THE ALARM MESSAGES " WINCC API FUNCTION ERROR NUMBER4108".WHAT CAN I DO SOLVING THIS PROBLEM?. ( I AM TRAYING "SAVE AS WITH REORGANIZED" ) [:cry:]BEST REGARDS. Suggestion To thank Quote Answer 7/6/2006 1:00 PM Rate (0) balu Experienced Member Joined: 9/29/2005 Last visit: 3/14/2010 Posts: 69 Rating: (9) Hi,first create an new OS and compile into this OS. If You are seccessful, the the old OS is demanged. If You get the same proplem with the new OS then You can do "Save as with reorganisation", cause with this function thePCS 7projectwill be reorganizedan d the OS is only copied. Then compile again. If You get the same problem, then You project may be demanged or so much the worse Your PCS 7 installation is corrupted.Do You get success?Balu Suggestion To thank Quote Answer 10/29/2008 3:28 PM Rate (0) Yer Experienced Member Joined: 6/1/2007 Last visit: 9/15/2015 Posts: 86 Rating: (6) Hello,This message appear when you use name's for you CFC's with are to long.Limit the name of the chart to 16 characters.use function "create and update block icons" if applyed.compile your OS with function "with memory reset"Yer Suggestion To thank Quote Answer 3 Entries | | All about Process Control Systems SIMATIC PCS 7 Presales info Catalog and ordering system online Technical info Support Training Contact & partners Follow us on Twitter Youtube © Siemens AG - Corporate Information | Privacy Policy | Cookie policy | Terms Of Use | Digital ID