setDefaultBarFgColor()
setDefaultBarFgColor( nColor [, nCount] )
- nColor: A valid color or RGB value.
- nCount: Optional. If your study returns multiple values, specify the return value here.
This function is only available in preMain(). It is the default foreground color that will be used for a bar if not specified by the setBarFgColor() function. If this is not called, the default will be blue (e.g., Color.blue).
Example:
setDefaultBarFgColor( Color.red ); //set fg color when your study returns only one value
setDefaultBarFgColor( Color.blue, 0 ); //set fg color for first returned study value
setDefaultBarFgColor( Color.red, 1 ); //set fg color for second returned study value