My own strategy, Wealth-Lab for backtesting?
Author: Braddpitt69
Creation Date: 12/16/2009 9:01 AM
profile picture

Braddpitt69

#1
I have my own trading strategy system. It outputs opportunities every night for the next day:
5/2/2009 LONG MSFT at 45.55
5/2/2009 SHORT AAPL at 38.29
These aren't real numbers, I made them up - my system chooses opportunities from a basket of a few thousand stocks and any given day can have 1 or more opportunities. I have historical opportunities going back a few years.

I need to convert these opportunities into trades so I can evaluate the resulting portfolio. The issue is that there are rules (most standard) that govern the trade. For example, if MSFT gaps up I want to just ignore the opportunity because I can't get into the trade. Also, I want to exit trades with stop-losses. I want standard portfolio-level drawdown stops, etc. etc. Basically I want to apply a set of portfolio/entry/exit rules to my own proprietary opportunities and have the system tell me which trades would have been taken, and what the resulting portfolio would achieve after some time.

Is this possible?
profile picture

Eugene

#2
You can import historical trades (signals) from a file to visualize using the following helper from Community.Components:

Import real (historical) trades

With this solution, you could backtest the signals as if they were natively generated by a Wealth-Lab 5 Strategy.

Your request, however, is slightly different as your trading signal source delivers just a part of the equation - i.e. only theoretical entry signals. Anyway, it should be possible to import them from your source in a Wealth-Lab strategy, and then filter out gaps, add the exit signals and so on by applying some modification to our method.

P.S. What are the "standard" portfolio-level drawdown stops?
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).