My Indicators -> Add new indicator
Then connect "Just pass" with "Levels tester (for indicators and more)" under "Tick" and load one of the buffers of your custom indicator. Carefully inspect what does the indicator returns as values.
About ZigZag indicator, I think it is not very suitable for use in EA 😮
E