IndicatorsMarketplace
Object for accessing indicators from Indicators Marketplace.
Last updated
Object for accessing indicators from Indicators Marketplace.
Last updated
To enable you to use various kinds of algorithms and indicators from Signals Indicators Marketplace, you need an object which allows you to access those algorithms inside your strategies. That is what the IndicatorsMarketplace
object does in the Setup
method of each strategy.
Select indicators and their version (Signals Framework supports versioning of algorithms created by developers) from the Indicators dropdown in the sidebar. In the background, the framework will automatically reference the selected algorithm in your strategy and add a using
statement into your code in the code editor.
Selected indicators will be accessible through the IndicatorsMarketplace indicators
object in the Setup
method and intellisense will automatically start suggesting all the indicators which you have selected via the dropdown.
Definition of an indicator is not complete without defining which data series you want to use it on. The OnSeries
method makes this definition easy. Some indicators need a stream of doubles, while others are processing Bars. That's why the OnSeries
method input parameter varies, based on the type of indicator.
Name | Type | Description |
| IDataSerires<TData> | Data series used as input for the indicator. |
Example
Very often in your strategy logic, you want to make your trading decision based not only on the current indicator value but also on its historical value. Using the Keep
method, you can define how many historical values should be stored in an indicator. By default, indicators only store a value for the current bar.
Name | Type | Description |
| int | The number of historical values the indicator should keep. |
Example
Suppose you need to know what the value of an SMA indicator was 10 bars in the past, you can simply set up an indicator using the Keep
method with a parameter value of 10.