Problem with draw multi color lines - page 2

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
One thing to note from a quick glance at your code ... you are mixing the buffer index and the plot index.
You have 16 buffers for 8 plots, but you are referencing your plots using the same index as the buffers. That is incorrect.
It should be as follows ...
Not sure if you have actually compiled and tested my code. In the picture I sent, I can still run it normally but it cannot display properly.
2. It is not necessary to define indicator properties using #property. I have defined it all in BasicInit() and ColorBufferInit() functions
3. I defined it on line 18, and the file I attached can still compile normally.
That's wrong, it's MANDATORY to define plots with #property.
Even if you define them dynamically in the code.