How to merge data from different periods?
Author: sakhanovv
Creation Date: 12/20/2013 1:45 PM
profile picture


How to merge data from different periods. I have data for 2012 and 2013 in different files
profile picture


What is the file format?
profile picture


ASCII data can be merged outside Wealth-Lab, like in a text editor or script. By coding a Strategy, you can "glue" several ASCII files together too -- it's a trivial task not specific to WealthScript or Wealth-Lab:

Merging two binary data files (i.e. anything else than ASCII) together is also possible in a WealthScript Strategy: import both of them into separate Bars objects, use undocumented Bars.Append method to merge into one, then follow the QuickRef example for SaveToFile.