Example #1
0
        /// <summary>
        /// Create a new ClosedTrade object.
        /// </summary>
        /// <param name="buy">Initial value of the Buy property.</param>
        /// <param name="close">Initial value of the Close property.</param>
        /// <param name="closeInPips">Initial value of the CloseInPips property.</param>
        /// <param name="grossPL">Initial value of the GrossPL property.</param>
        /// <param name="id">Initial value of the Id property.</param>
        /// <param name="isBuy">Initial value of the IsBuy property.</param>
        /// <param name="isParsed">Initial value of the IsParsed property.</param>
        /// <param name="limit">Initial value of the Limit property.</param>
        /// <param name="limitAmount">Initial value of the LimitAmount property.</param>
        /// <param name="limitInPips">Initial value of the LimitInPips property.</param>
        /// <param name="lots">Initial value of the Lots property.</param>
        /// <param name="open">Initial value of the Open property.</param>
        /// <param name="openInPips">Initial value of the OpenInPips property.</param>
        /// <param name="openOrderID">Initial value of the OpenOrderID property.</param>
        /// <param name="openOrderReqID">Initial value of the OpenOrderReqID property.</param>
        /// <param name="pair">Initial value of the Pair property.</param>
        /// <param name="pipValue">Initial value of the PipValue property.</param>
        /// <param name="pL">Initial value of the PL property.</param>
        /// <param name="pointSize">Initial value of the PointSize property.</param>
        /// <param name="pointSizeFormat">Initial value of the PointSizeFormat property.</param>
        /// <param name="remark">Initial value of the Remark property.</param>
        /// <param name="stop">Initial value of the Stop property.</param>
        /// <param name="stopAmount">Initial value of the StopAmount property.</param>
        /// <param name="stopInPips">Initial value of the StopInPips property.</param>
        /// <param name="time">Initial value of the Time property.</param>
        /// <param name="timeClose">Initial value of the TimeClose property.</param>
        /// <param name="unKnown">Initial value of the UnKnown property.</param>
        /// <param name="accountId">Initial value of the AccountId property.</param>
        /// <param name="commission">Initial value of the Commission property.</param>
        public static ClosedTrade CreateClosedTrade(global::System.Boolean buy, global::System.Double close, global::System.Double closeInPips, global::System.Double grossPL, global::System.String id, global::System.Boolean isBuy, global::System.Boolean isParsed, global::System.Double limit, global::System.Double limitAmount, global::System.Double limitInPips, global::System.Int32 lots, global::System.Double open, global::System.Double openInPips, global::System.String openOrderID, global::System.String openOrderReqID, global::System.String pair, global::System.Int32 pipValue, global::System.Double pL, global::System.Int32 pointSize, global::System.String pointSizeFormat, global::System.String remark, global::System.Double stop, global::System.Double stopAmount, global::System.Double stopInPips, global::System.DateTime time, global::System.DateTime timeClose, global::System.String unKnown, global::System.String accountId, global::System.Double commission)
        {
            ClosedTrade closedTrade = new ClosedTrade();

            closedTrade.Buy             = buy;
            closedTrade.Close           = close;
            closedTrade.CloseInPips     = closeInPips;
            closedTrade.GrossPL         = grossPL;
            closedTrade.Id              = id;
            closedTrade.IsBuy           = isBuy;
            closedTrade.IsParsed        = isParsed;
            closedTrade.Limit           = limit;
            closedTrade.LimitAmount     = limitAmount;
            closedTrade.LimitInPips     = limitInPips;
            closedTrade.Lots            = lots;
            closedTrade.Open            = open;
            closedTrade.OpenInPips      = openInPips;
            closedTrade.OpenOrderID     = openOrderID;
            closedTrade.OpenOrderReqID  = openOrderReqID;
            closedTrade.Pair            = pair;
            closedTrade.PipValue        = pipValue;
            closedTrade.PL              = pL;
            closedTrade.PointSize       = pointSize;
            closedTrade.PointSizeFormat = pointSizeFormat;
            closedTrade.Remark          = remark;
            closedTrade.Stop            = stop;
            closedTrade.StopAmount      = stopAmount;
            closedTrade.StopInPips      = stopInPips;
            closedTrade.Time            = time;
            closedTrade.TimeClose       = timeClose;
            closedTrade.UnKnown         = unKnown;
            closedTrade.AccountId       = accountId;
            closedTrade.Commission      = commission;
            return(closedTrade);
        }
Example #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ClosedTrades EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToClosedTrades(ClosedTrade closedTrade)
 {
     base.AddObject("ClosedTrades", closedTrade);
 }