setDefaultBarStyle()
setDefaultBarStyle( nStyle [, nCount] )
- nStyle: A valid color pen style.
- nCount: Optional. If your study returns multiple values, specify the return value here.
This function is only available in preMain(). It is the default bar style that will be used for a bar if it is not specified by calling setBarStyle(). If this is not called, the default style is PS_SOLID.
Example:
setDefaultBarStyle( PS_SOLID ); //set bar style when your study returns only one value
setDefaultBarStyle( PS_DASH, 0 ); //set style for first returned study value
setDefaultBarStyle( PS_SOLID, 1 ); //set style for second returned study value