theorangedog.net

Tag: automated trading

SMS Order Confirmation

by theorangedog on Jan.24, 2008, under Skills

No posts for a few days as I have been busy working on a couple of projects, plus I’ve started studying for the CFA L2 exam. One project is relative volatility, which I’ll get to in my next post; the second is an SMS trade confirmation system. This last one has really been getting to me.

So far, I’ve been able to get the system to work as long as it is attached to a trading strategy. The code is written in EasyLanguage and therefore amateurish at best, although I did review the methods for implementing it using C++. Still, I can’t get the program to run on its own without a strategy attached. However, when it works, it is very nice: I get a text message sent to my phone in the following structure:

1035 Short 1 ESH08 at 1345.25

where 1035 is the time, in this case 10:35a exchange time.

The first response coming to anyone’s mind, I’m sure, is:

Why would you want this? And please don’t say its because you leave your computer unattended while a system runs!

Yes, I do. I constantly monitor the system and have controls as best possible in place, but at times it is unattended. As a backup, I do maintain contact via remote access, which I can connect to if necessary. Also, my computer is set with back up resources (ie power).

I will put the completed code for the messaging system up as soon as I get all of the bugs worked out. It will be featured in the Models section.

And, while I certainly don’t encourage it, if anyone else leaves moderate- to high-frequency systems unattended, I’d be interested to hear your experiences - including the horror stories.

Update: I uploaded version 1.1 of the SMS system to the Models page. The code output is dependent upon the order type, but really this version is designed for a single contract system. I will add additional versions that accommodate multiple contract/share positions as well as partial/ladder sells/buys.

Leave a Comment :, , , more...

Local Predictability

by theorangedog on Jan.16, 2008, under Skills

Inductive reasoning in trading may be the preferred method for developing systems. One reason, as argued by Doyne Farmer in Cracking Wall Street, is due to Local Predictability. The concept is based in chaos theory, and references the idea that there may be an underlying order in the short term that enables prediction of events that are not equally predictable, if at all, in the long term.

Farmer was a founder of Prediction Company, which was purchased by UBS. There is an interesting presentation Prediction Company created a few years back, titled The Business of Model Based Trading. Both the article and the attached .pdf are worth a quick read.

In the referenced article, there are a number of analogies and layman interpretations of the interaction between physics, math, and finance. Below are two passages that I enjoyed:

He likes to use a favorite example when explaining the anatomy of a prediction. “Here, catch this!” he says, tossing you a ball. You grab it. “You know how you caught that?” he asks. “By prediction.” Farmer contends you have a model in your head of how baseballs fly. You could predict the trajectory of a high fly using Newton’s classic equation f=ma, but your brain doesn’t stock up on elementary physics equations. Rather, it builds a model directly from experiential data. A baseball player watches a thousand baseballs come off a bat, and a thousand times lifts his gloved hand, and a thousand times adjusts his guess with his mitt. Without his knowing how, his brain gradually compiles a model of where the ball lands — a model almost as good as f=ma, but not as generalized. It’s based entirely on a collection of hand-eye data from past catches.

And:

While running from lions, or investing in stocks, the tiniest edge over raw luck is significant.

7 Comments :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Try Google.

Endurance

The best long distance runners eat raw meat, run naked, and sleep in the snow.