Class Execution
- Namespace
- Balsam
- Assembly
- Balsam.Backtester.dll
Encapsulates information about a trade execution.
public class Execution : ICloneable
- Inheritance
-
Execution
- Implements
- Inherited Members
- Extension Methods
Constructors
Execution(DateTime, OrderSide, double, double, double)
Instantiates a new execution object using the specified parameters.
public Execution(DateTime tradeDate, OrderSide side, double quantity, double price, double priceAdjustment = 0)
Parameters
Properties
Commission
Gets/sets the commission paid per contract/share in local currency.
public double Commission { get; set; }
Property Value
Price
Gets/sets the execution price.
public double Price { get; set; }
Property Value
Quantity
Gets the quantity.
public double Quantity { get; }
Property Value
Side
Gets the order side.
public OrderSide Side { get; }
Property Value
Slippage
Gets/sets slippage per contract/share in decimal terms.
public double Slippage { get; set; }
Property Value
TradeDate
Gets the trade date.
public DateTime TradeDate { get; }
Property Value
UnadjustedPrice
Gets the price that existed at the time of trade execution, without the effects of back-adjusting or stock splits.
public double UnadjustedPrice { get; }
Property Value
Methods
Clone()
Returns a copy of this execution object.
public Execution Clone()
Returns
Equals(Execution)
Returns true if the specified execution is identical to the current one.
public bool Equals(Execution execution)
Parameters
execution
Execution
Returns
Equals(object)
Returns true if the specified object is equal to the current execution.
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
Returns a has code for this execution object.
public override int GetHashCode()
Returns
ToString()
Returns a string representation for this execution.
public override string ToString()