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 OrderModify(ticket,...,newSL||newTP,...) and then eg
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 OrdersTotal()-1 for loop with OrderSelect(...) >
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 . 2008.06.27 20:26:24 divideByZero GBPUSD,H1
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 can find out about the reason for fail by calling
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 lengths... whatever.... PLEASE could anyone reply to this
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 relayed in video link below do the same? Why? cause
//ERR_TRADE_TOO_MANY_ORDERS case 148 : /*On some trade servers, the total amount of open and pending orders can be limited. If this limit has been exceeded, no new position will be opened (or no pending order will be placed) and trade server will
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 answer sessions with Stuart McPhee and David Jenyns 4
When a P ending order type P is issued you can see that the order listed on Terminal > Trade tab has pending order type P listed. I have noticed that when the P ending order is activated and becomes market order that the order type listed is buy or sell . My question is this: If OrderType () returns
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 shouted politely [hopefully;] at support rea: >31