setBarThickness()

ICE Data Services -

setBarThickness()
Previous  Top  Next


setBarThickness( thickness [, index] )

This function sets the line thickness for a series value that is being returned to the chart for plotting.

Parameters

thickness
integer value for line thickness
index
optional. an integer identifying the return index from main()


Usage

function main() {
var myVar;

   ...
   ...

   
if ( myVar > 0 ) {
      setBarStyle( PS_SOLID, 
0 );
      setBarThickness( 
40 );
   }
   
else {
      setBarStyle( PS_DOT, 
0 );
      setBarThickness( 
20 );
   }

   
return( myVar );

}


setDefaultBarThickness()