how to backtest equities

This is a discussion on how to backtest equities within the US Indices forums, part of the Indices category; I'm using interactive brokers and thinkorswim demos, and am looking for guidance on how to backtest a strategy, over either ...

Reply
 
LinkBack Thread Tools
Member
 
johnlvs2run's Avatar
 
Join Date: Nov 2008
Location: California
Posts: 79
johnlvs2run's Trading Profile
how to backtest equities

I'm using interactive brokers and thinkorswim demos, and am looking for guidance on how to backtest a strategy, over either 10 days or a month, then to tweak the strategy and test it again. Below is part of a chat with a tos rep today.
Quote:
me: is there a faq for doing back testing for equities - i have seen the option thinkback video and it's not much help for equities - how do i find how to test a strategy for equities - not options

tos: backtesting is simply a compilation of historical prices
tos: use a chart
tos: for an equity

me: backtest with a chart?

tos: you want to backtest an equity?

me: yes
me: to backtest a strategy for equities
me: is there a way to do this?

tos: find out when your startegy would have triggered, get a price from the charts, see what happens

me: what i mean is to plug in a strategy and have it backtest
me: for example... for the month of november 2008

tos: what strategy/
tos: ?

me: for example... buying at 11am with a 3% trailing stop

tos: then go to a chart, create the position
tos: and analyze with the data

me: analyze it with the chart?

tos: that is the data
tos: how else would you analyze it?

me: to have it run and see what the results would be
me: wins/losses... gains etc

tos: do you understand that back testing consists of testing results with historical data? A chart is simply historical data

me: yes
me: to test the strategy with historical data
me: with entry and exit points to get gains... wins/losses etc

tos: it's all in the chart

me: ok... is there a guide for how to do that
me: or just play around with it

tos: I guess you just play around with it
tos: stockcharts.com
tos: or prophet.net for charting info
I've since looked entirely through the prophet section of tos, and didn't see anything there about backtesting a stock. It would be much appreciated if someone could provide some direction on how to backtest with either tos demo, ib trader workstation demo or something else that is relatively easy to use. Thanks.
johnlvs2run is offline   Reply With Quote
Content Manager
The Staff are paid members employed by T2W to perform some specific role such as editorial, advertising or technical work.
 
timsk's Avatar
 
Join Date: Mar 2002
Posts: 2,053
Hi John,
It appears from the transcript that the TOS rep' is just referring to a manual backtest whereby you eyeball a chart to see what price does following the set up / strategy that you're testing. The charting facilities offered by many brokers tends to be rather basic and may not support the sort of mechanical backtesting facility that you seek.This is more likely to be provided by vendors of bespoke charting software - such as eSignal or Tradestation. You would only need this if you're looking to backtest over a very long period and / or your strategy produces too many trades to make it impractical to backtest manually. If you are a discretionary trader, then this ought not to be necessary and a manual backtest along the lines that the TOS rep' describes should be more than sufficient. However, if you're a mechanical trader wanting to go down an automated 'black box' route, then you may need a programmer or, if you have a head for computers and technology, learn how to do it yourself. Rather you than me is all I can say! Good luck.
Tim.
__________________
Great traders and great comedians share a common skill that underpins their success: they're both experts at TIMING.
timsk is offline   Reply With Quote
Thanks! The post above is recommended by: johnlvs2run
Member
 
johnlvs2run's Avatar
 
Join Date: Nov 2008
Location: California
Posts: 79
johnlvs2run's Trading Profile
johnlvs2run started this thread Hi Tim,
Thanks for your reply.
The manual testing sounds like what I am looking for.
Is the eyeball method the best way to go about doing this?

So far what I've done is pasted daily ranges in a spreadsheet, but this leaves a lot
to be desired, compared to the realtime movements of an equity. It would be more
helpful to see where stops would be or would not be removed, prior to testing with cash.

Any other suggestions for testing a strategy?
johnlvs2run is offline   Reply With Quote
Veteran Member
 
Join Date: Nov 2007
Posts: 579
rawrschach's Trading Profile
Forex Factory - View Single Post - james16 Chart Thread

Try this, for metatrader.
rawrschach is offline   Reply With Quote
Thanks! The post above is recommended by: johnlvs2run
Member
 
johnlvs2run's Avatar
 
Join Date: Nov 2008
Location: California
Posts: 79
johnlvs2run's Trading Profile
charts in thinkorswim

johnlvs2run started this thread Could someone provide guidance if the following in thinkorswim can be used to test or use a basic strategy?
thinkorswim demo > charts > studies > edit strategies > new strategy

large box to the left
Quote:
declare long_entry;
upper box to the right
Quote:
functions
tech analysis
mathematical
look & feel
constants
declarations
each of the above has numerous choices underneath, for example mathematical
Quote:
absvalue
acos
asin
average
between
ceil
cos
if
isnan ..... etc
lower box to the right
Quote:
absvalue(double value)

returns the absolute value of a value .... etc

usage in:
trix; swingindex; accumulationswingindex; .... etc
Suggestions are much appreciated.
johnlvs2run is offline   Reply With Quote
Newbie
 
Join Date: Aug 2008
Posts: 1
If you want to backtest your strategies in thinkorswim platform, plot the strategy on the chart then right click on it, choose "Shoe Report" and voila
malabeba is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
first step in backtest sandrax First Steps 2 Aug 21, 2008 1:07pm
Can anyone backtest this system ? nkruger Free Systems 15 Jul 9, 2008 8:25am
IG Index Backtest croker Spread Betting 8 Jul 7, 2008 1:03pm
Backtest help! lote_tree Day Trading & Scalping 13 Jul 29, 2007 1:34pm
How to backtest hlpsg Mechanical & Systems Trading 9 Mar 16, 2004 8:52am


New To Site? Need Help?


All times are GMT -4. The time now is 6:12am.


Copyright © 2001-2009 Trade2Win Ltd