NexusFi: Find Your Edge


Home Menu

 





Contract size calculator (position size)


Discussion in MultiCharts

Updated
    1. trending_up 565 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 101 since May 2019
Thanks Given: 8
Thanks Received: 12

I have a strategy that I'm building and am having a bear of a time trying to calculate contract sizes. I don't want a simple trade 5 contracts every time. I want to start with a base amount (say 1) and then if the strategy fails and falls behind, it will calculate the next position size to catch up. The biggest challenge I'm having is when the position is about to reverse and am trying to figure out the existing P&L to combine with the current closed acct value. This is fairly easy with backtesting, but not so much with live account. Does anyone have one they put together and is using successfully?

Thanks in advance.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,581 since Oct 2009
Thanks Given: 4,267
Thanks Received: 6,208

Use chatGPT and use this prompt:
 
Code
Prompt:
I’m building a dynamic futures trading strategy in Excel where position size adjusts to recover from drawdowns. I don’t want to trade a fixed number of contracts — I want to start with a base amount (e.g. 1 contract), and if the strategy loses or falls behind a target, the next trade size should increase to catch up.

The hardest part is handling reversals — I need to calculate the current open P&L, combine it with the account equity, and then size the next trade correctly.

Please explain how to model this in Excel step by step, including how to track realized and unrealized P&L, define a target equity curve, calculate the deficit, and compute the next position size. Also explain how to use Goal Seek to find the next contract size that brings the equity back to target.

Then create a simple working Excel template (with sample data and formulas) that implements this logic and automatically updates the next contract size as trades close.


Reply With Quote
  #3 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 101 since May 2019
Thanks Given: 8
Thanks Received: 12



trendisyourfriend View Post
Use chatGPT and use this prompt:
 
Code
Prompt:
I’m building a dynamic futures trading strategy in Excel where position size adjusts to recover from drawdowns. I don’t want to trade a fixed number of contracts — I want to start with a base amount (e.g. 1 contract), and if the strategy loses or falls behind a target, the next trade size should increase to catch up.

The hardest part is handling reversals — I need to calculate the current open P&L, combine it with the account equity, and then size the next trade correctly.

Please explain how to model this in Excel step by step, including how to track realized and unrealized P&L, define a target equity curve, calculate the deficit, and compute the next position size. Also explain how to use Goal Seek to find the next contract size that brings the equity back to target.

Then create a simple working Excel template (with sample data and formulas) that implements this logic and automatically updates the next contract size as trades close.

Sadly, I've been working with Chat GPT on this and it's a slow and perilous journey.


Started this thread Reply With Quote
  #4 (permalink)
selion89
New York City
 
Posts: 18 since Apr 2025
Thanks Given: 0
Thanks Received: 7

You can use a dynamic position size formula based on equity curve percentage change. I built mine in Excel linked to the broker API to auto-adjust per loss streak. Works great in live trading.


Reply With Quote




Last Updated on October 31, 2025


© 2026 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 - Downloads - Top
no new posts