Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I've been using the Portfolio Backtesting features of MultiCharts, and I'm liking it quite a bit. However, it's limited in that it can only backtest 100 symbols at a time. Also, sometimes I feel like I'm throwing spaghetti at the wall to see what sticks -- I'm following recommended strategies based on "conventional wisdom" from technical analysis books, many of which seem to be completely useless, and optimizing lots of parameters to see what works (with the risk of curve fitting).
I'm looking for something a bit different, namely software to do some "what if" statistical analysis of strategies across a broader universe of symbols (e.g., all of the symbols on the NYSE). I'd like to be able to test certain strategies or patterns to see if they correlate with a positive outcome. This seems to be somewhat different than backtesting -- I don't want to know how much money I would have made or lost on a particular strategy, but instead the statistical correlation between a certain event and a certain outcome.
E.g., what if I go long when the 3 SMA crosses over the 9 SMA on daily bars and the price is above the 200 SMA? Or, what if I go short 30 minutes after the market open on a gap down day, and close at the end of the day? I'd like to know in either case how often, on a percentage basis, the price rises or falls after a certain period on a percentage basis, and the degree of correlation.
I could probably hack together something in Excel, but I'm hoping that I don't have to reinvent the wheel. I also know about more sophisticated software like Matlab and R, but from what little I know, they seem both quite complicated and rather "general purpose" -- I'd prefer to use something that's more geared towards technical analysis of financial markets, and I don't have a statistics background.
Does software like this exist? Many thanks in advance.
Can you help answer these questions from other members on NexusFi?
They will let you find patterns within predefined risk parameters, and that might be a good starting point for building a system. I assume MATLAB would be the best for your needs, but others can probably answer that better than me. I am not a strong coder, and I've found CQG IC to be sufficient for my simple backtests. The language is relatively intuitive, and the optimization is pretty good too.
you can look at tradingblox builder.. it might fit your needs, they have a 10 day trial/demo.. you can also look at CQGIC backtester and signal evaluator, it might meet your needs as well.. and they have some rather great features that will even allow you to implement the ideas you test succesfully... you can get a 2 week trial...
you are already aware of matlab and R, so I wont bother mention them ... but they are usually one of the best tool for those statistically inclined that can code.
Where I don't want want to reinvent the wheel (or spend too much money) is on the tick database and a code library that can build time series from those ticks, and has most of the TA functions built in. For an off-the-shelf system that has that functionality I use Ninja Trader. But wait...
I'm not using it on its own.
I code my trade ideas to output data that can be exported to Excel/R/Matlab and do analysis outside of Ninja, so I am primarily using Ninja for its database, code functions, and ability to interface with a variety of data providers.
One of my primary tools I share here in the downloads section. Its a Ninja Strategy called ExportData. Take a look at this code snippet:
That basically opens up in an Excel spreadsheet with four columns... DateTime, Closing Price and a Column each for GoLong or GoShort where a 1 or 0 represent a true/false bool state of the trade logic, which in this case is a 7/14 EMA cross.
I can use Ninja itself to manage the data and aggregate ticks into bars of varying periodcity.
The possibilities of what can be tested in this way is limited only by your imagination and coding skills. I've coded things to look at running PnL on portfolios so I can watch daily VAR, for example.
The free Statistics add-in to Excel is a good place to start if you wanted to look at things such as the Gap idea you mentioned. You would need to be able to express that idea in C#, probably with a bool variable output that indicates a winning or non-winning trade and a PnL. As you progress you may find you prefer to do some simple things in R or Matlab because they are better than Excel for certain things... but again using Ninja and its database as source of data.
The other thing Ninja is good for is static data management. Again something I don't necessarily want to build myself. Instrument Manager and Instrument Lists are very handy for this type of work. You could run your script against the S&P500, or if you have it, a list of everything traded at the NYSE.
For a free product (if you are not trading through it) Ninja is pretty cool. R is also free, and if you don't have Excel, OpenOffice is free. Where I spend money is on data. I'm an IQFeed subscriber.
I liked your comment:
You are on the right path if you are testing and debunking things. This may come out the wrong way... but if you start with the idea that nothing works and you continue to test ideas to confirm that thesis, you might be pleasantly surprised one day and will have saved yourself some money and grief in the process.
I think Trade Ideas is exactly for what you are talking about if you dont want to get into much code. Trade-Ideas.com - Real-Time Stock Scanner and Market Alerts
Brett Steenbarger use to talk about it alot in his blog but I've never tried it.
It is in real time though and I think they supply the data so it is not the cheapest.
I think you could also do something crude in ninja, backtesting a strategy on a list of instruments and spitting out the % stuff to the output window.
I've tried that, and a new one not quite ready for prime time here: QuoteCore - Home.
But it is not just the raw market data I use. There are some useful event-driven methods in Ninja (and most trading platforms) that greatly reduce time-to-market for a trade idea. So I run ExportData not just to export data, but to run an ETL process on the data that does things the built-in backtesting engine can't do.
TIPro with OddsMaker is a good way to get quick results... I have to agree... a bit limited, but you can scan through a universe of stocks with a simple idea rather quickly and backtest that idea.
Thanks everyone for the great suggestions. The Odds Maker looks close to what I"m looking for, although it also doesn't seem to be as robust as I'd like in terms of entry and exit conditions.
The suggestions with NinjaTrader sound like a great idea. One downside with MultiCharts is that their backtesting module is limited to 100 symbols at the present (they're promising to expand that soon...), so I can't do a scan of a broad portfolio with hundreds or thousands of symbols. If NinjaTrader can do that, then that might be the ticket. I'll give it a try.