public MqlTradeRequestViewModel(MqlTradeRequest reqest) { if (reqest == null) throw new ArgumentNullException(); TradeRequest = reqest; }
public static ArrayList ToArrayList(this MqlTradeRequest request) { if (request == null) { throw new ArgumentNullException(); } var exp = Mt5TimeConverter.ConvertToMtTime(request.Expiration); return(new ArrayList { (int)request.Action, request.Magic, request.Order, request.Symbol, request.Volume , request.Price, request.Stoplimit, request.Sl, request.Tp, request.Deviation, (int)request.Type , (int)request.Type_filling, (int)request.Type_time, exp, request.Comment }); }