HighLowChart2D

Modified in version 5.0

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..200 25 % of interval width
highTickMarkAlignment int 1..3 center
lowTickMarkLength num 0..200 25 % of interval width
lowTickMarkAlignment int 1..3 center
closeTickMarkLength num 0..200 25 % of interval width
closeTickMarkAlignment int 1..3 center
openTickMarkLength num 0..200 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(2022-11-30 2022-12-01 2022-12-04 2022-12-06 2022-12-07 2022-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;​steelBlue)

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
HIGH_LOW_CHART_2D_02
1

OpenDrawing(250;​150)

2

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

3

118 122 118 126 126 121 123;​ /* High-values.  */

4

102 105 104 104 106 111 113;​ /* Low-values.  */

5

104 119 118 108 122 118 113;​ /* Close-values. */

6

113 121 114 112 112 121 121) /* Open-values.  */

7

HighLowChart2D(;​highLowCloseOpen;​0;​;​0;​;​;​right;​;​left)

8

/* Set up styles. */

9

LineStyle(1;​;​0.75;​steelBlue)

10

/* Set up axes. */

11

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

12

AxisLine(all;​0)

13

AxisMajorTicks(all;​0)

14

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

15

AxisMajorTickLabelOptions(x;​;​;​3)

16

/* Set up grid. */

17

MajorGridLineWidths(x;​y;​0.25)

18

MajorGridLineWidths(y;​x;​0)

19

CloseDrawing()

HIGH_LOW_CHART_2D_02

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

Scroll to Top