为了提高该多币种智能交易系统的效率,将添加若干个手工单击按钮 1. Set SL / TP All Orders — 为所有订单设置止损/止盈 当交易者在输入参数设置”使用订单止损(否)“和/或”使用订单止盈(否)“时但交易者打算对所有订单使用止损或止盈时,只需单击按钮“为所有订单设置止损/止盈”,所有订单将被修改,并会...
double pos_open = mc_position.PriceOpen(); double pos_stop = mc_position.StopLoss(); double pos_profit = mc_position.Profit(); double pos_swap = mc_position.Swap(); double pos_comm = mc_position.Commission(); double netp=pos_profit+pos_swap+pos_comm; double modstart=mc_symbol.Norm...
Hello, I want to close all opened or which open trade automatically except 2 most recently opened trade. My code extern int BlindClose = 2 ; void CloseOldOrder( int MagicNumber) { int OldOrderClose_totalOrders = OrdersTotal (); int OldOrderClose_count = 0 ; int ...
BALANCEnullGet current balance POSITIONSnullGet current open positions ORDERSnullGet current open orders HISTORYDATAGet data history HISTORYTRADESGet trades history TRADEORDER_TYPE_BUYBuy market TRADEORDER_TYPE_SELLSell market TRADEORDER_TYPE_BUY_LIMITBuy limit ...
Hello, I want to close all opened or which open trade automatically except 2 most recently opened trade. My code extern int BlindClose = 2 ; void CloseOldOrder( int MagicNumber) { int OldOrderClose_totalOrders = OrdersTotal (); int OldOrderClose_count = 0 ; int ...
1320、 MQL4中没有明确区分头寸和挂单都统称为Orders。 1321、 ulong OrderGetTicket(int index //订单列表中的数量); 1322、根据索引值返回订单编号。 1323、如果函数运行失败返回0。 1324、 bool OrderSelect(ulong ticket //订单号); 1325、根据订单号选择订单。 1326、返回是否成功选中订单。 1327、 double Ord...
问将mql4 EA转换为mql5EN版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供...
for(inti=orders-1;i>=0;i--) { //根据成交单的魔数获取系统编号 ulongticket=HistoryDealGetTicket(i); //如果得到的系统编号是0,说明不是成交单而可能只是取消的订单。 if(ticket==0) { Print("HistoryDealGetTicketfailed,notradehistory");
(void); //updating of parameters of the orders being placed according to the data received from price modules virtual bool OpenLongParams(double &price,double &sl,double &tp,datetime &expiration); virtual bool OpenShortParams(double &price,double &sl,double &tp,datetime &expiration); virtual ...
Get Nth Closed Trade from the end in MT4 This EA will scan all the closed trades and then print the nth trade from the end Get Nth Active Trade from the end in MT4 This EA will scan all the open trades and then print the nth trade from the end...