You are doing things blindly. And I am even more blind, because I don't even know how your indicator looks like. But once you understand indicators, it's not hard at least to find what the problems are.
Here the first two examples are showing how to inspect values, including indicator buffers - https://fxdreema.com/examples/#Tips-and-Tricks
Before using any indicator make sure that:
the indicator can be loaded, works well and there are no error messages in the logs
you know it's values