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 130 can do ? Attached files: table2_1.zip (39.76 KB) similar Seeking "Positions Allowed" Property Setting Expert
Mql4 Error 4109
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 Stack Overflow the
Mql4 Ordersend Error 130
company Business Learn more about hiring developers or posting ads with us Stack Overflow mql4 ordermodify error 1 Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 mql4 error 136 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 I am trying to place https://forum.mql4.com/52430 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" ); } } Do you know what am I doing http://stackoverflow.com/questions/38689063/mql4-error-4111-when-calling-ordersend-method wrong please? algorithmic-trading mql4 metatrader4 mql5 share|improve this question edited Aug 4 at 6:41 user3666197 7,86121330 asked Jul 31 at 22:57 YumYumYum 5,85224123215 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 sizes have to meet: [aMinLOTs<=, +aMinLotSTEP, <=aMaxLOTs] + a proper digit normalisation~ thus a double NormalizeLOT
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 Geoff's Manual and Semi Automatic Trading Setup 988 replies Trading a http://www.forexfactory.com/showthread.php?p=3530333 (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 | Status: Member | 31 Posts Quoting jake100 Disliked I am backtesting 5 digit version posted in post#1. These work well mql4 error 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 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 mql4 error code 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't do that. It can really irritate the trader watching the PA continuing on its merry way after you already jumped off the train. Now I'm most likely posting this way too early in my understanding of this method but what caught my attention was the mentioning of a trend line. If you are manually drawing or even a code drawn line the
be down. Please try the request again. Your cache administrator is webmaster. Generated Sun, 23 Oct 2016 17:56:28 GMT by s_wx1085 (squid/3.5.20)