This attribute is used for marking an indicator IndicatorDataSeries property as a line Output.
Remarks
Marks a IndicatorDataSeries property as output to be displayed on the chart or panel below. To make it effective please apply this attribute in front of the declaration of the IndicatorDataSeries to be displayed.
importclrclr.AddReference("cAlgo.API")fromcAlgo.APIimport*# OpenOutput, HighOutput, LowOutput, and CloseOutput are outputs defined in C# file of indicatorclassTest():defcalculate(self,index):api.OpenOutput[index]=api.Bars.OpenPrices[index]api.HighOutput[index]=api.Bars.HighPrices[index]api.LowOutput[index]=api.Bars.LowPrices[index]api.CloseOutput[index]=api.Bars.ClosePrices[index]
Properties
LineStyle
Summary
Gets or sets the Line Style for given Output property. By default it is set to Solid
Remarks
If PlotType = PlotType.Line (default) the LineStyle can be added.Supported line styles are:DotsDotsRareDotsVeryRareLinesLinesDotsSolid
Signature
1
publicLineStyleLineStyle{get;set;}
Return Value
LineStyle
Examples
12345
//...//Simple moving average will be now plotted as Lines.[Output("Simple Moving Average", LineStyle = LineStyle.Lines)]publicIndicatorDataSeriesSMA{get;set;}//...
Name
Summary
The plot name
Remarks
Displayed in the User Interface when adding an new instance of the Indicator.
Signature
1
publicstringName{get;}
Return Value
string
Examples
12345
//...//The plotted indicator name is Simple Moving Average.[Output("Simple Moving Average")]publicIndicatorDataSeriesSMA{get;set;}//...
LineColor
Summary
Gets or sets the Color of the Output property. This Color will be used when the line for this Output is plotted.
Signature
1
publicstringLineColor{get;set;}
Return Value
string
Examples
12345678
//...//The result is plotted in Turquoise.[Output("Main", LineColor = "#008000")]publicIndicatorDataSeriesSMA{get;set;}publicoverridevoidCalculate(intindex){//...}
Thickness
Summary
Sets the Width of the Output property.
Remarks
This Width will be used when the line for this Output is plotted.
Signature
1
publicfloatThickness{get;set;}
Return Value
float
Examples
12345678
//...//The result is plotted as a line with thickness level five[Output("Simple Moving Average", Thickness = 5)]publicIndicatorDataSeriesSMA{get;set;}publicoverridevoidCalculate(intindex){//...}
The type of the output plotted on the output panel. Default = LineSupported types are:LinePointsHistogram
Signature
1
publicPlotTypePlotType{get;set;}
Return Value
PlotType
Examples
12345678
//...//The result is plotted as a Histogram.[Output("Commodity Channel Index", PlotType = PlotType.Histogram)]publicIndicatorDataSeriesSMA{get;set;}publicoverridevoidCalculate(intindex){//...}
12345
//...//Plot the result as a set of yellow points.[Output("Main", LineColor = "Yellow", PlotType = PlotType.Points)]publicIndicatorDataSeriesResult{get;set;}//...
IsColorCustomizable
Summary
Gets or sets if Output line color is customizable or not.
Remarks
This property is useful when you are setting color manually with code via SetLineAppearance method.
Signature
1
publicboolIsColorCustomizable{get;set;}
Return Value
bool
IsLastValueVisibleInTitle
Summary
Gets or sets if output last value should be visible or not in instance title (default: true).
Signature
1
publicboolIsLastValueVisibleInTitle{get;set;}
Return Value
bool
Description
Summary
Gets or sets description for output that will be shown in UI.