Lean
$LEAN_TAG$
|
Generates trades from executions and market price updates More...
Public Member Functions | |
void | SetSecurityManager (SecurityManager securities) |
Sets the security manager instance More... | |
void | SetLiveMode (bool live) |
Sets the live mode flag More... | |
bool | HasOpenPosition (Symbol symbol) |
Returns true if there is an open position for the symbol More... | |
void | SetMarketPrice (Symbol symbol, decimal price) |
Sets the current market price for the symbol More... | |
void | ApplySplit (Split split, bool liveMode, DataNormalizationMode dataNormalizationMode) |
Applies a split to the trade builder More... | |
void | ProcessFill (OrderEvent fill, decimal securityConversionRate, decimal feeInAccountCurrency, decimal multiplier=1.0m) |
Processes a new fill, eventually creating new trades More... | |
Properties | |
List< Trade > | ClosedTrades [get] |
The list of closed trades More... | |
Generates trades from executions and market price updates
Definition at line 27 of file ITradeBuilder.cs.
void QuantConnect.Interfaces.ITradeBuilder.SetSecurityManager | ( | SecurityManager | securities | ) |
Sets the security manager instance
securities | The security manager |
Implemented in QuantConnect.Statistics.TradeBuilder.
void QuantConnect.Interfaces.ITradeBuilder.SetLiveMode | ( | bool | live | ) |
Sets the live mode flag
live | The live mode flag |
Implemented in QuantConnect.Statistics.TradeBuilder.
bool QuantConnect.Interfaces.ITradeBuilder.HasOpenPosition | ( | Symbol | symbol | ) |
Returns true if there is an open position for the symbol
symbol | The symbol |
Implemented in QuantConnect.Statistics.TradeBuilder.
void QuantConnect.Interfaces.ITradeBuilder.SetMarketPrice | ( | Symbol | symbol, |
decimal | price | ||
) |
Sets the current market price for the symbol
symbol | |
price |
Implemented in QuantConnect.Statistics.TradeBuilder.
void QuantConnect.Interfaces.ITradeBuilder.ApplySplit | ( | Split | split, |
bool | liveMode, | ||
DataNormalizationMode | dataNormalizationMode | ||
) |
Applies a split to the trade builder
split | The split to be applied |
liveMode | True if live mode, false for backtest |
dataNormalizationMode | The DataNormalizationMode for this security |
Implemented in QuantConnect.Statistics.TradeBuilder.
void QuantConnect.Interfaces.ITradeBuilder.ProcessFill | ( | OrderEvent | fill, |
decimal | securityConversionRate, | ||
decimal | feeInAccountCurrency, | ||
decimal | multiplier = 1.0m |
||
) |
Processes a new fill, eventually creating new trades
fill | The new fill order event |
securityConversionRate | The current security market conversion rate into the account currency |
feeInAccountCurrency | The current order fee in the account currency |
multiplier | The contract multiplier |
Implemented in QuantConnect.Statistics.TradeBuilder.
|
get |
The list of closed trades
Definition at line 44 of file ITradeBuilder.cs.