Writing the result of a function to a text file

I'm new to yo AFL, and I'm trying to do one simple task in Amibroker using afl.
can you guide me how to write(fputs) the result of zig-zag function(returns ARRAY),
how can i write the array result to txt.

Use this export example as a guide, instead of exporting Open, Close, etc, export ZigZag.

1 Like