- Joined
- 24 October 2005
- Posts
- 1,302
- Reactions
- 834
I don't use looping code very often so I'm not sure I can follow the structure of your code very well. What exit strategy are you trying to code?
When I run a portfolio back test I get a list of trades in the results window like it's run an individual back test. (see pic) From what I have read I should only be seeing one line in the results window with the ticker <portfolio> Is that correct? Why isn't my portfolio back test showing portfolio results? Any ideas? Thanks.
When I run a portfolio back test I get a list of trades in the results window like it's run an individual back test. (see pic) Thanks.
Right you are captain. Thank you.In the Automatic Analysis window click on Settings button. Then click on Report tab. Next to "Result list shows:" click either "Detailed log" or "Summary". I'm guessing the Results list is currently set to "Trade list".
Programmed it myself in the back tester using the AddCustomMetric functionI notice your report shows additional columns beyond "scale in/out". My column selection does not have the same beyond this such as "initial risk". Can you tell how these additional columns are arrived at please? Thanks.
I don't use looping code very often so I'm not sure I can follow the structure of your code very well. What exit strategy are you trying to code?
Just a quick question.
Wish to click on a pane within a window and send the indicator to be analysed scanned. Can it be done without having to manually go to charts tab, locate indicator and right click and select, analysis.
Cheers
Cheers Captain Black,
A fresh coffee is on its way.
Greetings --
What page of what book?
What do you need help understanding?
Thanks,
Howard
my question was rather general - what is an objective function? I understood that it is some sort of criteria that one picks as a cornerstone but that's about it..
Howard's already answered your objective function question so I wont add to that but will mention a thread on the AB user's list last year that had some great discussion regarding walk forward analysis. (follow the thread links at the bottom of the page)
http://www.mail-archive.com/amibroker@yahoogroups.com/msg44083.html
Hi Andruha --
An objective function is a metric used to allow comparison of alternatives. It is sometimes called a fitness function.
If you run several backtests for a given trading system, with each backtest being different in some way -- such as different lengths for moving averages -- the results of the tests will be different. As you look at the test statistics (compound rate of return, trading frequency, drawdown, etc), you will be able to sort the results into an order from best to worst according to your own preferences. The objective function is the formula that incorporates your preferences and computes a single numeric value for each of the alternatives. The one with the highest objective function is the one you prefer.
Quantitative Trading Systems discusses objective functions in several places, beginning with Chapter 4, page 49.
...
Thanks for listening,
Howard
One more question before I stop bothering AB gurus for sometime - assuming that I have a few "preferences" (i.e. expectancy, avg. winner, avg. loser) how does one define (in mathematical sense) an objective function (which, as per Howard explanation, is a single number encompassing all preferences)? Or does AB does it automatically and you just have to tell it which preferences you pick?
Thanks in advance
Hello and welcome to Aussie Stock Forums!
To gain full access you must register. Registration is free and takes only a few seconds to complete.
Already a member? Log in here.