Sorry for the delay in replying about automating the system (public holiday here in Victoria, Australia).
I am automating the entries, not the entire strategy. The U.S trading day runs from 01.30am to 8.00am currently (due to daylight savings), so I can see the end of the day, but not the open. Unfortunately, I have realised that the bulk of the moves have occurred by the end of the trading day.
To do this, I create a watchlist of stocks in dry up prior to the days open. I use all 5 methods of dry up outlined in Journal 1, since no 'best' method was identified.
I actually scan the past 3 days for dry up and include those stocks where it appears to be only 'just' out of dry up, i.e. the volume in the most recent day was not appreciable larger than the dry up volumes and price hasn't done a great deal.
Once I have this watch list, I then use Amibroker to monitor the 30 min stochastic & MACD as per the hershey calculations on 1 minute bars.
Because my intraday history is less than 65 days, I am using some different calculations for the intraday dry up volume. I am using the previous days volume as the DU Volume. My reasoning is that a dry up day's volume equates to DU Volume. If the stock has reached 50% of the previous days volume by 12.00pm, I automatically enter a trade. A 2% stop loss and 10% profit target are automatically entered via an IB bracket order.
A chart of an order appears below. For ease of reading, the timeframe is set to 5 minute, not 1 minute.
<a href="http://imageshack.us"><img src="http://img131.imageshack.us/img131/3110/growexample3nh.png" border="0" width="734" alt="Image Hosted by ImageShack.us" /></a>
The top two windows are the MACD & Stochastics. The main window has the buy price and stop loss plotted as horizontal lines, once the buy has been triggered. You can also just see the profit target as a green line near the top of the price window.
The bottom window is the cumulative volume. The horizontal dashed line is 50% of the previous days volume (i.e. Dry Up). The vertical dashed line is the cut off time for volume to reach this level. If DU is exceeded prior to the cut off time, all subsequent bars are painted red. The green horizontal line is the FRV threshold, which I currently have set as 200% of DU Volume. If FRV is exceeded, bars are painted green.
As you can see, FRV wasn't reached, so as per the rules below, I'd be exiting on open tomorrow (which I would do automatically as well).
Once I'm in a trade, I apply the following rules.
i) If FRV not reached, exit next day on open (within 5 minutes).
ii) If FRV reached, move stop loss to breakeven at EOD if price is above entry price. I'd rather take a wash and lose profit, than take a loss.
iii) Exit via sell limit if 10% hit.
iv) Exit after 4 days at EOD if none of the above conditions are met.
The attached spreadsheet provides an overview of the trades taken using this method for the past month.
Not all of these have been auto traded (and I am only running this on an IB PaperTrader account until I am ABSOLUTELY sure it works), but I checked each trade on a bar by bar basis, which meant some nice trades were not taken or stopped out. Such is life.
Position size is automatically calculated based on current equity and a 2% risk. Position sizes are rounded down to round lots, e.g. 270 stocks becomes an order for 200.
This is very much a work in progress, so any feedback would be greatly appreciated. If anyone wants the AFL (Amibroker files), let me know but be warned that since I'm constantly tinkering, the code isn't that clean.