Commit Graph

98 Commits

Author SHA1 Message Date
Martin Molinero cfa08a11fb Address reviews
- Removing `using QCAlgorithmFramework = QuantConnect.Algorithm.QCAlgorithm`
- Removing `QCAlgorithmFrameworkBridge`
- Removing `IsFrameworkAlgorithm`
- Making `EmitInsightBasedOnFill` private. Adding new
`IOrderEventProvider` exposing an `event` to which `QCAlgorithm` will
subscribe.
- `AccountType.Cash` algorithms will be allowed to manually trade and
emight insights manually or with alpha model.
2019-04-03 21:55:44 -03:00
Stefano Raggi 6315970719 Make Packet.Channel virtual 2018-12-12 00:27:22 +01:00
Stefano Raggi 954515e204 Remove AlphaHeartbeat class 2018-12-12 00:11:18 +01:00
Stefano Raggi b3b1188d3a Add new AlphaHeartbeatPacket class 2018-12-10 23:08:13 +01:00
Martin Molinero 17995f4c86 Adding a configuration for maximum data points per chart series. Limit will only apply for backtesting result handler 2018-08-17 18:14:33 -03:00
Michael Handschuh aa92403610 Add regression algorithm packet type 2018-06-05 12:10:50 -04:00
Michael Handschuh 662ae5a65b Limit total insights processed
Nominally set to 10k, similar to order limits
2018-03-22 11:37:34 -04:00
Michael Handschuh 50ae332062 Modify alpha result packet to use spine-case
This casing style is used in the insights API and the serialized form of
this type will also be consumable by the API.
2018-03-09 16:22:49 -05:00
Michael Handschuh 6b239674e2 Renames Alpha -> Insight
The term 'alpha' is used to describe the entire algorithm. Therefore, 'alpha'
produces insights. From this we have things like IAlphaModel, which is the model
defining how insights are produced. We have IAlphaHandler, which defines how the
insights from a single 'alpha' (the algorithm) are managed, analyzed, and stored.
Types closer to the individual prediction level, such as InsightDirection, or
InsightScore relate directly to exactly 1 insight. The distinction between the
two became more clear as we developed the insights API, and from that effort it
was decided to harmonize alpha/insight terminology across the various QC systems.
2018-03-09 16:12:56 -05:00
Michael Handschuh 0ab0c2cf76 Convert AlphaID to string 2018-03-05 15:33:10 -05:00
Michael Handschuh 989a2ed37c Handle AlphaNode in AlgorithmNodePacket.AlgorithmId 2018-01-05 11:59:50 -05:00
Michael Handschuh 2bcd355fd9 Add AlphaID to alpha node and result packets 2018-01-05 11:13:44 -05:00
Michael Handschuh 9174fd250d Add AlphaResultPacket.UserId
Very useful to have user information with the generated alphas
2018-01-04 19:21:38 -05:00
Michael Handschuh de66aa7aa7 Add AlphaNodePacket and PacketType.AlphaNode/AlphaWork
Defines a job to run an alpha stream
2018-01-04 19:21:38 -05:00
Michael Handschuh 363003815b Rename AlphaPacket -> AlphaResultPacket
Making room for the AlphaWorkPacket
2018-01-04 12:43:41 -05:00
Jared 8df7daa262 Merge pull request #1449 from QuantConnect/fix-cash-flashing
Default cashbook to null
2018-01-03 09:40:02 -05:00
Michael Handschuh 48209b37a2 Add LiveNodePacket.DisableAcknowledgement
Allows a live job to declare that the job shouldn't be acknowledged
2018-01-02 14:18:31 -05:00
Jared Broad 7f00b81540 Default cashbook to null 2017-12-28 20:30:59 -05:00
Michael Handschuh 2295e524f4 Add IAlphaRuntimeStatisticsGenerator and send to result handler
Provides estimates of alpha value as well as performs online computations of
alpha scores and other KPIs.

Sends alpha stats to result handler
Update live result with framework flag
2017-12-20 08:33:30 -05:00
Michael Handschuh aeab15b57e Fixes typo in BacktestResult.IsFrameworkAlgorithm field name 2017-12-18 16:04:06 -05:00
Michael Handschuh b4b3aae112 Rename Signal -> Alpha
Whoa... I think I got everything :)
2017-12-15 18:24:58 -05:00
Michael Handschuh d8ef289c9b Add IAlgorithm.IsFrameworkAlgorithm and BacktestingResut.IsFrameworkAlgorithm
Flag indicates whether or not the algorithm is a framework algorithm.
2017-12-14 19:43:26 -05:00
Michael Handschuh 6532d4b253 Remove SignalAnalysisResults
We're not putting signal scores directly on the signal object so this result
type is no longer needed.
2017-12-12 15:26:20 -05:00
Michael Handschuh 36311be93f Remove ISignal, add Signal.GeneratedTimeUtc
This abstraction point is completely unwarranted. The signal object is really
just a DTO and it's extensible as it is currently defined. This also allows us
to enforce certain behaviors, such as internal set of GeneratedTimeUtc.

