Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Position.Quantity
Collapse
X
-
Hello scottd77,
Thank you for your post and welcome to the NinjaTrader Support Forum!
Are you looking to do this in NinjaTrader 7 or 8? Are you looking for a specific strategy's position or the account position?Originally posted by scottd77 View PostIs it possible to plot the current position size held? I've tried AddPlot() using the Position.Quantity, but have not been able to find the proper sequence.
I look forward to your response.
Comment
-
Thanks Patrick. I've taken the code example and played around with it a bit to try and get the total number of contracts i'm net short/long for the strategy, While i now can get a plot line, it's just a zero horizontal line and it doesn't pickup when i see in simulation where the strategy has bought or sold a contract.
Comment
-
Hello scottd77,
Thank you for your response.
Can you attach your strategy to your response so we may investigate further?
If you prefer you can send it to platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H - 1506626' in the subject line.
Strategy file will be under Documents\NinjaTrader 8\bin\Custom\Strategies on your PC.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
574 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
333 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment