Commit Graph

162 Commits

Author SHA1 Message Date
jjd d8b2a1a63b Test passed 2017-09-01 14:40:26 -03:00
jjd 21a7685e64 helper method added. 2017-08-29 15:48:08 -03:00
AnshulYADAV, Computer Artist (CoArsey) 350e58567f Fixes 18 warnings with code CS1572 (#908)
* Fixes 5 warnings with code CD1572

* Adds the Xml Comment parameter and implements the missing selector parameter

* Fixes rest of the 13 warnings with code CS1572
2017-05-12 09:28:46 -04:00
Juan José D'Ambrosio b9c5557ea6 ALMA sigma parameter default value (#890)
* Update the ALMA using the correct default value for sigma

* makes ALMA default sigma = 6

* Incorporate the statistical interpretation of the parameters in the docstring.

* documentation small fixes.
2017-05-08 09:17:10 -04:00
jjd fae8e681e8 Helper method added.
Indicators helper method sorted alphabetically.
2017-05-02 12:14:49 -03:00
jjd 26b1f5de90 Helper method renamed from HULL to HMA.
Hull value added in the MovingAverageType enumeration.
MovingAverageTypeExtensionsTests added.
2017-04-28 08:47:11 -03:00
jjd c37282d522 HullMovingAverage, tests and helper method implemented 2017-04-27 20:52:27 -03:00
AlexCatarino 0f46f34418 Implements FilteredIdentity indicator
Represents an indicator that is a ready after ingesting a single sample and always returns the same value as it is given if it passes a filter condition
Adds an example algorithm
2017-03-06 14:40:14 -03:00
AlexCatarino 70735cea12 Fixes API indicators with quote subscriptions
When indicators received data from securities that were subscribed as QuoteBar or TickType.Quote, they were consolidated as TradeBars.
Tick were consolidated into TradeBar even when period were zero. Tick object information was lost in the process. With this fix, Tick keeps being Tick.

Adds tests for ResolveConsolidator to verify the consistency between input and output type
TradeBar -> TradeBar
QuoteBar -> QuoteBar
TickType.Trade -> TickType.Trade or TradeBar
TickType.Quote -> TickType.Quote or TradeBar
2017-03-06 10:22:27 -03:00
Stefano Raggi 8b946a8fd1 Add Volume property to HeikinAshi indicator
This makes volume available to indicators chained to HeikinAshi, as requested here:
https://www.quantconnect.com/forum/discussion/1566/getting-volume-in-a-heikin-ashi-tradebar
2016-12-19 20:40:37 +01:00
Michael Handschuh 5809527a95 Scan consolidators to emit based on time
Currently, most consolidators rely on receiving a piece of data after
the consolidation period before firing the consolidated event. This
introduces a lag in the results. We've mostly gotten around this  for
the most common case through usage of the IdentityConsolidator.

The issue arises when considering fill forward behavior and subscriptions
with different resolutions.

Consider a Minute subscription a Daily subscription. Default behavior will
fill forward that daily bar on every minute. If your indicator is based on
the IdentityConsolidator, then it will receive the same price update for
each minute the security trades that day.

By scanning the consolidators based on time, the consolidator is able to
determine that it is indeed time for it to emit a new consolidated bar.
This removes the need for the IdentityConsolidator while also fixing the
aforementioned bug.
2016-11-15 23:36:26 -05: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
Alexandre Catarino 47a75771c6 Implements the RegressionChannel indicator (#584)
* Adds Intercept and Slope members in LeastSquareMovingAverage

* Implements the RegressionChannel indicator

The Regression Channel indicator extends the LeastSquaresMovingAverage with the inclusion of two (upper and lower) channel lines that are distanced from the linear regression line by a user defined number of standard deviations.
Adds tests.

* Renames Regression Channel properties

Remove *Line from Regression Channel properties
Adds reference

* Adds RegressionChannelAlgorithm

Adds RegressionChannelAlgorithm
Minor changes on the indidicator
Adds tests for the channels

* Intercept and Slope becomes IndicatorBase instead of WindowIndicator

* Fix LSMA Next Value calculation
2016-10-10 11:48:09 -04:00
Juan José D'Ambrosio 96d9aeae4e Parameterless contructors for some CandleStickPatterns (#569)
* Parameterless constructors to CandleStickPatterns.

* LOGR method fixed.

* LogR fix... really.

* .gitignore reverted.
2016-09-29 18:02:07 -04:00
jameschch@outlook.com 18f3bbe4c2 Add remaining SWISS tests 2016-06-08 10:29:27 +01:00
jameschch@outlook.com 830692f7ad Adds SWISS factory method 2016-05-31 15:06:41 +01:00
jameschch@outlook.com 92728c386d Adds FRAMA external data testing 2016-05-26 11:27:28 +01:00
jameschch@outlook.com 4001cf8a8b Adds FRAMA factory method 2016-05-25 15:38:36 +01: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
Stefano Raggi 6b0fa8259a PercentagePriceOscillator now derives from AbsolutePriceOscillator 2016-03-24 02:18:21 +01:00
Stefano Raggi ad60c42e75 Adds PercentagePriceOscillator indicator (PPO) 2016-03-23 21:15:39 +01:00
Stefano Raggi 890d668653 Adds AbsolutePriceOscillator indicator (APO) 2016-03-23 20:53:08 +01:00
Michael Handschuh 2b6ca278b8 Merge branch 'midprice-indicator' of https://github.com/StefanoRaggi/Lean into StefanoRaggi-trix-indicator 2016-03-22 11:14:54 -04:00
Michael Handschuh 1aee77e317 Merge branch 'trix-indicator' of https://github.com/StefanoRaggi/Lean into StefanoRaggi-trix-indicator
Conflicts:
	Algorithm/QCAlgorithm.Indicators.cs
	Tests/QuantConnect.Tests.csproj
2016-03-22 10:56:26 -04:00
Michael Handschuh e54d0f7d5d Merge branch 'ultosc-indicator' of https://github.com/StefanoRaggi/Lean into StefanoRaggi-ultosc-indicator
Conflicts:
	Algorithm/QCAlgorithm.Indicators.cs
2016-03-22 10:54:11 -04:00
Stefano Raggi ab44f5f18e Fixes typo in xml doc comment 2016-03-21 21:57:29 +01:00
Stefano Raggi 1a797a5c42 Adds MidPoint indicator (MIDPOINT) 2016-03-21 21:20:11 +01:00
Stefano Raggi 4dd9f2cf14 Adds Trix indicator (TRIX) 2016-03-20 11:31:38 +01:00
Stefano Raggi cd5f032b9d Adds Ultimate Oscillator indicator (ULTOSC) 2016-03-19 23:09:18 +01:00
Stefano Raggi b688fc3598 Adds Kaufman Adaptive Moving Average indicator (KAMA) 2016-03-07 23:22:37 +01:00
Stefano Raggi 2483ef60df Adds Average Directional Movement Index Rating indicator (ADXR) 2016-03-01 19:48:31 +01:00
Stefano Raggi 2545010cd3 Adds CurrentBar get property to HeikinAshi indicator 2016-02-19 03:33:28 +01:00
Stefano Raggi aed31706ad Adds Heikin-Ashi indicator 2016-02-19 03:01:39 +01:00
Stefano Raggi 9b1cc7388a Adds Normalized Average True Range indicator (NATR)
Closes #285
2016-02-15 14:51:34 -05:00
Stefano Raggi c8e1b7a29e Changed volume factor default to 0.7 in T3 indicator 2016-02-12 23:07:02 +01:00
Stefano Raggi 27557704d1 Adds default volume factor = 1 to QCAlgorithm.T3 method 2016-02-12 21:46:39 +01:00
Stefano Raggi 03f43015e7 Adds T3 Moving Average indicator 2016-02-12 21:46:39 +01:00
Stefano Raggi fc6848a029 Adds missing QCAlgorithm indicator methods
Closes #283
2016-02-12 10:59:11 -05:00
Stefano Raggi 287ca5d01a Adds RateOfChangeRatio indicator
Closes #282
2016-02-12 10:56:54 -05:00
Stefano Raggi 6a5d24a1c5 Adds QCAlgorithm methods for TEMA and TRIMA indicators
Closes #281
2016-02-09 16:51:30 -05:00
Stefano Raggi c834c3cbf3 Adds DoubleExponentialMovingAverage indicator
Closes #273
2016-02-08 11:11:22 -05:00
Stefano Raggi b8afc59880 Adds ChandeMomentumOscillator indicator
Closes #272
2016-02-08 11:10:39 -05:00
Stefano Raggi 7042411d9f Adds TrueRange indicator
Closes #271
2016-02-08 11:10:38 -05:00
Stefano Raggi 1231db1068 Adds AccumulationDistribution and AccumulationDistributionOscillator indicators
Closes #270
2016-02-08 11:09:56 -05:00
Stefano Raggi ae048623cf Adds Variance indicator
Closes #267
2016-02-04 17:18:13 -05:00
Stefano Raggi 61ef941597 Adds Balance Of Power indicator
Closes #263
2016-02-04 12:57:18 -05:00
snugs ad2a12c339 Adds RegisterIndicator TimeSpan overload 2015-12-21 13:34:15 -05:00
snugs e22fc9e46b Change QCAlgorithm.ResolveConsolidator to public 2015-12-21 13:34:14 -05:00
snugs 2b4ccbd3d8 Doc fix for KCH helper 2015-11-23 13:43:09 -05:00
snugs 9b898d5eb4 Use Symbol.ToString in CreateIndicatorName 2015-11-23 13:05:42 -05:00