NexusFi: Find Your Edge


Home Menu

 





Monte Carlo and Position sizing


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two brakkar with 1 posts (0 thanks)
    3. looks_3 numberjuani with 1 posts (0 thanks)
    4. looks_4 sixtyseven with 1 posts (1 thanks)
    1. trending_up 1,520 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Monte Carlo and Position sizing

  #1 (permalink)
 brakkar 
Paris + France
 
Experience: Advanced
Platform: SierraChart
Trading: NQ
Posts: 69 since Feb 2014
Thanks Given: 30
Thanks Received: 39

Hi,
I have troubles understanding Monte Carlo simulation value in the context of a position sized list of backtested trades but maybe my understanding is wrong.

On a single contract sequence list of trades with no position sizing, I can see how Monte Carlo shuffling of the trades helps determine system boundaries (max loss / wins etc etc...).

But on a position sized sample of trades how can this be accurate at all?
Let's say first trade of a position sized sequence is 1 contract with $10 gain, and last trade 100 contract with $1000 loss.

If Monte Carlo, as practiced by most plateforms shuffles trades and happens to put last trade of $1000 first it will creates an unrealistic, huge drawdown on that simulated sequence (because $1000 loss is based on 100 contracts which never happen at start of a backtest sequence).

Am I missing something? How to deal with this?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #3 (permalink)
 
Hulk's Avatar
 Hulk 
Texas, USA
 
Experience: Advanced
Platform: TT, Custom
Trading: Futures, Spreads
Posts: 369 since May 2014
Thanks Given: 731
Thanks Received: 901



brakkar View Post
Hi,
I have troubles understanding Monte Carlo simulation value in the context of a position sized list of backtested trades but maybe my understanding is wrong.

On a single contract sequence list of trades with no position sizing, I can see how Monte Carlo shuffling of the trades helps determine system boundaries (max loss / wins etc etc...).

But on a position sized sample of trades how can this be accurate at all?
Let's say first trade of a position sized sequence is 1 contract with $10 gain, and last trade 100 contract with $1000 loss.

If Monte Carlo, as practiced by most plateforms shuffles trades and happens to put last trade of $1000 first it will creates an unrealistic, huge drawdown on that simulated sequence (because $1000 loss is based on 100 contracts which never happen at start of a backtest sequence).

Am I missing something? How to deal with this?

I am not a math guy at all but I have learnt enough to put it to practical use so I will answer from that point of view - not from a strict math point of view.

Also want to point out that I do not use a commercial platform, I built my own. I have used commercial platforms but that was a few years ago so I cannot relate much to any platform specific things you refer to.

My understanding is that the purpose of applying monte carlo simulation to your backtest results is to make your backtest more realistic by random shuffling, exclusions and doubling. It tries to mimic your sick days, when you could not trade or days when you make a mistake and buy 10 instead of 1 etc etc.

From that point of view, even with a backtest that does not have a consistent trade size, it can be considered to do what it is supposed to do - make the backtest more realistic.

Also, I have kept position sizing a separate calculation. Not part of the backtest. Backtest only tests the legitimacy of a strategy. Various factors such as volatility, liquidity (time of day) etc determine position size. And especially if you are trading a basket of securities.

I dont know if this helps, but thats all I got.

Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 sixtyseven 
Golden Bay, New Zealand
 
Experience: Beginner
Platform: Sierra Chart
Trading: ES, NQ
Posts: 186 since May 2012
Thanks Given: 851
Thanks Received: 337

Position size is a function of volatility, and account size = $risk per trade. If you are use Excel to create a monte carlo use the raw input of stop loss and target, and then formulate it so position size is based on the current simulated account size for that trial.

So that last trade of 100 contracts may end up as the first in one of the simulations with a position size of 1, and a loss of $10. It may have had a SL of 5 points in the backtest, and so continues to have a SL of 5 points, but will have all sorts of position size associated with it, based on the sequence it's selected. If you don't have the SL associated with each trade, then you should have a risk per trade, so you'll have to go through and figure out how many points that equated to in the back test results.

Once you have the points risk for each trade you can size up each sequential trade in the simulation based on the current account size.

Reply With Quote
Thanked by:
  #5 (permalink)
 
numberjuani's Avatar
 numberjuani 
Agoura Hills, CA USA
 
Experience: Advanced
Platform: Tradestation&Multicharts
Broker: TradeStation
Trading: Futures & Equities
Posts: 128 since Apr 2019
Thanks Given: 9
Thanks Received: 102


brakkar View Post
Hi,
I have troubles understanding Monte Carlo simulation value in the context of a position sized list of backtested trades but maybe my understanding is wrong.

On a single contract sequence list of trades with no position sizing, I can see how Monte Carlo shuffling of the trades helps determine system boundaries (max loss / wins etc etc...).

But on a position sized sample of trades how can this be accurate at all?
Let's say first trade of a position sized sequence is 1 contract with $10 gain, and last trade 100 contract with $1000 loss.

If Monte Carlo, as practiced by most plateforms shuffles trades and happens to put last trade of $1000 first it will creates an unrealistic, huge drawdown on that simulated sequence (because $1000 loss is based on 100 contracts which never happen at start of a backtest sequence).

Am I missing something? How to deal with this?

You make a great point.
I think the beauty of MonteCarlo is that running it without position size, will tell you how much profit you need before you can safely increase your position size. For example, if your strategy needs 25K to trade with the risk of ruin you desire, then youre gonna need 25K of profit before you add that second contract, and wont need to run another MC. but if you do run it, then it would be with 2 contracts and 50K initial balance. Given the way MC works I dont think its accurate if you include your position size.

Reply With Quote




Last Updated on August 14, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts