Stringo states that divide by zero stops EA... I cannot get this to happen. . ref: 'How to terminate an EA after it's done its job?' stringo 2008.06.17 11:16 Divide by zero in the EA stops your EA permanently. See https://docs.mql4.com/runtime/errors
wondering... docs say that OrderClose () is trading operation. seems ok, as client must talk to server. what seems strange is that OrderClose() of 12 orders can take place with or without " while(!IsTradeAllowed()) ..." the without was in a
if u have got this error via GetLastError () then how you handle it? // (functions of OrderSend(), OrderClose, OrderCloseBy, OrderDelete or OrderModify) // can fail, for a number of reasons, and return either negative ticket number or FALSE. // One
Hello - for whatever reason I'm back at square one again as my stderror.mqh should not be my old original one with mods to get over the >31ch bug in that file. but the damn thing is there and no where or if there is 'proper' one with <=31ch
Dear Posters of MQL4 Code examples I finally learned the trick of getting formatted code into posts... woweeee------------ many many thanks Rosh! Now, if I can do this, being an old codger... please could others not currently using the information
moderators : Not sure if this frowned on or not, please tell me if not allowed and remove post - thank you. For those having interest, I just got via email a link to By special request: here's your chance to listen into 3+ hours of question and
Hi there Was compiling some code which had 'not seen light of day' for long time and [of course] got a few variable not defined errors. They were for stderr.mqh identifiers which I had modified ages ago to get length <=31. (many moons ago too, I
Support Request: please supply 'how to handle' description for codes 7, 9, 137 ERR_NOT_ENOUGH_RIGHTS (7) waitXsecs+retryXtimes OR considered fatal ? ERR_MANFUNCTION_TRADE (9) waitXsecs+retryXtimes OR considered fatal ? ERR_BROKER_BUSY (137) as per
Hi All, Docs state: Any trading operation (functions of OrderSend() , OrderClose , OrderCloseBy , OrderDelete or OrderModify ) can fail, for a number of reasons, and return either negative ticket number or FALSE. One can find out about the reason for
Hi All My fx broker is Alpari so of course I use MT setup from their site. Since the first live update to build 213 popup appeared on MT startup last week, I have this popup appear every time now. The Help>About always shows 211 on startup > go
Your help appreciated, unless I have missed in docs, I understood that successful OrderSelect (ticket,..) meant that Trading Functions could be called eg, OrderStopLoss() or OrderTakeProfit() but, if after OrderSelect(ticket,..) I issue
at 'How do I close only some lots of an open position, when reaching some pip targets?' 2006.10.10 19:05 You will need to keep track of your order. If you have only 1 trade open you are fine, but generally the only thing that keeps constant when
As seen below is incorrect when Ctrl+Space+Shift used to display function formals OR when pops up automatically when opening ( keyed in. IE, double MathMod ( double value, double value2) The function returns the floating-point remainder of division
Support email below, being sent to me every 2 hours - have over 15 so far!!! support was emailed but did not reply - perhaps others are getting this repeated notification ?????????????/ The following new articles were published at
If get it wrong in EA code it can basically just keep looping and with the journal getting massively filled up etc..... Is there a HOT KEY combination to kill off this runaway EA? TIA
Is below a planned MetaTrader feature ? - or maybe I'm totally missing something... I recently organised the ...\experts tree to make life easier - or so I thought at time, but now not see any files in Terminal's navigator. In Editor the navigator
Would MetaQuotes please explain and/or actually look at the Terminal code and sort out or something... I have depended on how this function works... is this too much to ask? Like I read the docs and assumed that such a simple bit of coding would
(1) UninitializeReason() not always return to new launch init() what previous launch deinit() sees, why? previous launch deinit() sees: REASON_CHARTCLOSE new launch init() sees: Script finished its execution independently (2) EA global scope memory