HighLowChart2D

HighLowChart2D ( appearanceConst ;​ highLowChartType ;​ highTickMarkLength ;​ highTickMarkAlignment ;​ lowTickMarkLength ;​ lowTickMarkAlignment ;​ closeTickMarkLength ;​ closeTickMarkAlignment ;​ openTickMarkLength ;​ openTickMarkAlignment )

Argument Type Range Default Note
appearanceConst int 0..127 default
highLowChartType int 1..3 highLow
highTickMarkLength num 0..100 25 % of interval width
highTickMarkAlignment int 1..3 center
lowTickMarkLength num 0..100 25 % of interval width
lowTickMarkAlignment int 1..3 center
closeTickMarkLength num 0..100 25 % of interval width
closeTickMarkAlignment int 1..3 center
openTickMarkLength num 0..100 25 % of interval width
openTickMarkAlignment int 1..3 center
Description

The HighLowChart2D() function makes it possible to depict value ranges along a time-axis in a variety of ways. At least three data series are necessary. The date/time values are passed to the ChartData() function as the 1st data series, the highest values are entered as the 2nd data series, the lowest values as the 3rd data series. As an option, by using the 2nd argument highLowChartType, three values (highLowChartType = highLowClose) or even four values (highLowChartType = highLowCloseOpen) can be entered in addition to the two default values (highLowChartType = highLow).

HIGH_LOW_CHART_2D_01
1

OpenDrawing(250;​150)

2

ChartData(2018-11-30 2018-12-01 2018-12-04 2018-12-06 2018-12-07 2018-12-08;​

3

112 118 115 108 112 118;​ /* High-values. */

4

103 105 105 103 103 103) /* Low-values. */

5

HighLowChart2D(;​highLow;​40;​;​40)

6

/* Set up styles. */

7

LineStyle(1;​;​0.75;​#4682b4)

8

/* Set up axes. */

9

ScalingOptions(y;​on) /* y-scale top to bottom. */

10

AxisLine(all;​0)

11

AxisMajorTicks(all;​0)

12

AxisMajorTickLabelStyle(x;​;​;​;​;​;​-90)

13

AxisMajorTickLabelOptions(x;​;​;​3)

14

/* Set up grid. */

15

MajorGridLineWidths(x;​y;​0.25)

16

MajorGridLineWidths(y;​x;​0)

17

CloseDrawing()

HIGH_LOW_CHART_2D_01

The HighLowChart2D() function is set up the same as the HighLowChart() function except the missing argument doShiftIntervals.

Scroll to Top
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×