Just had a thought . . you could have more than 4 lines but you would have to use one buffer (therefore the same colour) for each, you currently use colour, red & white for example, could you use position instead ? So instead of red the square would be higher than the square that would previously have been white . . .
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
There is a limit of 8 Indicator buffers, each line uses 2 buffers so you are limited to 4 lines . . .