aFor convenience,these photos will be displayed in chronological order 为了方便,这些相片按照年代次序将被显示[translate] a我说停止 I said the stop[translate] aI mean about MQL4 syntax... I need separate values for 3 last closed orders profit or loss...[translate]...
if(!OrderClose(OrderTicket(),OrderLots(),Bid,2,HotPink)) // closing 0.1 lot { Print(" Closed order #= ",OrderTicket(),"Error #= ",GetLastError()); RefreshRates(); } } //+---+ void Close_S_lot() { if(!OrderClose(OrderTicket(),OrderLots(),Ask,2,Aqua)) // closing 0.1 ...
while (true) { ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, slippage, Bid + StopLoss*Point, Bid - TakeProfit*Point, 0, MAGICMA, 0, Red); if(ticket > 0) { err = GetLastError(); Print("While opening the order the error # occured", err); break; } Sleep(1000); RefleshR...
ERR_MARKET_CLOSED 132 市场关闭。 ERR_TRADE_DISABLED 133 交易被 。 ERR_NOT_ENOUGH_MONEY 134 不足。 ERR_PRICE_CHANGED 135 价格改变。 ERR_OFF_QUOTES 136 开价。 ERR_BROKER_BUSY 137 经纪繁忙。 ERR_REQUOTE 138 重新开价。 ERR_ORDER_LOCKED 139 定单被锁定。 ERR_LONG_ ITIONS_ONLY_ALLOWED 140...
The last incoming tick time (last known server time) Series Array Identifiers MODE_TRADEALLOWED Trade is allowed for the symbol MarketInfo MODE_TRADES An order is selected from open and pending orders OrderSelect MODE_UPPER Upper line Indicator Lines MODE_VOLUME Volume, used in iLowest...
Alert("Closed order Sell",Ticket); break;// Exit closing loop } if(Fun_Error(GetLastError())==1)// Processing errors continue;// Retrying return;// Exit start() } break;// Exit while } //--- 7 -- // Order value RefreshRates();// Refresh rates Min_Lot=MarketInfo(Symb,MODE_MIN...
OrderSend The main function used to open an order or place a pending order Trade Functions OrdersHistoryTotal Returns the number of closed orders in the account history loaded into the terminal Trade Functions OrderStopLoss Returns stop loss value of the currently selected order Trade Functio...
S ee y ou C oder s ' G u r u 2 9 -1 0 -2 0 0 5 MQL4 COURSE By Coders' g u ru -9- Preprocessors --- Welcome to my last theoretical lesson i n th i s ser i es. I n th e n ex t ser i es of lesson s w e w i ll star t to b u i ld ou r f i r st...
MT4编程语言MQL4入门(全接触).docx,实用标准文案 MT4编程语言全接触 语法[Syntax]代码格式 空格建、Tab键、换行键和换页符都可以成为代码排版的分开符,你能使用各种符号来增加代码的可读性。说明 多行说明使用/*作为开始到*/结束,在这之间不可以嵌套。单行说明使用//作为
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...