Commit Graph

119 Commits

Author SHA1 Message Date
snugs 9dd02c0271 SetHoldings bail if margin rem less than per share 2015-05-04 22:29:55 -04:00
snugs 37dfff6b88 Break from set holdings loop when qty is 0 2015-05-04 19:43:50 -04:00
snugs 49b398f8ff DataStream sync by end of bar
Adds EndTime to BaseData
Adds Period to TradeBar
Now filling data forward on days missing files/data
Some performance enhancements
Removed sorted dictonary in DataStream/AlgorithmManager

We round down fill forward data in the data stream since if we were to perform this in the data feed we would continually produce data at the same time and it would all go into the algorithm at once.
2015-05-01 19:23:57 -04:00
snugs bec932719c Add symbol to error message for user 2015-04-28 10:09:08 -04:00
snugs 8b4fc176cb Tidy up Algo mgr loop 2015-04-24 13:38:45 -04:00
snugs b869ab7f4b Updates SetHoldings in light of MarginModel changes 2015-04-14 13:11: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
QuantConnect 30ce0a8e01 Made no data message an error not debug 2015-03-19 15:04:29 -05:00
QuantConnect 53f85f4ebd Reworked order limits for maximum per backtest-day for free accounts and unlimited for subscribers 2015-03-12 19:31:00 -05:00
QuantConnect 9bd4c3017c Rework SetHoldings calculation to factor in fees 2015-03-10 16:48:54 -05:00
QuantConnect 6f3d2ddc52 Updated SetHoldings to factor in fees when setting holdings fractionally, added a 1% safety margin to avoid market price changes rejecting orders 2015-03-08 22:24:02 -03:00
QuantConnect ec7bc3bef4 Added stop limit order type helper method to QC Trading 2015-02-27 18:09:32 -03:00
QuantConnect 118f037e43 Set market price for market orders in QCAlgorithm Trading 2015-02-27 14:08:59 -03:00
QuantConnect 5a0760cc5e Added in obsolete helper methods to ensure algorithms don't break with new order changes 2015-02-23 15:36:33 -03:00
QuantConnect 30c0efca19 Added helper methods for market, stopmarket and limit order types. Updated comments, separated preOrderChecks into dedicated method 2015-02-23 15:01:34 -03:00
Jared Broad 53e73bd2b0 Use stringIsNullOrEmpty method 2015-02-04 19:56:51 -03:00
Jared Broad a2f22bc25e Added Security.HasData property 2015-01-29 19:43:36 -03:00
snugs 44706e8d57 Adds SecurityType to Order 2015-01-23 11:46:46 -03:00
Jared Broad b3de520915 Initial commit 2015-01-12 12:03:33 -03:00