Creates an instance of the specified indicator.

Namespace:  RightEdge.Common
Assembly:  Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public void CreateIndicator(
	ISeries indicator
)
Visual Basic (Declaration)
Public Sub CreateIndicator ( _
	indicator As ISeries _
)
Visual C++
public:
void CreateIndicator(
	ISeries^ indicator
)

Parameters

indicator
Type: RightEdge.Common..::.ISeries
An instantiated indicator

Remarks

Use CreateIndicator to create an instance of an indicator that can be used across all symbols that are currently running in the system.

Examples

Add a 50 period SMA indicator to the system (C#)
CopyC#
Indicators["SMA50"].CreateIndicator(new SMA(50));

// Specify the closing price as the input.
Indicators["SMA50"].SetInputs(BarElement.Close);

// Set the series color
Indicators["SMA50"].SeriesColor = Color.Green;

// Indicate that it will be added to the charts.
Indicators["SMA50"].AddToCharts();

See Also