High Low Charts

hlocv

Use series types HIGH and LOW to make vertical line segments in a HighLow chart, as in this example:

    PLOT HIGHLOW
        ALL AXIS, DARK SKYBLUE HIGH, LOW,
        OPEN, CLOSE, LIGHT RED BAR:Y2
      WITH
        TITLE Y "Price"
        TITLE Y2 "Volume"
        SCALE Y2 0 2400 800
        COLLAR
        HORIZONTAL GRIDLINES
        VERSION "1.4.4"
    SELECT substring(day, 1,1),h,l,o,c,v
        FROM foof;

Use OPEN and CLOSE to add open and close tick marks. You can also add any of the basic types: BAR, LINE, or AREA. The script above assigned bars to the second y axis using BAR:Y2.

HighLow charts are also useful for plotting residual values:


    PLOT HIGHLOW
    ALL AXISLABELS, HIGH, LOW,
        SMALL FILLED BLUE CIRCLE, RED LINE
      WITH
        COLLAR
        HORIZONTAL GRIDLINES
    SELECT x, meas, line, meas, line
        FROM ref1;

and for error bars:
errorbars

    PLOT HIGHLOW
        ALL AXISLABELS,
        GRAY HIGH, LOW,
        GRAY LINE, BLUE SMALL FILLED CIRCLE
        HORTICK, HORTICK
      WITH
        COLLAR
        HORIZONTAL GRIDLINES
    SELECT x,
        meas + 4, meas - 4,
        meas, meas,
        meas + 4, meas - 4
        FROM ref1;

Marker sizes VERY BIG, BIG, SMALL, VERY SMALL, and TINY can be applied to adjust the size of markers, or use a SIZE OVERRIDE
to vary marker sizes.

Comments are closed.