View Single Post
Old 02-13-2018, 12:48 PM   #2
NinjaTrader Customer Service
NinjaTrader_Jesse's Avatar
Join Date: Mar 2014
Location: Denver, CO
Posts: 5,065
Thanks: 30
Thanked 1,291 times in 1,209 posts


Thank you for the post.

Using the Positions collections specifically I don't believe this would be possible. The Position object does not contain the executions that created that position.

Using the executions collection you could get the Name and other information of the execution to calculate a position from the various executions.

foreach(NinjaTrader.Cbi.Execution execution in account.Executions)

I look forward to being of further assistance.
NinjaTrader_Jesse is offline  
Reply With Quote