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.
http://www.amibroker.com/kb/2014/11/14/how-to-export-quotes-to-separate-text-files-per-symbol/

1 Like