I have created a trading system using AFL coding and included the following two lines of code at the top of my program
My understanding is that this should mean the system has a maximum of 10 open positions and each position should be 9% of my equity. Firstly is this correct?
When I go into the Backtester settings in the Analysis window and go to the Monte Carlo Tab if under position sizing I select the "Don't change" radio button my red line on the MC min/Max Equity chart goes to zero in the first 10 trades. If instead I select the "Percent of Equity" radio button and insert 9 the red line increases over the testing period. Based on my AFL code I would have expected that both analysis' would have returned the same result. Which setting should I use to get the right most accurate outcome?
In addition not only is the worst case affected but the max drawdown is significantly higher and annual return significantly lower when the Don't change" radio button is selected compared to "Percent of Equity" with 9 inserted. Any help explaining what I'm doing wrong would be greatly appreciated