I see "The script creates to many plots (x). The limit is 64" error

This error shows that your indicator uses too many plots. The maximum is 64. To fix the issue, reduce the number of plots created by function calls in your script.

Note that `plot*()` functions can create more than one plot, including plots that are used internally and are not visible on the chart. To learn more about why this happens, consult the Plot limits section in the User Manual.