Commit Graph

11 Commits

Author SHA1 Message Date
Michael Handschuh 2fa9b0b6f7 Make regression algorithms self-contained
Some algorithms had dependencies outside of the file that needed
to be copied into each project. The alternative here is to move
the Bitcoin and QuandlFuture type into Common\Data or similar
2018-07-06 02:05:03 -04:00
Stefano Raggi be47d60fa7 Fix CustomDataRegressionAlgorithm failing test 2018-06-14 11:44:28 +02:00
Michael Handschuh 5700f9be51 Fix custom live Bitcoin example
Since the Bitcoin type derives directly from BaseData and BaseData
uses the same storage space for both the Time and EndTime properties,
the 'coin.Time =' line was constantly rewinding the EndTime far enough
into the past such that the FastForwardEnumerator would attempt to
skip and fast forward to more current data. This caused a never ending
loop of rewinding the time in Bitcoin and fast forwarding the time
from the live trading enumerator stack.
2017-10-03 17:48:25 -04:00
Jared Broad fb7d1994ff Tidy and add tags 2017-09-20 17:14:44 -04:00
AlexCatarino ea83e68674 Use UTC for Bitcoin custom data
Since Bitcoin custom data is UTC, it is set with AddData and we can use DateTime.UtcNow for EndTime.
2017-09-07 20:56:44 +01:00
AlexCatarino 4eb02f6a0c Fixes example of live custom data
In this example, the custom data Time was set to Datetime.Now and it was not passing the FrontierAwareEnumerator. Now, EndTime is set to the current time of the default exchange.
2017-09-07 18:22:31 +01:00
AlexCatarino b145521c72 Changes quantity calculation in algorithm examples
In some examples, we have been using Portfolio.Cash to calculate the quantity of shares in orders. This is a bad advice for users, since Portfolio.Cash does not account loses in other positions and its use can lead to invalid orders due to insufficient capital. Instead, users should use Portfolio.MarginRemaining.

FuzzyInferenceAlgorithm and LiveFeaturesAlgorithm had minor changes to perform backtests with available data
2017-04-28 18:08:53 +01:00
snugs e447b4453b Update Bitcoin url to more current quandl file 2015-12-07 11:58:31 -05:00
snugs 0d48732546 Misc fixes
Send isLiveMode directly into data readers instead of resolving from data feed endpoint
Added some expression extensions, AsEnumerable()  :)
Fixed Identity names, added optional name parameter for deconflicting
2015-07-09 22:44:12 -04:00
snugs 76e4ed6836 Use CultureInfo.InvariantCulture in parse routines 2015-07-09 18:50:02 -04:00
QuantConnect 55a6215da6 Split QCAlgorithm and Algorith,CSharp into separate projects, added FSharp project for algorithms 2015-06-17 17:44:02 -04:00