Stock Chart Options

How to:

Stock chart options are available in the Graph Editor menu when a stock (hi-lo) chart is selected in the Graph Types menu.

The Stock Chart Options enable you to:


Top of page

x
Procedure: How to Control the Display of Moving Average Lines and Data Values
  1. Select the General tab from Stock Chart Options.
  2. Use the check boxes in this dialog to enable or disable the display of a moving average line and data values in the stock chart. When Show Data Values is selected, use the Position and Distance slider bars to define the location of data values. The Bar Width slider bar can be used to adjust the width of risers in the chart.
    Show Moving Average Line

    Enables and disables the display of a moving average line in the stock chart. The default value is disabled.

    Show Data Values

    Enables and disables the display of High values only. If the chart does not have a high value, no data value appears. The default value is disabled.

    Position

    When the Show Data Values field is selected (ž), this field sets an angle from the center point from which all data text is drawn. The default value is 90 degrees.

    Distance

    When the Show Data Values field is selected, this field sets the radius that a data text value will be drawn out from the center of a chart riser. The default value is 20.

    Bar Width

    Enables you to set the width of the bars that appear in a stock chart. Drag the slider with the mouse, or enter a number from 1 to 100 to select a percentage of the maximum bar width.

  3. Select the Apply button to add these selections to the chart.

Top of page

x
Syntax: How to Add Properties and Methods for Displaying Moving Average Lines and Data Values

Selections in the associated dialog boxes add the following properties and methods to the code that defines this chart:

Editor Field

Property/Method

Show Moving Average Line

setDisplay(getStockMALine(), true | false);

Show Data Values

setDisplay(getDataText(), true | false);

Position

setDataTextAngle ( value );

Distance

setDataTextRadius ( value );

Bar Width

setRiserWidtrh ( value );


x
Procedure: How to Define Stock Chart 52-Week Settings
  1. Select the 52-Week tab from Stock Chart Options.
  2. Use the check boxes to enable or disable the display of a 52-Week High and/or Low Line in the stock chart. When enabled for display, enter a 52-Week High and/or Low value in the following fields.
    Show 52-Week High Line

    Enables and disables the display of a 52-week high line in a stock chart. The default value is disabled.

    Value

    When Show 52-Week High Line is selected (ž), use this field to define a 52-week high value. The default value is 40.0.

    Show 52-Week Low Line

    Enables and disables the display of a 52-week low line in a stock chart. The default value is disabled.

    Value

    When Show 52-Week Low Line is selected (ž), use this field to define a 52-week low value. The default value is 10.0.

  3. Select the Apply button to add these selections to the chart.

Top of page

x
Syntax: How to Add Properties and Methods for Stock Chart 52-Week Settings

Selections in the associated dialog boxes add the following properties and methods to the code that defines this chart:

Editor Field

Property/Method

Show 52-Week High Line

setDisplay(getStock52WeekHighLine(), true | false);

Value

setStock52WeekHighValue ( value );

Show 52-Week Low Line

set Display(getStock52WeekLowLine(), true | false );

Value

setStock52WeekLowValue ( value );


x
Procedure: How to Define Stock Chart Tick Settings
  1. Select the Ticks tab from the Stock Chart Settings menu.
  2. Select from the following options:
    Split Riser at Close Value

    Enables and disables the display of split risers at the stock close value. The default value is enabled.

    Thickness

    Sets the thickness of tick marks in a stock chart. The default value is 2 pixels. If close and/or open values are not available, the tick mark(s) will not appear.

    Note: The thickness of tick marks can also be controlled by selecting the tick mark object, and using the Applying Color and Line Options in Graphs dialog box.

    Length

    Sets the length of tick marks in a stock chart. The default value is 50. If close and/or open values are not available, the tick mark(s) will not appear.

  3. Select the Apply button to add these selections to the chart.

Top of page

x
Syntax: How to Add Properties and Methods for Stock Chart Tick Settings

Selections in the associated dialog boxes add the following properties and methods to the code that defines this chart:

Editor Field

Property/Method

Split Riser at Close Value

setDisplay(getStockLowerRiser(), true | false );

Thickness

setLineWidth(getStockCloseTick(), value );

Length

setStockTickLength ( value );

WebFOCUS