Mt4 Orderclose Error 145
Contents |
Page Last Post Printable Version Similar Threads mt4 vs mt5 strategy tester 12 replies Strategy Tester Error 2 replies Help with strategy tester please 6 replies How do I disable Tester: Stop Loss and error 148? in MT4 0 replies OrderClose error 4107 1 reply Platform Tech / Reply to Thread orderclose mql4 Subscribe 5 Attachments: OrderClose Error 145 during strategy tester Exit Attachments OrderClose Error 145 during strategy tester mql4 orderclose error 4108 Post #1 Quote First Post: Nov 13, 2011 1:57am Nov 13, 2011 1:57am klhh | Joined Sep 2009 | Status: Member | 191 Posts Hello,
Mql4 Error Codes
when I tested my EA there was an error OrderClose Error 145 and could not close the order even TP was hit, it was happened during more than 1 ticket's TP were same, but during live time, there are no problem.
Mql4 Error 4109
May I know what is the problem pls? Attached Images (click to enlarge) Post #2 Quote Nov 13, 2011 6:35am Nov 13, 2011 6:35am stevegee58 Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,005 Posts Did you search for "OrderClose Error 145"? The error is "Modifying has been denied since the order is too close to market and locked for possible soon execution." So if the market is within a certain "close" distance from the TP for example the order is locked and mql4 ordersend error 130 cannot be modified. You are in a maze of twisty little passages, all alike. Post #3 Quote Nov 13, 2011 8:45am Nov 13, 2011 8:45am klhh | Joined Sep 2009 | Status: Member | 191 Posts Quoting stevegee58 Disliked Did you search for "OrderClose Error 145"? The error is "Modifying has been denied since the order is too close to market and locked for possible soon execution." So if the market is within a certain "close" distance from the TP for example the order is locked and cannot be modified. Ignored Hello stevegee58, based on my attactment(result picture) order 23 and 24 tp have been set to 1.4465, and during the strategy tester running until 1.4465, the test stopped and "OrderClose Error 145" shown in journal. I have tested with other pairs, as long as more than 1 tickets' TP are same, when the price reaches the TP, the test stopped and "OrderClose Error 145" shown in journal. The EA no problem during live. Post #4 Quote Nov 13, 2011 9:25am Nov 13, 2011 9:25am stevegee58 Joined Oct 2005 | Status: Pip Slappa Extrordinaire | 1,005 Posts It's still unclear what your EA is doing. The error indicates that the EA is doing something with the order right around the time a TP is about to happen. That's all I have to go on. You are in a maze of twisty little passages, all alike. Post #5 Quote Nov 13, 2011 10:48am Nov 13, 2011 10:48am cyber1 J
Return Codes Trade Server Return CodesCompiler WarningsCompilation ErrorsRuntime Errors Trade Server Return Codes GetLastError() - returns error codes. Error codes are defined in stderror.mqh. To
Mql4 Orderselect
print the error description you can use the ErrorDescription() function, mql4 close all orders defined in stdlib.mqh. Example: #include
comments, please log in or register Unable to find the answer to your question? Use the search! https://www.mql5.com/en/forum/46465 114347 Forex Trader 2007.04.02 10:51 When does this occur? http://gerardbsheadlon.tk/Mt4-Orderclose-Error-145.htm I have the problem when my EA wants to close a trade (sometiems, like 1 time out of 10). It says too close to market but wtf I want to close AT market.. how mql4 error can it be too close? heh. TP or SL too close? close order #111 sell 1.00 EURUSD at 1.3318 sl: 1.3355 tp: 1.3310 at price 1.3313 order #111 sell 1.00 EURUSD closing at 1.3313 failed [Modification denied. Order too close to market] mt4 orderclose error edit: found possible cause for this error: broker stop level in points is 10. my TP was 7 pips or so. what does it mean actually? I can't close my order until I am +10? / To add comments, please log in or register MQL5.community Online trading / WebTerminal Free technical indicators and robots Articles about programming and trading Order trading robots on the Freelance Market of Expert Advisors and applications Follow forex signals Low latency forex VPS Traders forum Trading blogs MetaTrader 5 MetaTrader 5 Trading Platform MetaTrader 5 User Manual MQL5 automation language MQL5 Cloud Network Download MetaTrader 5 Install Platform Uninstall Platform Website AboutTimelineTerms and Conditions Privacy Policy Contacts and requests Join us — download MetaTrader 5! WindowsiPhone/iPadMac OSAndroidLinux Copyright 2000-2016, MQL5 Ltd.
try again in a few minutes. CloudFlare Ray ID: 2f4fe99387d816a0 • Your IP: 91.108.176.33 • Performance & security by CloudFlare