public static BROKER_ORDER UndecorateBrokerOrder(BrokerOrder ord) { var order = new BROKER_ORDER { RequestID = ord.RequestId, ID = ord.Id, Ticker = ord.Ticker, Instrument = (int)ord.Instrument, Volume = ord.Volume, Side = ord.Side, OrderPricing = (int)ord.OrderPricing, RequestedPrice = ord.RequestedPrice, Slippage = ord.Slippage, Dealer = ord.DealerCode, AccountID = ord.AccountID, ClosingPositionID = ord.ClosingPositionID, TimeCreated = ord.TimeCreated, Magic = ord.Magic, Comment = ord.Comment, ExpertComment = ord.ExpertComment, Markup = ord.MarkupAbs }; return(order); }
public static BROKER_ORDER UndecorateBrokerOrder(BrokerOrder ord) { var order = new BROKER_ORDER { RequestID = ord.RequestId, ID = ord.Id, Ticker = ord.Ticker, Instrument = (int)ord.Instrument, Volume = ord.Volume, Side = ord.Side, OrderPricing = (int)ord.OrderPricing, RequestedPrice = ord.RequestedPrice, Slippage = ord.Slippage, Dealer = ord.DealerCode, AccountID = ord.AccountID, ClosingPositionID = ord.ClosingPositionID, TimeCreated = ord.TimeCreated, Magic = ord.Magic, Comment = ord.Comment, ExpertComment = ord.ExpertComment, Markup = ord.MarkupAbs }; return order; }