CandlestickChart2D

CandlestickChart2D ( appearanceConst ;​ itemGap ;​ highTickMarkLength ;​ highTickMarkAlignment ;​ lowTickMarkLength ;​ lowTickMarkAlignment )

Argument Type Range Default Note
appearanceConst int 0..127 default
itemGap num 0..1000000 100 In % of box width
highTickMarkLength num 0..100 0 In % of box width
highTickMarkAlignment int 1..3 center
lowTickMarkLength num 0..100 0 In % of box width
lowTickMarkAlignment int 1..3 center
Examples
Description

The CandlestickChart2D() function is used to depict stock market prices along a time axis. The five data series required for this in the ChartData() function correspond to the date/time values and the highest, lowest, closing and opening prices.

CANDLESTICK_CHART_2D_01
1

OpenDrawing(260;​150)

2

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

3

118 122 126 116 118 121 123;​

4

102 105 104 104 110 111 113;​

5

104 119 121 108 115 118 113;​

6

113 121 113 112 118 121 121)

7

CandlestickChart2D(;​300;​50;​right;​50;​left)

8

/* Set up styles. */

9

FillStyle(1;​#ca0d0060)

10

BorderStyle(1;​;​0.5)

11

/* Set up axes. */

12

AxisLine(all;​0)

13

AxisMajorTicks(all;​0)

14

AxisMajorTickLabelTexts(x;​"|Mon-DD|")

15

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

16

/* Set up grid. */

17

MajorGridLineWidths(x;​y;​0.25)

18

MajorGridLineWidths(y;​x;​0)

19

CloseDrawing()

CANDLESTICK_CHART_2D_01

The CandlestickChart2D() function is set up exactly the same as the CandlestickChart() function.

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

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

×