In this week’s episode of Trading Talk, we introduce a powerful function from our Code Snippets library — the Account-Based Lot Size function.
This feature allows your trade size to automatically scale as your account grows, helping you apply structured compounding to your trading models. Rather than manually adjusting position size, this function dynamically increases exposure based on account performance.
We compare a base model against a scaled version to demonstrate how this impacts returns and drawdown. While the scaled model increases overall returns, it also highlights the importance of managing risk when increasing trade size.
This is a practical tool that many traders have requested — and it opens the door to more advanced position sizing strategies inside your models.
Key Points
- Demonstration of Account-Based Lot Size function
- Comparison between fixed lot and scaled lot models
- Understanding how compounding impacts performance
- Structured approach to increasing trade size
- Integration within Trade View X Code Snippets
Related Tools & Resources


