November 16, 2020
New Parameters to Manage Drawings Count

We’re happy to announce that we’ve upped the maximum number of line and label drawings in indicators written in Pine Script to 500. Since drawings consume server resources, by default there was a limit on their number on the platform, around 50.

Now, we’ve changed this limit. The parameters max_lines_count and max_labels_count are added to the study and strategy functions, which will allow you to set the maximum number of objects to draw on the chart, from 1 to 500.

For instance:

//@version=4
study("My Script", overlay=true, max_labels_count=100)
label.new(bar_index, high)

Please be aware that if the parameters are not specified, the limit of drawing objects will remain the same, approximately 50.

The fastest way to follow markets

Launch Chart