TRADE_ACTION_CLOSE_BY 通过反向持仓来平仓 打开买入持仓TRADE_ACTION_DEAL 交易操作的示例:#define EXPERT_MAGIC 123456 // EA交易的幻数 //+---+ //| 打开买入持仓 | //+---+ void OnStart() { //--- 声明并初始化交易请求和交易请求结果 MqlTradeRequest request={}; MqlTradeResult result={}; ...
Request.action =TRADE_ACTION_CLOSE_BY; Request.position =OrderSend(_Symbol,OP_SELL,0.01,Bid,100,0,0); Request.position_by =OrderSend(_Symbol,OP_BUY,1,Ask,100,0,0); Request.symbol =_Symbol;// Еслиубратьэтустроку, тосообщениявлогеизмен...
By company size Enterprises Small and medium teams Startups Nonprofits By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturing Government View all industries View all solutions Resources Topics AI DevOps Security Software Development...
action = TRADE_ACTION_REMOVE; // 交易操作的类型 request.order = opTicket; //--- 发送请求 return useAsync ? OrderSendAsync(request, result) : OrderSend(request, result); } 批量关闭订单(一键平仓) 通过遍历订单,我们可以实现一键平仓的功能 // 平仓指定持仓 bool invokeClosePositionSendAction(Mql...
TRADE_ACTION_DEAL 为规定参数的立即执行放置交易命令(市场命令) MqlTradeRequest TRADE_ACTION_MODIFY 修改先前放置的命令参量 MqlTradeRequest TRADE_ACTION_PENDING 在制定环境下执行放置交易命令(待办订单) MqlTradeRequest TRADE_ACTION_REMOVE 删除先前放置的待办订单命令 MqlTradeRequest TRADE_ACTION_SLTP 修改折仓并...
By company size Enterprises Small and medium teams Startups Nonprofits By use case DevSecOps DevOps CI/CD View all use cases By industry Healthcare Financial services Manufacturing Government View all industries View all solutions Resources Topics AI DevOps Security Software Development...
问将mql4 EA转换为mql5EN版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供...
ENUM_ORDER_TYPEaction,//订单类型(ORDER_TYPE_BUY或者ORDER_TYPE_SELL)stringsymbol,//交易品种名称doublevolume,//交易量doubleprice_open,//开盘价doubleprice_close,//收盘价double&profit//为获得利润值的变量 ); 1257、计算当前账户利润。 1258、这个应该是为了实现交易软件的功能而设计的函数, ...
Finnaly i got the "Nec Plus Ultra" on charting ... Price (PIP) Bars or Range Bars !! No more time based bars with gaps and uncontrolable price action. Only clear and smooth price charts. Please see my NY-night trade from today... ...
Round Levels MetaTrader indicator — an MT4/MT5 indicator that can display round levels and zones near them based on your configuration. It can be useful to trade off the natural psychological support and resistance zones. It can also issue alerts when the price is in either support or resistan...