Those lines of code and your error are still 100% unrelated to each other. If you can read the code you are describing, you can obviously see that it's not doing anything with the .par file.

If you're not sure what the code is, read the function descriptions in the manual until you understand. Bad things happen when you do not understand your code. wink

Also, the latest version of the Financial Hacker scripts (including all bug fixes) are actually in the zip files listed in the right-hand column. You should use those and not the code in the blog post.