Mon 7 Jul 2008
More on Trading System Monitoring and Shutdown
Posted by Ed Mamula under NarrativesI stumbled upon a remarkably simple little code module for Tradestation that showed me how to capture all of the trading system’s trade by trade profits from inception to date. I had been under the mistaken impression that this could not be done natively in TS. This is important because it allows me to quickly find the average one contract gain per trade for a system and do a statistical validation of sorts on the more recent trades. Now I can employ criteria to determine whether a system should be turned on or off, and the system itself can be coded to know when to do this.
For now, I have settled on the following two provisions: If the average trade over the last 25 trades has been profitable after slippage and commission, AND the average profit of the last 25 trades is no more than 2 standard deviations away from the average trade profit over the course of the “early” trades (N-25), then the system can be kept on. In practice, I may have to relax the first criteria, as very many times the average profit over the last 25 trades can go negative but still be within statistical norms for the system. But it’s fine for now…I always learn and tweak as I go. There’s nothing magical about the number 25, and in fact, I’ve been waffling between using 20, 25, or 30 trades. It would be nice to use at least 30 trades to have a decent sample size for a statistical test, but at the same time, this may not be practically feasible. Remember, the goal here is to shut down the system if there is reason to believe it is “broken” due to a structural change in the market, and to react quickly enough such that the account is not crippled. Of course, with any shutdown provision, there is always the chance that we will shut down too soon and miss out on the speedy recovery…speaking of which….
The Cable Glider has been performing well while I have had it shut off. Indeed, it is on a 7 trade winning streak, and has returned to a zone where the numbers say that it should be turned back on. (As I’ve mentioned in prior posts, the decision to turn it off in the first place was based more on emotion than analytics.) I have a modified version of Cable Glider ready to go as well, and I’ll need to decide which version to go live with.
The Euro Ranger system continues to perform very much in line with its historical averages, so it looks like I will be back to running two systems again.
My anti-Midas 2008 stumbling and bumbling continued as recently as last Thursday, when I erroneously had Euro Ranger turned off and missed a sizable gain. In fact, I’m now sitting on a drawdown of around 25% since March 1, which was the time that I adopted the two system, lower risk approach.
Even though the 2008 year to date results have been so poor, my systems and methodologies keep evolving and improving, and well, it’s never over as long as I remain adequately capitalized. I still tend to beat myself up mentally for the mistakes that I make, but when I put things in perspective, I’ve come a long way as a trader. Several years ago, my mistakes would be things that blew up my account. Today, my mistakes tend to be things that turn 2% drawdowns into 4% drawdowns…so it’s a step in the right direction, and in truth, that’s all I can ever hope to do…more steps in the right direction, and less damaging setbacks.