If you want to use this Indicator visually you have to write 2 Indicators, an Indicator can output to the Chart Window OR the Separate window, not both. If you simply want to use thisIndicator with iCustom then both lines can be plotted to the Chart Window and you can get the correct values with iCustom()
Create equivalent code in your EA and do not use the Indicator . . . or use 5 x iCustom() calls.