Find Missing StarBonds
This small script will find StarBonds with an upcoming adjust that you do not
currently own. You must have a system capable of operating in a shell, which is a
user program or environment provided for user interaction that executes commands
read from the keyboard.
This includes operating systems such as UNIX and Linux, which typically have a
shell program called bash
or other shell programs such as ksh, tcsh and zsh. This also includes Mac OS, which has
a program called Terminal
that acts as the shell program.
Windows 10 supports the bash program when properly installed and configured.
See the documentation..
On older versions of Windows a program called Cygwin,
a Unix-like environment, provides a bash shell.
Usage:
- Go to http://www.kaigee.com/SBO/dROI/NextAdj
- Sort however you want by clicking the column header.
I usually sort by the delta change (the triangle) since I only care about missing bonds with a larger ROI.
- Drag your cursor over all columns in each row that you want to compare, then copy it.
I usually grab everything with a delta change > 5.00.
- Save the copied data to a file named next_raw.txt
- Go to your portfolio and drag over all columns in each row of the starbonds, then copy it.
- Save the copied data to a file named held_raw.txt
- Copy the script below and save it as find_missing.sh
- Change the permissions for the file find_missing.sh to make it executable. The typical command is:
$ chmod u+x find_missing.sh
- Run the script:
$ ./find_missing.sh
- The starbonds in the next adjust list that you do not currently own will be
found in a file called missing.txt.
You can view this file using a paging program such as
more or less by executing:
$ more missing.txt
- Do your own calculations to determine if you should own any of the missing StarBonds. KaiGee data is not always up to date, or bonds may have multiple adjusts on the same date.
Script to copy to find_missing.sh: