Occasionally there may be some important alerts that you want your trading algorithms to send to you that require immediate attention. One that I use frequently is daily account drawdown. Here’s how you can set up Twilio to send you a text message when your account enters a certain percentage of drawdown.
If you’re running your trading algorithms on Linux the best way to get them to start on bootup is to use a service called systems. Here are the steps on setting that up.
Then create a new service as root:
sudo nano trading_algo_23.service
Here is a sample of what the file should look like. You can find your account name by using the command whoami in linux
Description=This algo is designed to hedge...
If you’re using Ubuntu or some other flavor of Linux you more than likely want your algorithm to start with the server. This is a pretty straightforward process.
The first thing you’ll want to do is make sure cron is installed
sudo apt-get update
sudo apt-get install cron
Next run crontab -e select nano when it asks which editor. The code below can be used as a template The first two lines are just writing the current date to the log files on reboot so you know when the server was restarted.
@reboot date >> /home/me_jeremywhittaker_com/AAII/log.txt
@reboot date >> /home/me_jeremywhittaker_com/AAII/errors.txt
I actually am running two scripts for this particular strategy. Each one gets its own line of code. This basically tells it to run on on startup @reboot then the path to the script to execute,
If you’re like me you probably have money sitting in your checking, savings, or money-market account. Paying practically zero interest and getting eaten alive by inflation. Here’s what you can do to earn 7.12% on that money and get inflation-adjusted returns on your excess cash.
Yield on savings and checking accounts are horrible
If you’re like me you’re probably trying to move your liquid funds around into these high-yield savings accounts which aren’t exactly keeping up with inflation. In fact, to date, the highest I can find is LendingClub at 0.60%
Inflation is a regressive tax on the poor and middle class
The annual inflation rate in the US has surged to 6.2% in October to 2021 according to the US Bureau of Labor and Statistics. This means your buying power is dropping significantly if you are holding on to cash. You of course know this if you have bought anything recently.
Use I bonds for risk-free inflation-adjusted return on your cash
To get the 7.12% yield you can buy I bonds which are backed by the United States government. They are inflation-adjusted. Meaning, you’re not technically building any wealth but you’re also not allowing the government to steal it through inflation. You can read more about how the rate is calculated here.
I bonds are an excellent investment rather than holding cash
They are exempt from state and local taxes
Subject to federal taxes.
Tax-deferred until you redeem them.
Mature in 30-years or until you redeem them
Redeemable after the first year of purchase
Early redemption is penalized with 3-months worth of interest
The first step is to sign up for a TreasuryDirect account which can be done here.
Once your account is set up you can log in here. You should have received your account number via email confirmation.
Once logged in you’ll see this screen.
Click on the BuyDirect option at the top. You’ll want to select series I bonds.
The most you can buy per social security number is $10,000/year
That’s it. Click submit.
And finally your confirmation page. Pretty simple and straightforward process.
If you have kids you can gift $10,000/year to them as well in I bonds. Read more on gifting I bonds here.
Want to purchase $5,000 more in I bonds every year?
You are also allowed to buy an additional $5,000 worth of I bonds every year with your tax return. That is of course if you have a tax return. You can do this by overpaying your taxes intentionally to the IRS via their website, here. I wouldn’t overpay by exactly $5,000 but probably an amount over. You can read more of the details on that process here. They are going to send you paper I bonds so you will want to convert them and attach them to your online account for ease of management. You buy I bonds with your tax return by submitting tax form 8888 with your taxes
Converting your I bonds to treasury direct electronic format
Directions on this process can be found on the treasury direct website, here.
You will need to create a conversion account one time.
You then need to create a registration list that matches the paper bond ownership that is printed on the paper bonds.