Skip to content

DSL Chart API

Chart API is available to indicator scripts.

plot

Draws a line series.

plot(ma, title="MA", color="#2962FF", width=2)

Options:

Option Description
title Display name
color Line color
width Line width

hline

Draws a horizontal level.

hline(0, title="Zero", color="#999999", width=1)

Reserved Chart Functions

The following functions are reserved for visual extensions:

  • fill
  • bgcolor