Plot Styles in Indie Language
Currently, Indie supports the following plot styles:- Line – simple lines

- Marker – dots, crosses, etc. on the chart

- Steps – a line connecting points with horizontal steps

- Histogram – bar charts with absolute-width lines

- Columns – bar charts with relative widths (0.0 to 1.0 relative to bar spacing)

indie.plot
package. Using them is easy, let’s look at some examples:
Lines
Lines are the most common plot style and a great starting point. Let’s create a simple SMA Crossing indicator that draws multiple lines. We’ll enhance our previous example by adding two SMA lines:- Add
@indie.plot.line(...)
in the Main function decorator to declare and configure the line. - Return two floats with current line values for each bar.

Markers
Let’s add markers for SMA line crosses. The algorithm is already known:- Add a
@plot.marker
decorator, - Return an
indie.plot.Marker
object from Main:
display_options
parameter - this allows you to hide the marker values from the “pill” and from the ordinate axis:

Columns
We created an SMA Crossing indicator. To highlight crossovers visually, let’s build a supporting indicator with columns in a separate pane. An indicator by mustermann84 on our marketplace is free: Simple Crossover Signal Bars. Here’s its code:
Histograms
Histograms in Indie are similar to columns but will gain more features in the future. Use histograms for data distributions or value differences, e.g., SMI Ergodic Oscillator shows the difference between TSI and its smoothed version:
Steps
Steps displays data as step lines, ideal for discrete changes or support/resistance levels: