Friday, April 3, 2009

The good and the bad news about eating crabs with melted butter...

As some of you know, by a long shot, my favorite food in the world is boiled crab with some melted butter. My particular favorite would have to be Texas Gulf Coast blue crabs because they are cheap and I think they are the most flavorful. Also, if you are inclined, its pretty easy to catch them with a crab trap and bait assuming you have some coastline or a boat. For bait you can use leftover meat from a meal or a gutted fish and the crab trap can be re-used for years so it can be a pretty cheap meal! There are some complications however.

First of all, it can be a lot of work to get the meat out, especially if you don't have much experience. The shells are thick and have to be cracked open and within the main body of the crab you have to pick out the meat just right to keep it in nice big chucks. This is actually one of the things I like about eating crab, it takes some skills and it slows you down. Since there is a natural speed bump to eating it you could sit there for hours (and I do) eating crab because your body digests the meat just as fast as you can eat it. Since crab meat is extremely lean I don' think there are health consequences to eating large portions of it. The other complication is that you have to cook the crabs alive and this brings me to the bad news.

Now cooking crabs alive is something that I have never enjoyed doing. These hardy little monsters want to live and they are not afraid of you. Given the chance they can and will take your finger off. Now that is something that I can respect. These animals have been engineered by nature to kick ass and not take names. With a thick shell and two big pincers they are ready for battle and I've been scarred a few times trying to pick them up. They also attack each other when you put them in a container together, which is obviously gonna kinda get in the way of you cooking them all alive. But I definitely have respect for crabs and I feel bad to throw them in a pot of boiling water... alive. However, until now I had assumed, like most, that crabs actually can't sense pain. Since crustaceans have no vertebrae it had been thought that crabs do not feel pain. A recent study proved that wrong:

"Not only do crabs suffer pain, a new study found, but they retain a memory of it (assuming they aren't already dead on your dinner plate). The scientists say its time for new laws to consider the suffering of all crustaceans.

The study involved using wires to deliver shocks to the bellies of hermit crabs, which, being hermits, often take up residence in left-behind mollusc shells. The crabs that were shocked scampered out of their shells, "indicating that the experience is unpleasant for them," the scientists concluded; unshocked crabs stayed put.

Another test was run to see what would happen if a mild shock was delivered, one just below the threshold that would cause the crabs to leave home. These mildly shocked crabs, along with crabs that had not been shocked, were then offered a new home. The typical reaction: They'd go inspect the new shell. Significantly, those that had been shocked were more likely to pack up and move to the new residence compared to those that hadn't been shocked. "

So that's the bad news, now I have a second layer of guilt for all the grabs I've killed and eaten over the years. I doubt this will sway me from my food passion but it might slow me down.

As I mentioned before, when I eat crab I like to keep it simple. Boil them and serve with melted butter. I might throw in some Zatarans spice and a coke but that's as fancy as I'll get. I had assumed the worst component of this meal for my health was the butter, but boy was I wrong. This brings me to the good news.

Recent studies on tooth decay have revealed that teeth can actually repair themselves given the proper diet. I read this in a fascinating blog post that cited some these studies and generalized the conclusions.

"Teeth are able to heal themselves. That's how traditional cultures such as the Inuit can wear their teeth down to the pulp due to chewing leather and sand-covered dried fish, yet still have an exceptionally low rate of tooth decay. It's also how the African Wakamba tribe can file their front teeth into sharp points without causing decay. Both cultures lost their resistance to tooth decay after adopting nutrient-poor Western foods such as white flour and sugar.

...

If I were to design the ultimate dietary program to heal cavities that incorporates the successes of both doctors, it would look something like this:
  • Rich in animal foods such as meat, organs, fish, bone broths, full-fat pastured dairy (if tolerated) and eggs.
  • Fermented grains only; no unfermented grains such as oatmeal, breakfast cereal, crackers, etc. No breads except sourdough because they typically aren't made from fresh flour.
  • No nuts; beans in moderation, only if they're soaked overnight or longer in warm water (due to the phytic acid).
  • Starchy vegetables such as potatoes and sweet potatoes.
  • Moderate quantities of fruit, but no refined sweets.
  • Moderate quantities of well-cooked vegetables.
  • Sunlight, high-vitamin cod liver oil or vitamin D3 supplements.
  • Generous amounts of pastured butter. <-----!!!
  • No industrially processed food.
This diet would maximize mineral absorption while providing abundant fat-soluble vitamins. It probably isn't necessary to follow it strictly. For example, if you eat more mineral-rich foods such as dairy and bone broths, you can probably get away with more phytic acid. Or you might be able to heal cavities eating like this for only one or two meals a day, as Dr. Price demonstrated. "

That's great news for me because I love butter. Its also worth noting that the crab meat its self would also be considered good for teeth as well. I was very surprised by the fact that oats, including bread and cereal are actually very bad for your teeth. Its an interesting article and I'd recommend reading it in full.

