I've only had Amibroker for about a month and have found it priceless in developing and testing trading strategies. The one down fall that I have found is that you cannot do any form of Monte Carlo backtesting. To date I have been setting my positionscore to random, running numerous back tests, logging the data in an excel spreadsheet and comparing results. this has been very time consuming.
I think I have found a simple way to do some pretty good Monte Carlo back testing in Amibroker, I caveat this info with the following:
1. Like I said, I have only had Amibroker for a month so am no expert.
2. I may be re-inventing the wheel but I didn't know that you could do this so thought i'd post it to help others like myself that are new to Amibroker
3. There have been posts on this before but this seems to be a simpler way to do it than I have seen before.
4. I've never seen Monte Carlo testing before so this may not give you all of the bells and whistles of full up Monte Carlo testing.
Anyways here it is:
Write this line of code into the top of your formula:
PS=Optimize("Postion Score",1,1,y,1);
PositionScore = Random()*PS;
Where y is equal to the number of Monte Carlo tests you want to run. I.e if you want to simulate 1000 set of trades enter 1000 etc.
Now hit the analysis button and instead of clicking on Back test click on Optimize, this will give you the results of all the tests. You can copy this into excel and create graphs etc.
Harro
I think I have found a simple way to do some pretty good Monte Carlo back testing in Amibroker, I caveat this info with the following:
1. Like I said, I have only had Amibroker for a month so am no expert.
2. I may be re-inventing the wheel but I didn't know that you could do this so thought i'd post it to help others like myself that are new to Amibroker
3. There have been posts on this before but this seems to be a simpler way to do it than I have seen before.
4. I've never seen Monte Carlo testing before so this may not give you all of the bells and whistles of full up Monte Carlo testing.
Anyways here it is:
Write this line of code into the top of your formula:
PS=Optimize("Postion Score",1,1,y,1);
PositionScore = Random()*PS;
Where y is equal to the number of Monte Carlo tests you want to run. I.e if you want to simulate 1000 set of trades enter 1000 etc.
Now hit the analysis button and instead of clicking on Back test click on Optimize, this will give you the results of all the tests. You can copy this into excel and create graphs etc.
Harro