NexusFi: Find Your Edge


Home Menu

 





Coding money management strategies.


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one Small Dog with 14 posts (4 thanks)
    2. looks_two kevinkdog with 10 posts (4 thanks)
    3. looks_3 toucan94506bm with 3 posts (0 thanks)
    4. looks_4 SMCJB with 2 posts (6 thanks)
    1. trending_up 632 views
    2. thumb_up 14 thanks given
    3. group 7 followers
    1. forum 29 posts
    2. attach_file 0 attachments




 
Search this Thread

Coding money management strategies.

  #11 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


Small Dog View Post
For the sake of terminology we can stick to the term "position sizing". How many contracts to buy/sell. What I was referring to in my comment is that stops and exits are part of a strategy. Position sizing comes on top of that.

Agreed, I always build the strategy first, then look at position sizing on top of that.

The problem with backtesting position sizing is that if you have already developed a strategy that looks good with a single contract, you can't really pick a bunch of position sizing techniques, apply them each to that backtest, and see which would work the best.

Why not? Because applying position sizing to a strategy backtest you have already "approved" is HIGHLY misleading, since you already know the underlying backtest is good.

That is why in the Trader Challenge I did in the video I use real time (after development) data to vet position sizing approaches. Position sizing is really hard on strategies that do not work in real time.

Purely My Opinion:
To adequately test position sizing techniques, you need to take a couple hundred "approved" backtested strategies, and then run them live for a few years (3 to 5?) to see how the various position sizing approaches work on UNSEEN (after development) data.

Maybe one day I'll do that, but it is a huge project...

Follow me on Twitter Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
22 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
GFIs1 1 DAX trade per day journal
15 thanks
ApexTraderFunding.com experience and review
15 thanks
EG Indicators
11 thanks
  #12 (permalink)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 161 since Jun 2020
Thanks Given: 10
Thanks Received: 151

I am not sure I agree with that. A backtest is a backtest. What you are saying about position sizing testing is applicable to strategy testing in general. I don't see why you can't can run position sizing on in sample and out of sample data.

You can incorporate position sizing into the strategy at the start and optimize it as any other parameter.

Started this thread Reply With Quote
  #13 (permalink)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 161 since Jun 2020
Thanks Given: 10
Thanks Received: 151


One area where money management is a more applicable term is hedging, I guess. It is pretty hard to test in TradeStation.

Started this thread Reply With Quote
  #14 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


Small Dog View Post
I am not sure I agree with that.

That is fine, no worries.

Follow me on Twitter Reply With Quote
  #15 (permalink)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 161 since Jun 2020
Thanks Given: 10
Thanks Received: 151


kevinkdog View Post
That is fine, no worries.

That's it? Every communication I had with you regarding money management/position sizing ended up in a vague response on your part, similar to this. To me, personally, this comes across as arrogant. Or maybe you have a mental block as far as this topic is concerned. But then again, you don't owe me anything. My impression was this forum exists for sharing ideas and arguing about things.

Out of over two hundred videos on Youtube you have one that discusses position sizing. Very much in keeping with every other Youtube channel. This confirms my view that this area of trading is severely overlooked.

Started this thread Reply With Quote
  #16 (permalink)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 161 since Jun 2020
Thanks Given: 10
Thanks Received: 151

Another area that I have never seen coded is withdrawals from the trading account, though it changes a lot. If you summarily withdraw the amount equal or larger to the starting equity this completely negates the possibility of ruin. It also limits the number of contracts traded at any time, therefore reducing the risk. I have personal story to tell about it, though nobody seems terribly interested in the topic.

Started this thread Reply With Quote
Thanked by:
  #17 (permalink)
toucan94506bm
danville ca usa
 
Posts: 73 since Aug 2015
Thanks Given: 48
Thanks Received: 75


Small Dog View Post
Another area that I have never seen coded is withdrawals from the trading account, though it changes a lot. If you summarily withdraw the amount equal or larger to the starting equity this completely negates the possibility of ruin. It also limits the number of contracts traded at any time, therefore reducing the risk. I have personal story to tell about it, though nobody seems terribly interested in the topic.

I am interested in hearing your story

Cheers. Toucan

Reply With Quote
  #18 (permalink)
 
Small Dog's Avatar
 Small Dog 
Sydney NSW Australia
 
Experience: Intermediate
Platform: TradeStation, Oanda
Trading: Forex, index futures
Frequency: Daily
Duration: Days
Posts: 161 since Jun 2020
Thanks Given: 10
Thanks Received: 151


toucan94506bm View Post
I am interested in hearing your story

Cheers. Toucan

Some time ago I used to trade South African index futures (ALSI), and at some stage I had to draw a salary for my wife. 10k (South African Rand) every month, while my account fluctuated around 100k plus minus 20k. I withdrew 10k every month, most often when the account was up. It lasted for over a year, and the account never went below 70 - 75k.

By a simple math, my return was over 100% a year, without much drawdown. I think what happened was inadvertent anti-Martingale position sizing. By withdrawing equity after a streak of winning trades I automatically prevented increasing the number of contracts, and most of us know, winning streaks are often followed by a losing one. Also, after a year the risk of ruin was zero, as I took back all the money I put in the market in the first place.

Started this thread Reply With Quote
Thanked by:
  #19 (permalink)
 kevinkdog   is a Vendor
 
Posts: 3,666 since Jul 2012
Thanks Given: 1,892
Thanks Received: 7,360


Small Dog View Post
That's it? Every communication I had with you regarding money management/position sizing ended up in a vague response on your part, similar to this. To me, personally, this comes across as arrogant. Or maybe you have a mental block as far as this topic is concerned. But then again, you don't owe me anything. My impression was this forum exists for sharing ideas and arguing about things.

Out of over two hundred videos on Youtube you have one that discusses position sizing. Very much in keeping with every other Youtube channel. This confirms my view that this area of trading is severely overlooked.

Sorry for delay, I do not check in here much anymore.

Not sure what you are getting on about here, I don't recall any previous conversations with you (probably me forgetting). In any event, I apologize for obviously really upsetting you - which I assume is why you call me arrogant and say I have a mental block.

In any event, name calling and arguments are not somewhere I want to go.

I wish you well.

Follow me on Twitter Reply With Quote
Thanked by:
  #20 (permalink)
toucan94506bm
danville ca usa
 
Posts: 73 since Aug 2015
Thanks Given: 48
Thanks Received: 75



Small Dog View Post
Some time ago I used to trade South African index futures (ALSI), and at some stage I had to draw a salary for my wife. 10k (South African Rand) every month, while my account fluctuated around 100k plus minus 20k. I withdrew 10k every month, most often when the account was up. It lasted for over a year, and the account never went below 70 - 75k.

By a simple math, my return was over 100% a year, without much drawdown. I think what happened was inadvertent anti-Martingale position sizing. By withdrawing equity after a streak of winning trades I automatically prevented increasing the number of contracts, and most of us know, winning streaks are often followed by a losing one. Also, after a year the risk of ruin was zero, as I took back all the money I put in the market in the first place.

i withdraw any profits made last year in jan of each year.

Reply With Quote




Last Updated on April 12, 2024


© 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