SetDefaultColor

SetDefaultColor ( CustomColor color );

Description

Sets the default color of a plot. This setting affects the color of the plot when the study is first initialized or added to the chart.

Input parameters

Parameter Default value Description
color - Defines the default plot color.

Example

plot Data = close;
Data.SetDefaultColor(Color.RED);

The example sets the default color of the Data plot to red.