|
Lean
$LEAN_TAG$
|
Interface to setup the algorithm. Pass in a raw algorithm, return one with portfolio, cash, etc already preset. More...
Public Member Functions | |
| IAlgorithm | CreateAlgorithmInstance (AlgorithmNodePacket algorithmNodePacket, string assemblyPath) |
| Create a new instance of an algorithm from a physical dll path. More... | |
| IBrokerage | CreateBrokerage (AlgorithmNodePacket algorithmNodePacket, IAlgorithm uninitializedAlgorithm, out IBrokerageFactory factory) |
| Creates the brokerage as specified by the job packet More... | |
| bool | Setup (SetupHandlerParameters parameters) |
| Primary entry point to setup a new algorithm More... | |
Properties | |
| WorkerThread | WorkerThread [set] |
| The worker thread instance the setup handler should use More... | |
| List< Exception > | Errors [get, set] |
| Any errors from the initialization stored here: More... | |
| TimeSpan | MaximumRuntime [get] |
| Get the maximum runtime for this algorithm job. More... | |
| decimal | StartingPortfolioValue [get] |
| Algorithm starting capital for statistics calculations More... | |
| DateTime | StartingDate [get] |
| Start date for analysis loops to search for data. More... | |
| int | MaxOrders [get] |
| Maximum number of orders for the algorithm run – applicable for backtests only. More... | |
Interface to setup the algorithm. Pass in a raw algorithm, return one with portfolio, cash, etc already preset.
Definition at line 30 of file ISetupHandler.cs.
| IAlgorithm QuantConnect.Lean.Engine.Setup.ISetupHandler.CreateAlgorithmInstance | ( | AlgorithmNodePacket | algorithmNodePacket, |
| string | assemblyPath | ||
| ) |
Create a new instance of an algorithm from a physical dll path.
| assemblyPath | The path to the assembly's location |
| algorithmNodePacket | Details of the task required |
Implemented in QuantConnect.Lean.Engine.Setup.BrokerageSetupHandler, and QuantConnect.Lean.Engine.Setup.BacktestingSetupHandler.
| IBrokerage QuantConnect.Lean.Engine.Setup.ISetupHandler.CreateBrokerage | ( | AlgorithmNodePacket | algorithmNodePacket, |
| IAlgorithm | uninitializedAlgorithm, | ||
| out IBrokerageFactory | factory | ||
| ) |
Creates the brokerage as specified by the job packet
| algorithmNodePacket | Job packet |
| uninitializedAlgorithm | The algorithm instance before Initialize has been called |
| factory | The brokerage factory |
Implemented in QuantConnect.Lean.Engine.Setup.BacktestingSetupHandler, and QuantConnect.Lean.Engine.Setup.BrokerageSetupHandler.
| bool QuantConnect.Lean.Engine.Setup.ISetupHandler.Setup | ( | SetupHandlerParameters | parameters | ) |
Primary entry point to setup a new algorithm
| parameters | The parameters object to use |
Implemented in QuantConnect.Lean.Engine.Setup.BrokerageSetupHandler, and QuantConnect.Lean.Engine.Setup.BacktestingSetupHandler.
|
set |
The worker thread instance the setup handler should use
Definition at line 36 of file ISetupHandler.cs.
|
getset |
Any errors from the initialization stored here:
Definition at line 44 of file ISetupHandler.cs.
|
get |
Get the maximum runtime for this algorithm job.
Definition at line 53 of file ISetupHandler.cs.
|
get |
Algorithm starting capital for statistics calculations
Definition at line 61 of file ISetupHandler.cs.
|
get |
Start date for analysis loops to search for data.
Definition at line 69 of file ISetupHandler.cs.
|
get |
Maximum number of orders for the algorithm run – applicable for backtests only.
Definition at line 77 of file ISetupHandler.cs.