Interface IStrategy
- Namespace
- Balsam
- Assembly
- Balsam.Common.dll
Defines the contract a strategy must implement.
public interface IStrategy
- Extension Methods
Properties
ClosedPositions
Gets an enumerable of closed positions.
IEnumerable<IPosition> ClosedPositions { get; }
Property Value
EndDate
Gets/sets the end date.
DateTime EndDate { get; set; }
Property Value
Name
Gets the strategy name.
string Name { get; }
Property Value
OpenPositions
Gets an enumerable of open positions.
IEnumerable<IPosition> OpenPositions { get; }
Property Value
PendingOrders
Gets an enumerable of pending orders.
IEnumerable<IOrder> PendingOrders { get; }
Property Value
StartDate
Gets/sets the start date.
DateTime StartDate { get; set; }
Property Value
TargetPositions
Gets an enumerable of target positions.
IEnumerable<IPosition> TargetPositions { get; }
Property Value
Methods
Clear()
Clears the strategy.
void Clear()
RunSimulation()
Runs the strategy.
void RunSimulation()
Events
Message
Raises a message event.
event EventHandler<MessageEventArgs> Message