|
<< Click to Display Table of Contents >> INI |
![]() ![]()
|
The INI statement runs any gekko.ini file (a file program with Gekko statements), if this file is present in the program folder (where Gekko.exe is located) and/or working folder.
See concrete examples of INI files in the RESTART help file.
ini ;
The RESTART statement is in reality a RESET statement followed by an INI statement. If no gekko.ini files are present, RESTART and RESET are equivalent.
You may put a gekko.ini file next to Gekko.exe, so that every time Gekko is started up, you can be sure that this gekko.ini is run. This can be practical for very general settings, like MODE, initial time period, file folders etc. Alternatively, you can put a gekko.ini in your working folder, so that this gekko.ini will be run when Gekko starts up in that folder. You may also put a gekko.ini in both locations, in which case the gekko.ini next to Gekko.exe will be run first.
Variable settings etc. in a gekko.ini file can with be stated with global: (to put them in the Global databank), for instance global:%start_period = 1980;. Variables in the Global databank survive READ, CLEAR, etc., and do not 'pollute' the first-position databank if this is later on written to file.
Note: With option interface remote = yes;, Gekko may be remote-controlled from a special remote.gcm program file in the working folder (cf. OPTION).