CandlestickChartOptions

CandlestickChartOptions ( bullishColor ;​ bullishColorVariant )

Argument Type Range Default Note
bullishColor rgba 0..255 none
bullishColorVariant int -1..128 solid
Description

The color of the candlestick body for a higher closing (bullish candlestick) can be varied by using the arguments bullishColor and bullishColorVariant. As the default, bullish candlesticks are not filled. Please note that the CandlestickChartOptions() function should be listed after the CandlestickChart() or CandlestickChart2D() function. This rule generally applies: chart options should always be listed after the actual chart function.

CANDLESTICK_CHART_OPTIONS_01
1

OpenDrawing(250;​150)

2

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

3

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

4

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

5

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

6

CandlestickChart()

7

CandlestickChartOptions(#0805) /* After CandlestickChart() */

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

/* Set up grid. */

15

MajorGridLineWidths(x;​y;​0.25)

16

MajorGridLineWidths(y;​x;​0)

17

CloseDrawing()

CANDLESTICK_CHART_OPTIONS_01
CANDLESTICK_CHART_OPTIONS_02
1

OpenDrawing(260;​150)

2

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

3

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

4

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

5

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

6

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

7

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

8

CandlestickChartOptions(#0805) /* After CandlestickChart() */

9

/* Set up styles. */

10

FillStyle(1;​#ca0d0060)

11

BorderStyle(1;​;​0.5)

12

/* Set up axes. */

13

AxisLine(all;​0)

14

AxisMajorTicks(all;​0)

15

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

16

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

17

/* Set up grid. */

18

MajorGridLineWidths(x;​y;​0.25)

19

MajorGridLineWidths(y;​x;​0)

20

CloseDrawing()

CANDLESTICK_CHART_OPTIONS_02
Scroll to Top