Ok, to summarize. Eating crab with butter is good for your teeth, bad for the crab.

Tuesday, March 31, 2009

IB Olympiad 2009: Closing Remarks

Its been about three weeks now since the fourth annual IB Trading Olympiad concluded, about time for me to make my final comments about this year's competition. Tomorrow I'll be sending out the paper work to IB which is the last step I have to take to actually get the award. Each year its a long process and a lot of work but it has paid off with cash, for me anyways. I didn't do as well this year with a 5% gain that put me in 29th place. Last year I was 19th with a 35% gain and the year before I was 10th with a 19% gain. To a certain degree this competition is definitely about the money, $12k in combined cash prizes goes a long ways for a college kid. That being said, I think the experience of developing a trading system from the ground up will prove to be worth much more than the prize money. Each year I've had new ideas about how to improve my system and have grown more confident that automated trading is the most consistent way to profit in fast moving electronic markets.

Each year I have been extremely impressed by the final results of competitors. This year Kevin Warner placed first with a 344% two month gain. Whats more, his software returned him 192% last year for third place. Now I don't know the details of his strategy or if he even used the same one both years, but the fact remains, his software has consistently returned huge profits. Kevin did stop by the blog and briefly mentioned that he was trading volatility spreads on energy and energy products. He said his strategy wasn't directional but that doesn't surprise me because oil was flat during the competition:


As you may recall, one of my strategies was to buy leveraged oil (DXO) with spare cash. That turned out to be a waste of trading power but it didn't lead to big losses either. My program ended up making all of its profits from shorting spikes in implied volatility. As you can see in the VIX chart below there were plenty of those:


On thing that hurt me was the overall net increase in volatility during the competition. Since my program was generally short options, a rising VIX went against those positions. I will say that I would have expected the VIX to increase much more given the 23% drop in the S&P:


Now that is a sight to behold isn't it? I seriously doubt that this competition will ever see such a big move in the general market in the future. It certainly makes all of those who profited this year look even better. As far as I'm concerned we can all add 23% to our returns since thats how much the benchmark index dropped. So once again I have to congratulate all of the competitors who placed this year. Ryan, Chintan, Kevin and the rest. It was a tough market this year.

IB never responded to my questions in detail, they just directed me to this media relations page. There wasn't a whole lot of useful information there besides this excerpt: "The College Trading Olympiad continues to attract the attention of university professors and their students with applications coming from 41 countries for the 2009 Olympiad with 372 applications accepted. In 2009, students from far-away places including Argentina, Costa Rica, Estonia, Indonesia, Morocco, Peru, the Philippines, Turkey and South Africa took part. " So as Kevin pointed out, "fewer than a fifth of the contestants built a compliant system and ended up with a positive account balance." That speaks to both the difficulty in getting a system working and to getting a working system to actually make money. It also suggests that IB has been successful in attracting an international participation for this competition. Chintan pointed out that IB gets great international press from this and I'd agree. It also means that a new generation of market professionals from around the world will be familair with the IB platform. Chintan is attending school in India I beleive.

So it seems clear to me why IB does this. Its great international pr, it creates customers, it creates employees (they offer internships to some winners) and I'm sure they get some tax write offs for giving money to college students. In Barron's this weekend, Kevin was quoted as saying he was funding a new IB account this week, so IB is sure to see their money boomerang to some degree. I certianly plan to put my $1k into my IB account. But I expect that since this was the fourth year for them to do it that they realize that in the long run they will get more out of it than they put in. I also hope that despite the ever weakening economy, IB will do this again next year. I have some ideas that are sure to improve my strategy. And I could use the money!!

Anyways, thats all from me on the Olympiad for now. Feel free to leave coments with your impressions of this year's competition. If you are interested in what I'm thinking about the markets you can check out my other blog Stock Geometry. Also, if any of you are trading your own accounts, you can often find me in an IRC room that I moderate. Email me at pythagoruz@yahoo.com if you are interested in joining us or have any other things to discuss. Until next year's Olympiad I'll revert back to posting math jokes, cosmological philosophy and other random stuff that I post typically post here. For now I'll leave you with a chart of the Japanese Yen during the Olympiad. A 9% drop in two months is a serious move for the FX markets, what volatility we had!!:


Cheers!

Monday, March 23, 2009

The Olympiad Results: I'm 29th

The results are out!!! I came in 29th with my 4.9% gain, and I'm very happy with that. I will do a more extensive "wrap-up" post sometime in the next week so check back. I just wanted to get these results up on the blog asap. Congrats to all that placed this year, I see some familiar names on the list!

(click to enlarge)

