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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
51 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
142 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
160 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
96 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
275 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment