- Joined
- 14 April 2007
- Posts
- 317
- Reactions
- 0
"In sample" means historical data yeh? Whereas "out of sample" means forward testing?
Just trying to clear up a few of these definitions.
I do not want to sidetrack your thread, but to point out that the AmiBroker trading system platform handles that situation in a deterministic manner and avoids the need for Monte Carlo techniques in this circumstance.
From what I've seen, that wild idea has been used many times by many people for quite some time.Regarding the position score attribute in Amibroker...here is a wild idea...would it not be possible to randomise this through various iterations of a backtest and essentially simulate the Monte Carlo testing that TradeSim does...using optimisation of a dummy variable to generate each simulated portfolio?
However, IMHO, it may not provide a great deal of randomisation if there are not a large number of buy signals. PositionScore only determines the entry when there are multiple possibilities at a single bar, and if a trading system doesn't generate a lot of signals, having multiple at a single bar may be fairly rare. In that case, the variation in portfolios between backtests may be small, or due to the nature of the system, certain trades may always be taken, skewing the results if those trades generate large profits or losses.
My question, specifically is, can/does Monte Carlo testing shuffle the chronological ordering of trades? If you were testing on the last 10 years of data, can a Monte Carlo simulation string together trades that were from 2001, then 1999, then 2007, then 2004?
No. Is there a purpose of this sort of simulation?
It would be utterly useless.
Comparing a ranking strategy against taking random signals could give some insight into the performance of the ranking strategy. Where does the ranking strategy sit in terms of the distribution of possible outcomes without the rankinig strategy? How sensitive is it to minor changes? What happens if you hardcode into the buy signal that stocks from M to Z are ignored etc
Ranking gives one path out of the thousands generated in a Monte Carlo. Potentially a bit like getting an infinite number of monkeys, giving them all typewriters and getting one to write poetry.
elbee said:As I understand it (I have not used the software), the Monte Carlo function in TradeSim is to overcome a deficiency in MetaStock where it is not easy to specify which trades to take when there are multiple opportunities.
As Howard has pointed out this is overcome in Amibroker with the positionscore function.
However, IMHO, it may not provide a great deal of randomisation if there are not a large number of buy signals. PositionScore only determines the entry when there are multiple possibilities at a single bar, and if a trading system doesn't generate a lot of signals, having multiple at a single bar may be fairly rare. In that case, the variation in portfolios between backtests may be small, or due to the nature of the system, certain trades may always be taken, skewing the results if those trades generate large profits or losses.
GP
Stevo has explained monte carlo analysis and its purpose quite succintly here.
Yeah i know...I still can't stop thinking to myself, "that's all it is???".
As I've said, for a system that doesn't have that many situations where the ranking mechanism (position score) kicks in, I think that randomly ignoring a proportion of trades would be a more effective way of backtesting alternate paths.
Yeah i know...I still can't stop thinking to myself, "that's all it is???".
As I've said, for a system that doesn't have that many situations where the ranking mechanism (position score) kicks in, I think that randomly ignoring a proportion of trades would be a more effective way of backtesting alternate paths.
Unfortunately I find it hard to explain Monte Carlo from a Metastock/Tradesim perspective, to those that have never used the tool/combination (Metastock could be replaced with another package if that package is able to produce the required output, such as Amibroker).
I have seen some posts on competitive product mailing lists, to Metastock, where Tradesim sadly gets dismissed as a tool for making up for Metastock's system testing short comings. Its usefulness as a portfolio backtester, is just the tip of the iceberg.
For developing "portfolio based" stock trading systems, where there could be multiple buys signals, and there is some need to exclude trades due to position sizing constraints (that is Monte Carlo), this is a fantastic analysis tool.
By brute forcing the multiple possible combinations, it can show the range of potential outcomes, by summarizing the range of different possible paths constrained within the money management rules.
Another cool feature of Tradesim, is the easy ability to deselect any trade from the result, to remove outliners.
Positionscore while cool, does not easily allow one to remove the outliner effect.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?