Lean
$LEAN_TAG$
|
Creates a benchmark defined by the closing price of a Security instance More...
Public Member Functions | |
SecurityBenchmark (Security security) | |
Initializes a new instance of the SecurityBenchmark class More... | |
decimal | Evaluate (DateTime time) |
Evaluates this benchmark at the specified time in units of the account's currency. More... | |
Static Public Member Functions | |
static SecurityBenchmark | CreateInstance (SecurityManager securities, Symbol symbol) |
Helper function that will create a security with the given SecurityManager for a specific symbol and then create a SecurityBenchmark for it More... | |
Properties | |
Security | Security [get] |
The benchmark security More... | |
Creates a benchmark defined by the closing price of a Security instance
Definition at line 26 of file SecurityBenchmark.cs.
QuantConnect.Benchmarks.SecurityBenchmark.SecurityBenchmark | ( | Security | security | ) |
Initializes a new instance of the SecurityBenchmark class
Definition at line 36 of file SecurityBenchmark.cs.
decimal QuantConnect.Benchmarks.SecurityBenchmark.Evaluate | ( | DateTime | time | ) |
Evaluates this benchmark at the specified time in units of the account's currency.
time | The time to evaluate the benchmark at |
Implements QuantConnect.Benchmarks.IBenchmark.
Definition at line 47 of file SecurityBenchmark.cs.
|
static |
Helper function that will create a security with the given SecurityManager for a specific symbol and then create a SecurityBenchmark for it
securities | SecurityService to create the security |
symbol | The symbol to create a security benchmark with |
Definition at line 59 of file SecurityBenchmark.cs.
|
get |
The benchmark security
Definition at line 31 of file SecurityBenchmark.cs.