Commit Graph

21 Commits

Author SHA1 Message Date
snugs 72aba5e5fa Adds dividend data type
Also renamed config.Security to something more sane
2015-04-23 10:31:18 -04:00
snugs 1f15eb2c04 Initial implementation of Margin and Portfolio models
Changed system to use Margin Models, removing leverage wherever possible allowing for dynamic margin models.
Created first portfolio fill model for FOREX which treats it as a currency swap through the cashbook instead of a tradable asset.
Updated the Securities/SecurityPortfolioManager to use cashbook value + holdings removing FOREX virtual positions.
Created a new benchmark system for comparing quantconnect builds.
2015-04-13 20:51:43 -04:00
snugs 9924b0a872 Shares SubscriptionDataConfig in Security
Updates Securities.Update to take a slice of the 'newData' collection from AlgorithmManager to prevent an n^2 problem
This also has the affect that now all security prices are updated before ANY OnData events are fired (previously imported data could fire before these)
Adds the SubscriptionDataConfig to the Security object and requires it when adding new Securities in SecurityManager
Adds the SubscriptionIndex field to SubscriptionDataConfig, always handled by SubscriptionManager
2015-04-09 10:36:49 -04:00
snugs 4512d5805f Response to some review comments 2015-04-08 18:06:43 -04:00
snugs 3930dff56a Add entries to cash book for each currency on forex 2015-04-08 14:53:29 -04:00
snugs 8f39ff0be9 Adds subscriptions for currency conversions after algo.Initialize()
These subscriptions are needed in order to have accurate conversion rates for computing portfolio value
2015-04-08 14:47:11 -04:00
snugs b9798d7754 Initial impl of CashBook 2015-04-08 14:47:08 -04:00
snugs ad16946615 Bugfix set end date was a day early 2015-04-08 14:14:20 -04:00
QuantConnect ec2671cef8 Merge remote-tracking branch 'origin/master'
Conflicts:
	Engine/Engine.cs
2015-04-06 17:32:24 -04:00
QuantConnect 5af5fec380 Bug fix SetEndDate, SetStartDate to behave like Set dates with numbers 2015-04-06 17:11:36 -04:00
snugs 8a8f40f5ce Moved AlgorithmManager.RunTimeError to IAlgorithm 2015-04-06 15:31:12 -04:00
snugs c4d4a39416 Removed QCAlgorithm.Console override
Replaced with setting System.Console.Out and Error to redirect to QCAlgorithm.Debug/Error
2015-03-31 16:29:36 -04:00
snugs ef04c41f59 Adds DynamicDataConsolidator and uses in ResolveConsolidator
Also renamed example algorithm filenames to match the type name
2015-03-14 15:43:24 -04:00
Adriano Marcondes Machado b2229e8968 Fixed a few compilation warnings 2015-03-09 16:28:17 -03:00
QuantConnect 8c51bfeb24 Restricted date range to avoid 2000 year backtests (common user error 0201 year) 2015-02-25 15:26:06 -03:00
Jared Broad 59be9527a4 Notification manager class intialization and API implementation 2015-02-07 18:02:04 -03:00
Jared Broad 9df45356d5 Added setlimits API to algorithm to limit number of symbols differently for live and backtesting modes 2015-02-04 20:04:58 -03:00
snugs 6a76e63aab Update SetStart/EndDate functions to be full days
Using the SetEndDate function would end up with the last day of data not being processed due to a period start/finish filter in the SubscriptionDataReader.MoveNext() function. Updating the SetEndDate to make the DateTime value to last moment in the day solves the issue. It also ends up fixing a lingering bug in the ConsoleResultHandler where we were computing the wrong number of days to process.
2015-01-30 20:31:22 -03:00
snugs 4078d805fb Allows fill forward custom data-testing
Includes new AddData<T> overload to accept fillforward and leverage parameters
Moved the clone implementation in BaseData to ObjectActivator
Added some test BaseData types that can be used as custom data but just patch through to default data locations
2015-01-30 13:11:33 -03:00
snugs 733cf998c6 Remove is qc data
Removing the isQcData flags allowed better support for consistency between different data types. This has a knock-on effect of allowing custom data to be fillforward and loaded from a file system.
2015-01-25 22:47:38 -03:00
Jared Broad b3de520915 Initial commit 2015-01-12 12:03:33 -03:00