{ if(position.SelectByIndex(i) && position.Symbol() == Symbol()) { ENUM_POSITION_TYPE type = position.PositionType(); double CurrentSL = position.StopLoss(); double CurrentTP = position.TakeProfit(); double Cur
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...
SetDouble设置双精度型指标行属性值自定义指标PlotIndexSetInteger设置整型指标行属性值自定义指标PlotIndexSetString设置字符串指标行属性值自定义指标Point返回报价货币当前交易品种的点大小检测PositionGetDouble返回持仓要求属性(双精度)交易函数PositionGetInteger返回持仓要求属性(日期时间或者整型)交易函数PositionGetString返回...
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...
在 MetaTrader 5 中, 实现相同的效果则通过调用 PositionClose 函数, 或是发出与当前持仓交易量相同但方向相反的交易请求。 在 MetaTrader 5 中, 每一笔交易动作均备录在案。一个动作是否是交易入场, 修改, 或离场, 此动作将留下足迹, 有关这些动作的数据 均可由专家交易系统访问。而在 MetaTrader 4 中并非...
// Position in the signal ratingMSG_SIGNAL_MQL5_SUBSCRIBERS,// Number of subscribersMSG_SIGNAL_MQL5_TRADES,// Number of tradesMSG_SIGNAL_MQL5_SUBSCRIPTION_STATUS,// Status of account subscription to a signalMSG_SIGNAL_MQL5_EQUITY,// Account equityMSG_SIGNAL_MQL5_GAIN,// Account growth in %...
Returns the ticket of the position with the specified index in the list of open positions OrdersTotal Returns the number of orders OrderGetTicket Return the ticket of a corresponding order OrderSelect Selects a order for further working with it ...
1278、 string PositionGetSymbol (int index //仓位列表中的数量); 1279、返回仓位的商品名称。 1280、参数为开仓的索引数。 1281、加百力,这个数字应该和魔数类似,用于标示不同交易品种。 1282、 bool PositionSelect(string symbol //交易品种名称);
Spread MetaTrader indicator — displays current spread in the main window of the chart. You can modify the font parameters, indicator's position and the normalization of the spread value. The spread is redrawn after each tick, ensuring the most current and active spread value. This can be use...
void OnTrade() { //--- static datetime date=0; if(date==0) date=lastTime; long positionId=-1,numberOfPositions=0; for(int i=PositionsTotal()-1; i>=0; i--) if(m_position.SelectByIndex(i)) if(m_position.Symbol()==ativo000) { numberOfPositions++; positionId=m_position....