Your program needs input from the user. You know exactly how many elements you need, and what type each one is. The data can be obtained in a file.
Use the File open, process, close pattern to open and close the file. Processing might be like this:
Dim goals As Integer Dim behinds as Integer 'Open file ... 'Read Input #1, goals, behinds 'Close ...
This works best with CSV files. For example, the file might have this:
This pattern is often used for configuration. For example, you might have a moving average that uses 30 periods. You could put the 30 in a file, so that it can be changed easily.