Config file for External Data Management scripts

External Data Management scripts that come with Portfolio Slicer need to be configured before they are run. All configuration parameters are stored in the file "psConfig.txt" that is located in the same folder as all PowerShell scripts.Here are basic rules about this configuration file:

  • Empty lines in this file are ignored.
  • Lines that have first symbol as # are considered to be comment lines and are ignored.
  • Each configuration parameter is defined by opening tag and closing tag that should be entered on the separate lines. For parameter MinDate opening tag would be <MinDate> and closing tag would be <\MinDate>. Parameter values should be entered on separate lines between parameter tags.
  • if for parameter we expect just one value, then we expect this value in the line right after the opening tag.
Here is sample configuration file:

Configuration file "psConfig.txt" has following parameters:

  • MinDate - Minimal date for Portfolio Slicer workbook. This parameter values must be formatted as YYYY-MM-DD.
  • DetailOutput - If value is “Yes”, then scripts will output to screen detail execution information. Usually you would want to set initially this value to “Yes”. But because scripts can generate many lines of output, sometimes important information could get lost. So after initial runs you might consider setting this value to “No”. Please note that this value will not impact output to log files as log files will always contain detail output.
  • PSDataFolder - Folder were external data files are located. Example value: “c:\PortfolioSlicer\PSData”. If value is not specified, then scripts will assume that files will be located in “\PSData\” folder just “above” folder where all scripts are located.
  • GeneratedQuotes - This parameter is used by script “AppendGeneratedQuotes.ps1”. This parameter value could have multiple lines with each line with following data: “Symbol,MinDate,MaxDate,Price”. Here “Symbol” usually will be your own created symbol (Example: VidasGIC20170101”) and the same value should be in table “Symbol”. Value MinDate (format YYYY-MM-DD) should be start date from when quotes for this symbol will be created. If value is not specified, then parameter “MinDate” value from this file is used. Value MaxDate (format YYYY-MM-DD) is value that shows up to when quotes for this symbol should be created. If MaxDate not specified, then we will use current date. Value “Price” should be price for your investment.
  • DataRootFolder - Root folder where your data files will be located. Currently this is used just by one script: “ArchiveOldQuotes.ps1” and it assumes that quotes are located in that data root folders sub-folder “\Quotes\“. Probably your data root folder will also have sub-folders “Dividends” and “CurrExch”, but this structure will depend on how you will populate external data files. If value is not specified it is assumed that data root folder is folder just “above” folder where scripts are located.
  • ArchiveQuotes - If value is “Yes”, then script “ArchiveOldQuotes.ps1” will run. With any other value this script will exit without changing anything in your quotes files.
  • ColumnSeparator - default value is “Tab”. From version 2.2 you should use just default “Tab” value.
  • DecimalSeparator - default value is “.” (dot). If your computer in regional settings is set to have decimal separator as “,” (comma), then you should change this parameter value to “,” (comma).
  • Currency - list currencies that you want to get exchange rates for.
  • Yahoo - list of symbols to get from Yahoo Finance website
  • Google - list of symbols to get from Google Finance website. You can list symbols here JUST WHEN in “Historical Prices” page on the right under the chart you see option “Export”-“Download to spreadsheet”. If you do not see this option, use parameter.
  • GoogleWeb - list of symbols to get from Google Finance website. Here include just symbols that do not have “Export”-“Download to spreadsheet” link in “Historical Prices” page (on the right under chart)
  • Ariva - list of symbols for quotes from website (mostly Europe). SymbolCode can be found on ariva website in symbol charts area in the link under “Chart (L&S) fur Ihre Website?“. That link will be like this:, where code after “secu=” specifies Ariva Symbol Code.
  • IncludeQuoteArchiveFolder - Portfolio slicer has script to archive quotes. I enabled archiving for my setup (runs faster), but sometimes I need to have daily quotes for last few years. In such case I set parameter value to “Yes” and run batch and newly created Quotes.csv file then has daily quotes for all years.

Note - last parameters (from “Currency”) were added by Portfolio Slicer user MaximT.

Video instructions - How to choose source for quotes