예제 #1
0
        public MqlTradeRequestViewModel(MqlTradeRequest reqest)
        {
            if (reqest == null)
                throw new ArgumentNullException();

            TradeRequest = reqest;
        }
예제 #2
0
        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
            });
        }