Welcome to the Traders Laboratory Forums.
Automated Trading Black box systems, strategy automation, algorithmic trading, etc...

Reply
Old 05-10-2009, 12:22 PM   #1

Join Date: Apr 2009
Location: Pittsburgh
Posts: 6
Ignore this user

Thanks: 0
Thanked 2 Times in 1 Post

Backtesting Morning Range Breakout Using Excel VBA

I am looking for someone to help me code in Excel VBA a morning range breakout study. I have 7 years of 5 minute SPX data I bought to emulate the ES. I started some code but it is getting beyond my programming ability.

My thoughts were to measure the range of 10,30,60, etc minutes after 9:30 EST. Then to get the maximum proft and loss based on a breakout of that range.
Then see what the chances of getting X points per day would be over 7 years and look at the expectancy.

Is anyone interested in this that can code VBA?
pmsinc is offline  
Reply With Quote
Old 05-10-2009, 12:52 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

it would be easier to download the free Ninjatrader and let the wizard to do it for you.

or, if you are serious about trading and backtesting,
get MultiCharts.

Last edited by Tams; 05-10-2009 at 01:16 PM.
Tams is offline  
Reply With Quote
Old 05-11-2009, 05:11 AM   #3

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

Years since I used excel with that caveat does it actually need programming? Can't you do it using cell formulas and queries? Tams suggestion is probably your best bet but it means learning how to use another bit of software.
BlowFish is offline  
Reply With Quote
Old 06-06-2009, 06:28 AM   #4

Harlequin's Avatar

Join Date: Apr 2008
Location: London
Posts: 77
Ignore this user

Thanks: 23
Thanked 15 Times in 11 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

Quote:
Originally Posted by Tams »
it would be easier to download the free Ninjatrader and let the wizard to do it for you.

or, if you are serious about trading and backtesting,
get MultiCharts.
Does anyone have EL code for opening range breakout that works in MultiCharts? I couldn't find anything with Google but it feels like reinventing the wheel writing it from scratch.
Harlequin is offline  
Reply With Quote
Old 06-06-2009, 09:06 AM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

Quote:
Originally Posted by Harlequin »
Does anyone have EL code for opening range breakout that works in MultiCharts? I couldn't find anything with Google but it feels like reinventing the wheel writing it from scratch.


Coding it in EasyLanguage is not that difficult.

If you can articulate your thought/logic in English, you can code it in EasyLanguage.

I use the following process:
1. Write out one thought at a time,
2. Write out one action at a time,
3. Write out one action per sentence,
4. Write out one sentence per line.

in no time you will have your strategy coded in EasyLanguage.
Tams is offline  
Reply With Quote
Old 06-16-2009, 06:46 AM   #6

Join Date: Jun 2009
Location: Chicago
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

Hi,
I'm a new member and I'm pretty proficient with excel/vba. I worked as a front-end developer for a proprietary options trading firm and they used excel as the client so I've done a fair amount of coding using vba...it's been about a year since I've fooled around w/ excel. I've been using C# but I wouldn't mind brushing on my vba skills... if you still need help give me a reply and I'll see what I can do.
d.allen101 is offline  
Reply With Quote
Old 06-25-2009, 05:33 PM   #7

Join Date: Jun 2009
Location: Seattle
Posts: 3
Ignore this user

Thanks: 0
Thanked 2 Times in 2 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

If you are still interested in testing this (I see your post is 1 month old), I can run a basic test in about 15 minutes using tradestation.

Regards
CarbonElemental is offline  
Reply With Quote
Old 06-25-2009, 05:36 PM   #8

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Backtesting Morning Range Breakout Using Excel VBA

yes pls do...... ......
Tams is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you determine a breakout from a false breakout? Blaze Technical Analysis 45 01-16-2009 10:23 AM
Opening Range Breakout by Don Bright metotron Technical Analysis 2 10-24-2008 12:31 PM
SPY Opening Range Volume Vs Days Range darthtrader Technical Analysis 3 04-17-2008 10:54 AM
[Range Breakout Failures] Soultrader Trading Videos 6 02-08-2007 05:03 AM
Playing morning range breakdowns Soultrader E-mini Futures Trading Laboratory 0 08-07-2006 11:48 PM

All times are GMT -4. The time now is 09:18 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.