Mql4 Ordersend Error 4111
Contents |
04:39 I have export the follow data ,then run the EA, the error is : mql4 error codes 2012.11.20 11:25:342007.09.09 12:51 USDJPY,Daily: OrderSend error 4111? how i
Mql4 Error 4109
can do ? Attached files: table2_1.zip (39.76 KB) similar Seeking "Positions Allowed" Property Setting Expert
Mql4 Error 130
MACD EURUSD 1 Hour EA works with other pairs, but not AUDUSD, AUDCHF, NZDUSD, EURGBP ? Long, Short or Long&Short export data from metatrader 4
Mql4 Error 4073
472 phi.nuts 2012.11.20 07:03 # leyou1233: I have export the follow data ,then run the EA, the error is : 2012.11.20 11:25:342007.09.09 12:51 USDJPY,Daily: OrderSend error 4111? how i can do ? The data got nothing to do with the error.Next time add this code so you understand what error mql4 error code 5004 you get.On top of your code :#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 mql4 error 4051 Stack Overflow the company Business Learn more about hiring developers or posting ads with mql4 ordersend error 130 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is mql4 error 4108 a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up MQL4 - ERROR 4111 when calling OrderSend() method up vote 2 down vote favorite https://forum.mql4.com/52430 I am trying to place order, but my call to OrderSend() method ( https://docs.mql4.com/trading/ordersend )is failing: 2016.08.01 00:51:09.710 2016.07.01 01:00 s EURUSD,M1: OrderSend error 4111 void OnTick() { if ( OrdersTotal() == 0 ){ int result = OrderSend( NULL, OP_SELL, 0.01, Bid, 5, 0, Bid - 0.002, NULL, 0, 0, clrGreen ); if ( result < 0 ) Print( "Order failed #", GetLastError() ); else Print( "Order success" ); } } http://stackoverflow.com/questions/38689063/mql4-error-4111-when-calling-ordersend-method Do you know what am I doing wrong please? algorithmic-trading mql4 metatrader4 mql5 share|improve this question edited Aug 4 at 6:41 user3666197 7,85721330 asked Jul 31 at 22:57 YumYumYum 5,83224122215 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted Let's dis-assemble the OrderSend() call first: int result = OrderSend( NULL, // string: _Symbol, OP_SELL, // int: OP_SELL, 0.01, // double: NormalizeLOTs( nLOTs ), Bid, // double: NormalizeDouble( Bid, Digits ), 5, // int: slippagePOINTs, 0, // double: { 0 | NormalizeDouble( aSlPriceTARGET, Digits ) }, Bid-0.002, // double: { 0 | NormalizeDouble( aTpPriceTARGET, Digits ) }, NULL, // string: { NULL | aBrokerUnguaranteedStringCOMMENT }, 0, // int: { 0 | aMagicNUMBER }, 0, // datetime: { 0 | aPendingOrderEXPIRATION }, clrGreen // color: { clrNONE | aMarkerCOLOR } ); For one's further peace-of-mind, one ought always normalise all the values, that have some restrictive handling on the MQL4-side ( prices + lot ( quantised ) values -- as these are not continuous values in R domain, but rather quantum-stepped: prices: having a 0.00001 or 0.0001 or 0.001 or 0.01 or 0.1 or 1.0 etc. stepping, lot-volumes: being more restricted by the Broker-specific settings, per instrument, of three key values, all allowable volume
First Unread Last Page Last Post Printable Version Similar Threads EA tool & strategy for semi-automatic interactive trading 80 replies semi-automatic fibs in MT4? 0 replies Testing a semi-automatic EA with a strategy tester 1 reply http://www.forexfactory.com/showthread.php?p=3776684 Geoff's Manual and Semi Automatic Trading Setup 988 replies Trading a (semi) automatic approach...but want more 11 replies Trading Systems / Reply to Thread Subscribe 391 Attachments: Semi automatic EA (Driven Version) Exit Attachments Semi automatic EA (Driven Version) Last Post 1 9394Page 959697 101 1 Page 95 101 Post #1,881 Quote Nov 23, 2009 4:53am Nov 23, 2009 4:53am markpips | Joined Jul 2008 mql4 error | Status: Member | 31 Posts Quoting jake100 Disliked I am backtesting 5 digit version posted in post#1. These work well with "short only" on down trend areas. But picking "long only" in up trend gives me order send error 4111. I tried both "long and short " on a wide area of both trends up and down. It seems to only pick up short orders. Feels like mql4 ordersend error longs trades are turned off or something. Settings are all default no changes. Can somebody tell me what I am doing wrong? Ignored I think you need the newer versions of this ea. Try version 1.5b, vers. 1 .5c or 1 .5d . coded by Actionpl. Pls. read at least from page 90 to find the aboved mention ea's and to understand very well the settings. I belive they are better. Happy trading. Post #1,882 Quote Nov 28, 2009 3:13pm Nov 28, 2009 3:13pm watube | Joined May 2009 | Status: Member | 167 Posts bookmarked Post #1,883 Quote Feb 18, 2010 11:43pm Feb 18, 2010 11:43pm JohnnyBSmart Joined Apr 2009 | Status: Member | 816 Posts Hello Fellow Traders, I have just finished reading a few dozen posts in this thread. It seems very similar to an idea I had a year or so ago. Not having read the entire thread it might have already been discussed but here goes. Having written a few automatic trading systems myself the key to any good system of course is filtering out the little bumps in the road so as not to place a trade too early. Even a trend line won'