Commit Graph

128 Commits

Author SHA1 Message Date
snugs 704bfc2298 Adds new order ticket system
QCAlgorithm order functions now return an OrderTicket

OrderTicket can be used to directly update or cancel an order

Placing an order now submits an OrderRequest which is processed by the ITransactionHandler
2015-07-08 23:40:28 -04:00
snugs 9c1b0f4616 Move order/order queue storage to transaction handler
Expose order and order processing ability via IOrderProvider/IOrderProcessor
2015-07-02 15:07:35 -04:00
snugs 281ada4eef Adds preorder checks for currency feeds for forex 2015-06-08 21:29:26 -04:00
snugs 887faa24e7 Adds support for hourly/daily data to LEAN engine 2015-06-02 21:44:44 -04:00
snugs 099cee9b3f Implements MarketOnOpen and MarketOnClose order types 2015-05-26 19:20:05 -04:00
snugs 89b6e98af8 Fixes warnings mostly relating to xml comments
Also cleans up some block comments

Via PR#72 - thanks @ammachado!
2015-05-13 10:56:47 -04:00
bizcad e4f5219a7f Update origin master from upstream 2015-05-09 20:38:02 -07:00
bizcad bed1941b77 issue-79/Assure-Sell-quantity-is-negative 2015-05-09 19:18:30 -07:00
snugs 449150f71e Fixes SetHoldings when crossing zero line
Improves margin remaining computation as well
2015-05-05 21:07:03 -04:00
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