A few quick things I noticed and was suprised by:
  • The leader for the entire competition ended up in 2nd (Ahmed Taha)
  • There were not many people who placed (not all prizes were awarded)
  • The rate of return greatly increased up to first place, much more steep than last year
  • To get $10k you needed more than a 30% gain in two months
  • To get $100k you needed more than a 260% gain in two months
  • Roughly 1/3 of winners were attending school outside the US

IB: Olympiad Manual Trades

This was a post that I wanted to save until after the results had been posted. On March 16, last week, I got this email from IB:

"Dear IB Olympiad Participant:

Our internal records show that some of your orders may have been submitted through a non-API method. Do you have an explanation for this?

We need to receive your reply by 10 am ET on Wednesday March 18, 2009.

Sincerely,

Interactive Brokers"

My response was:

"Dear IB,

I am certain that no orders were submitted besides those by my program via the API. I was very careful with the TWS to make sure that I did not accidentally click on the GUI for anything besides the "account" button and the "trades" button. I definitely monitored the pages for API and portfolio but never clicked on anything within the page. One issue might be that I have a personal account with IB that I frequently use throughout the day and I only do manual trades with my personal account. That being said, I am fairly certain that there was never an instance where I accidentally did a manual trade in the IB account thinking it was the Olympiad account. I closely monitored the many positions that my program held in the IB account so I would have known. Furthermore, I did not trade any of the same securities that I can recall in my personal account except DXO and maybe STT.

Perhaps if you told me which trades you think were manual I might be able to help? My program executed many, many trades and there were glitches, so perhaps one of the trades that appears manual was submitted via the API but because of the nature of it, appears manual. For example, in some cases trades were submitted by my program when it closed. Maybe the API connection closed before the actual execution of a trade submitted just before the connection closed. I might be able to help more with more details.

Anyways, I hope we can sort this out because this is my third year in the Olympiad and I am very much aware of how serious you guys are about the rules. You guys sent me a similar email after the end of the competition my first year, and I think my response was pretty much the same then as it is now (and I was not disqualified). It would be very disappointing to get disqualified this year when I am certain that I did not violate any of the rules. Thanks for doing the competition again this year, I hope you will do it again.

Cheers,
Hunter"

To which they responded:

"Dear Hunter,

It appears one manual trade was placed on January 12, and the other one was on January 29."

Then I responded:

"IB,
This is the record I have of Jan 12th (the first day):
http://pythagoruz.blogspot.com/2009/01/ib-olympiad-2009-day-one.html
My guess would be that the trade in question on that day was in DXO in the first few minutes of the day. I still am not entirely sure what happened with that trade but my program bought twice as much DXO in the first few minutes of the day. Then it sold it all, then bought it all back. I'm not entirely sure why this happened other than that there may have been a delay between when the trade executed and when my program received a report of the execution. I also think that I might have shut the program off when I saw this happen, realizing there was an error. I don't recall if I did actually restart the program or not but it seems like something that I would have done. Assuming I am correct about it being this DXO trade, I think you could see that it wouldn't make sense for me to do this manually. This glitch actually cost me about 10k$ due to the bid/ask spread and commissions. If I had been doing a manual trade I would have just bought the DXO and that's it. With DXO my strategy was to use 50% of available "extra" cash to hold the leveraged oil ETF. My program checked periodically throughout the day and when it closed, if the time of day was appropriate, for this condition. So if I exited the program in those first few minutes, then it might have placed an order when i clicked the close button in my program gui. Also, you can see that there were many DXO trades throughout the competition that aren't showing up as manual, so there would be no reason for me to do this manually because my program was trading DXO on its own.

On the Jan 29th, I don't have much in my records:
http://pythagoruz.blogspot.com/2009/01/ib-olympiad-2009-day-eleven.html
From that record it would seem like the trade in question was to open a naked option position, but that seems unlikely since my program entered many naked option positions but no other days are popping up as "manual." If it was a DXO trade then I would it could be a similar issue with a trade submitted as the program exited. Otherwise, I guess it could be another order that executed just after my program closed. I know that all of the stock trades my program submitted had trailing stops (except DXO), so I suppose a trailing stop could execute while the API connection was not live (but then many more "manual" trades would be showing up). My SSO strategy always canceled trailing stops in SSO when the program was turned on and similarly placed a trailing stop in SSO when it closed. These trades would be right on the connection opening and closing as well. The option trades however, should be well within the time the API connection was live unless it took a long time for an order to get filled completely (which often happened with option orders due to illiquidity of those equities).

What comes to mind is that both of these apparent "manual" trades happened near the beginning of the competition when I was working out bugs and spending more time on the code. So I definitely was starting and stopping my code more frequently as problems arose. Later on, in Feb and March, I made fewer changes to my code and mostly left my code running for longer periods of time.

Hope this helps, if you're inclined I would very much be interested in knowing what it was that happened when this gets resolved.

Thanks,
Hunter"

Did anyone else get a message from IB like this? I guess my response was sufficient because I ended up placing.

For some reason this picutre makes me think of the US financial system...