Commit Graph

19 Commits

Author SHA1 Message Date
Martin Molinero 52d80e74f0 Indicator extensions support all indicator types 2018-08-14 18:14:46 -03:00
AlexCatarino 2ff636869c Fixes summary of members in python wrapper classes
Summary of members in python wrapper classes where pointing to other methods for reference when they should have a meaningful description to be used in documentation
2017-11-16 14:00:22 +00:00
AlexCatarino 9ff2190fe0 Implements indicator operators for python algorithms
Implements indicator operators for python algorithms by wrapping the methods from IndicatorExtensions that python cannot use.
2017-10-24 16:52:53 +01:00
Michael Handschuh 591f6b2127 Use IBaseData in type constraints
Refactors existing consolidators, indicators, and helper methods to depend on
IBaseData instead of BaseData. These updates also defines an IBaseDataBar to
act as an abstraction point between TradeBar and QuoteBar.
2016-11-09 09:20:16 -05:00
Jared c240c6b5ea Merge pull request #379 from mellertson/issue-372/short-cut-composite-indicators
Issue 372/short cut composite indicators
2016-04-26 15:05:02 -04:00
Mike Ellertson 1de4fb839d Complete sma, ema, min, and max extension methods
Add the following methods corresponding unit tests to QuantConnect.IndicatorExtensions:
*EMA()
*MAX()
*MIN()
*SMA()

Add method to calculate default smoothing value for an EMA indicator
2016-04-25 23:52:20 -07:00
Mike Ellertson c47eb47430 Complete extension method and unit test
Completed the extension method and unit test described in issue #372.  Updated unit test MultiChain().  Unit tests all pass.
2016-04-23 22:30:56 -07:00
Mike Ellertson ca43d3cd92 Remove underscore from variable.
Remove underscore from variable in IndicatorExtensions.SimpleMovingAverage().
2016-04-22 23:13:44 -07:00
Mike Ellertson f14e627a3c Add XML comments to extension method
Add XML comments to extension method IndicatorExtensions.SimpleMovingAverage().
2016-04-22 23:11:37 -07:00
AlexCatarino 34b664460d Adds VWAP indicator via WeightedBy indicator extension
Adds WindowIdentity indicator and its test. We need this at WeightedBy to keep values and weights at sync (same sample number).
Adds WeightedBy indicator extension and a simple test in IndicatorExtensionsTests
Adds VolumeWeightedAveragePriceIndicator (VWAP indicator), its test and external data file for testing.
2016-04-21 19:34:52 -03:00
Mike Ellertson ccf1d4a664 Update draft of extension method
Updated draft of the extension method so it returns the correct result.
2016-04-16 14:59:38 -07:00
Mike Ellertson 5ec173d4c3 Add first draft of extension method
Add first draft of extension method to class IndicatorExtensions.
Will complete the method in a future commit.
2016-04-16 14:24:18 -07:00
Michael Handschuh c04a3be379 Modify IndicatorExtensions.Over to handle div zero 2016-04-07 06:14:19 -04:00
snugs 844a040be5 Initial impl of coarse universe selection
Adds concept of Subscription to contain everything a data feed needs in order to process  single data feed item
Moves preparation of all data to data feed thread, algo thread receives data in format it needs
QCAlgorithm.SetUniverse( func ) allows selection based on market/symbol/dollar volume/price
Remove laziness from Slice as optimization, no order by in real time handler
2015-08-06 17:52:23 -04:00
snugs 6f4b12f874 Adds indicator math extensions for constant values
decimal two = 2m;
indicator.Plus(two);
indicator.Minus(two);
indicator.Over(two);
indicator.Times(two);
2015-06-27 15:51:10 -04:00
snugs c1b62d85ee Improve some indicator stuff
Make ROCP computation a little easier to follow
Return the raw type of 'second' in .Of extension
2015-04-27 13:49:14 -04:00
snugs cf3a399799 Updates CompositeIndicator to use push system
Removed IDataConsolidator from IndicatorBase
Renamed IndicatorBase.DataConsolidated -> Updated
ConstantIndicator is now sealed
IndicatorBase.Current is now protected set to allow ConstantIndicator to set it upon construction
CompositeIndicator wires up events on left/right to auto update himself following Updated events from both left/right (unless one is constant, this will not work with two constant indicators as left/right)
2015-03-01 13:26:26 -05:00
snugs 374c8c17af Removes SequentialIndicator and uses events for auto push
IndicatorBase now implements IDataConsolidated and fires the DataConsolidated event after each update.
The Of extension method now attaches a handler to the 'first' to update the 'second' and returns the reference to the 'second' for method chaining. See OfExtensionMethodTests.cs
2015-02-28 23:41:02 -05:00
Jared Broad b3de520915 Initial commit 2015-01-12 12:03:33 -03:00