Commit Graph

861 Commits

Author SHA1 Message Date
Stefano Raggi 932b757a1b Remove Cfd.GetQuoteCurrency(Symbol) 2016-01-24 16:29:52 +01:00
Stefano Raggi 6a381a990e Adds SymbolPropertiesDatabase argument to SecurityManager.CreateSecurity 2016-01-23 00:03:50 +01:00
Stefano Raggi f5d2eb0b8a Adds symbol properties database loading in QCAlgorithm 2016-01-22 23:49:41 +01:00
Stefano Raggi 1374a7985f Adds CFD support to QCAlgorithm.PreOrderChecksImpl 2016-01-20 22:12:42 +01:00
Michael Handschuh 4783a1ace9 Calls to SetBrokerageModel create new SecurityInitializer
... unless SetSecurityInitializer has been called (explcitily set by user),
in which case we'll respect what the user passed in.
2016-01-19 15:33:29 -05:00
Michael Handschuh 473a3a6dc5 Extact IBrokerageModel factory method from enum 2016-01-19 15:24:28 -05:00
Michael Handschuh d4131317cc Adds SetSecurityInitializer helpers in QCAlgorithm 2016-01-19 15:18:08 -05:00
Michael Handschuh fc0bc11909 Move IAlgorithm.AccountType->IBrokerageModel.AccountType 2016-01-19 15:12:15 -05:00
Michael Handschuh 7fb2073fab Invoke ISecurityInitializer in Security.CreateSecurity
This removes the SetupHandler.UpdateModels(...) method which used the brokerage
model to set fill/fee/slippage/settlement models. This will also allow the
removal of flags indicating that the user has set certain Security properties
2016-01-19 13:13:00 -05:00
Michael Handschuh 55586ef819 Adds SecurityInitializer to IAlgorithm 2016-01-19 12:42:36 -05:00
Michael Handschuh 5200791de0 Remove some usages of Security.TransactionModel
We should prefer the FillModel/FeeModel/SlippageModel properties instead
2016-01-18 19:22:07 -05:00
Stefano Raggi 56e6bdee04 Reverted market order fill behavior 2016-01-07 22:03:23 +01:00
Stefano Raggi fb45abd718 Delayed order fills one time step 2016-01-07 21:24:55 +01:00
snugs 5e691bb907 Use Transactions.GetOpenOrders(Symbol) in Liquidate 2015-12-30 12:44:09 -05:00
Stefano Raggi e21e6f55f0 Added Status.IsOpen check 2015-12-30 12:43:11 -05:00
Stefano Raggi f4c4c2f9ce Algorithm.Liquidate method now also cancels open orders 2015-12-30 12:43:10 -05:00
snugs 589a84224d Fixes bug market benchmark as internal feed
Updated the AddToUserDefinedUniverse method to handle adding to the Securities
collection to prevent this from happening again.
2015-12-28 11:05:26 -05:00
snugs fc7d507faa Fixes benchmark symbol when not manually added 2015-12-21 16:41:32 -05:00
snugs f33cffe77f Moves asset count limit logic out of Algorithm namespace
Since we now support universe selection and by convention never remove a security
object, we can't rely on the counts of the security manager to perform limits on
data subscriptions, this logic was moved deeper into the engine, where we perform
UniverseSelection, which is the path taken to add new data subscriptions
2015-12-21 16:13:23 -05:00
snugs ad2a12c339 Adds RegisterIndicator TimeSpan overload 2015-12-21 13:34:15 -05:00
snugs e22fc9e46b Change QCAlgorithm.ResolveConsolidator to public 2015-12-21 13:34:14 -05:00
snugs aa6c3726aa Fixes comment on QCAlgorithm.UniverseManager 2015-12-17 18:28:41 -05:00
snugs 2b0fd189ed Renames IAlgorithm.Universes->UniverseManager 2015-12-17 17:32:13 -05:00
snugs 380149fe9a Change benchmark resolution if universes are present 2015-12-17 17:22:51 -05:00
snugs a77950ce56 Adds UniverseDefinitions, DollarVolumeUniverseDefinitions 2015-12-17 17:17:56 -05:00
snugs ba710ae7b1 Change default min time in universe to 1 day 2015-12-17 14:56:24 -05:00
snugs 0f599f5697 Reverts preventing set cash in live mode
We were leaning on BrokerageData having project equity in there, but
this breaks home consumers who would expect the SetCash function to
just work
2015-12-15 14:39:38 -05:00
snugs 0fbab8a550 Check SymbolCache when adding securities, enables delisted 2015-12-15 08:58:15 -05:00
snugs ada41f7e8f Adds MinimumTimeInUniverse to UniverseSettings 2015-12-14 19:13:24 -05:00
snugs a29ebf0595 Rename SubscriptionSettings to UniverseSettings 2015-12-14 16:58:18 -05:00
snugs 957fba1ea5 Disable SetCash in live mode
If required, use Portfolio.SetCash, this is what the setup handler now uses
2015-12-11 16:41:30 -05:00
snugs 53a64ea3ba Use default market map in AddSecurity 2015-12-10 15:19:23 -05:00
snugs 8dad5f4c0a Adds IAlgorithm.SetDefaultMarkets 2015-12-10 15:19:21 -05:00
snugs bc6ffbce0c Set algorithm parameters from job packet 2015-12-10 13:45:40 -05:00
snugs b167b7725d Adds GetParameter and SetParameters to IAlgorithm 2015-12-10 13:45:39 -05:00
QuantConnect 2d9f8cb9e3 Updated charting lib to use series indexes instead of chart types. Obsolete ChartType enum 2015-12-10 13:03:50 -05:00
snugs f3834df1a0 Return Security instance from IAlgorithm.AddSecurity 2015-12-09 13:32:37 -05:00
snugs ae16cc8443 Adds more AddUniverse overloads for IEnumerable<string> results 2015-12-09 13:32:36 -05:00
snugs 565c3bc6f7 Adds AddRemoveSecurityRegressionAlgorithm 2015-12-09 13:32:34 -05:00
snugs f1aafd33ec Change UserDefinedUniverse interval to one day
This causes more equity points to be taken which is the reason for the change in the regression values.
2015-12-09 13:32:33 -05:00
snugs fa12434f98 Remove locked check from AddSecurity
This now allows algorithms to add securities during a running algorithm
2015-12-09 13:32:31 -05:00
snugs 3a322e0877 Change IAlgorithm.Universes to use UniverseManager type 2015-12-09 13:32:29 -05:00
snugs 7e37804c7e Use Symbol.Create instead of SID.Generate* methods 2015-12-07 12:31:46 -05:00
snugs dd4125fb42 Adds UsersDefinedUniverseAlgorithm example 2015-12-07 12:02:10 -05:00
snugs 5cee3261f4 Use string symbol in AddUniverse functions 2015-12-07 12:02:08 -05:00
snugs 796b9666db Adds QCAlgorithm.Universe for universe functions 2015-12-07 12:02:07 -05:00
snugs 242f479fb3 Remove SetUniverse, now only AddUniverse 2015-12-07 12:02:07 -05:00
snugs 2b3c3973c9 Fixes custom data history bug introduced via e4f9902 2015-12-02 15:37:33 -05:00
snugs be950e756a Log full errors/stack traces
Many places in the code used Log.Error(err.Message) or equivalent which
strips out all the really useful information, such as the stack trace
and inner exceptions. Using Log.Error(exception) is the correct way to
log an error as it will correctly write all the message details, also,
by passing the full Exception object we can improve the logging in this
one place and all call sites will automatically benefit from the improvements
2015-12-02 12:35:33 -05:00
snugs c6d0fc673b Force custom securities through CreateSecurity
AddData<T> was never properly converted to go through the SecurityManager.CreateSecurity
method which led to custom symbols not being loaded into the symbol cache.
2015-12-02 10:58:26 -05:00