Removes GeneratedTimeUtc from the result object as it's now directly on the signal.
2017-12-12 11:57:03 -05:00
Michael Handschuh 5910bc620f Add ISignalHandler
Handles signals generated by the algorithm. The default implementation
sends a SignalPacket to the messaging handler.
2017-12-12 08:56:19 -05:00
Michael Handschuh b04dba7e89 Add Packet.Signal 2017-12-08 10:07:54 -05:00
Michael Handschuh 24cebd2aa1 Move signal/target data structures to common
Since these are really just data structures they belon in the common library. Also,
it stands to reason that we'll want to reuse them in other components, such as the
result handler.
2017-12-08 10:07:54 -05:00
Michael a72f30925c Merge pull request #1328 from QuantConnect/cashbook-result
Cashbook result
2017-11-17 16:11:12 -05:00
Andrew dcd6f478a0 Include the TickType in the HistoryPacket
Currently the HistoryRequest includes information regarding the tick type, but that information is not passed to the HistoryPacket. Therefore, only the common data types for a history request are returned for history requests. This is problematic for crypto history requests that specify Trade History.
2017-11-13 15:25:10 -05:00
Jared Broad aefdfcc411 Add the cashbook to the result packet 2017-10-23 17:00:28 -04:00
Michael Handschuh d92f161f8c Update max run time to check for universes
The max run time calculation wasn't considering whether or not the user had
any universe subscriptions
2017-10-20 09:27:13 -04:00
Michael Handschuh 7c0a0c4698 Set algorithm name in setup handler
When using the console setup handler, the algorithm's type name
will be used as an identifier.
2017-10-06 16:23:38 -04:00
Michael Handschuh ecd92462da Clean white space 2017-10-06 16:23:37 -04:00
Andrew bb984f5ebd LiveTradingResultsHandler.StoreResult uses base class implementation 2017-08-08 12:52:12 -04:00
Andrew 3a7be01d78 Remove ICommand, ICommandQueueHandler and CommandResultPacket 2017-07-14 15:39:49 -04:00
Andrew f7bd4f59b7 Remove commands from Lean 2017-07-14 12:40:53 -04:00
Stefano Raggi 326958ea20 Remove SecurityType and Market from Packet.HistoryRequest 2017-04-30 01:55:50 +02:00
Andrew 05ec92349e Added SystemDebugPacket 2017-02-24 17:51:57 -05:00
Andrew 11655b402a Add UserToken to the AlgorithmNodePacket 2017-02-22 15:05:26 -05:00
Andrew a143b62ff4 Add userId to the runtime error packet 2017-01-31 16:41:45 -05:00
Andrew Hart 85df8d9344 Provide defaults for log limits in AlgorithmNodePacket.Controls class
Updated daily log limits to 3MB
2017-01-05 17:35:03 -05:00
Andrew Hart a0f7ffece4 Added logging limits to the AlgorithmNodePacket
The log limit will now be retrieved from the AlgorithmNodePacket when either a backtest or live algorithm uploads user logs at the end of the algorithm
2017-01-05 12:59:58 -05:00
Andrew Hart 41253556f8 Added Documentation packet enum
Added DocumentationResults packet enum.  These two packets make up the
request/response between the QC UI and Documentation server
2016-12-23 17:48:46 -05:00
jaredbroad 9de8d3a68b Merge branch 'seed-security-from-history' of https://github.com/andrewhart098/Lean into seeding 2016-12-02 00:00:03 -05:00
quant1729 f859c548f0 Fixed typos, bugs 2016-11-21 16:58:22 +01:00
quant1729 9dd5b8f4ef Updated engine: it gets history provider, data queue handler from the job now. JobQueue loads data from config. 2016-11-21 16:58:12 +01:00
jaredbroad 199746dd6a Set controls on live node packets and override system ram to allocated 2016-11-21 04:43:09 -05:00
jaredbroad 41dab29bc1 Shuffle ram allocation to controls; update job queues and engine usage 2016-11-21 04:43:09 -05:00
AlexCatarino d827e8488e Send Runtime Statistics Along with Final Result Packet.
Keep rolling/saved version of the runtime statistics.
Adds runtimeStatistics parameter to pass runtime statistics to Backtest result packet.
Runtime Statistics calculated at Engine.cs prior to SendFinalResult call to be sent along.
2016-06-20 08:27:52 -03:00
Rob 84bd143737 Fixing missing TotalPerformance which contains ClosedTrades 2016-05-03 17:20:44 -04:00