Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

help me understand the Position object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help me understand the Position object

    Hello,

    I am trying to code a trading robot in ninjascript instead of using NTDLL with eSignal EFS. Can someone help me understand the Position object? In case of a strategy instance is running on one instrument, is it the net position ( number of contracts ) of the primary instrument? What if two strategy instances trade on same instrument at the same time? Would they be aware of the position taken by each other?

    - Clearpicks

    #2
    Hello,

    Thanks for your forum post.

    If this is a single strategy that is a multi instrument strategy you would need to use the below.

    Positions instead of Position



    Position only outputs the current strategy position and is not aware of the account position or other strategies positions. Just its own strategy position.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Brett,

      Thank you for replying. Is there a way to retrieve the account position?

      - Clearpicks

      Comment


        #4
        Hello,

        Unfortunately not. Only account information available are below:



        Let me know if I can be of further assistance.
        BrettNinjaTrader Product Management

        Comment


          #5
          Hello,

          The link in your post points to this thread itself. Could you fix it? Thanks.

          - Clearpicks

          Comment


            #6
            Sure,

            Here is it again:

            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            105 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            53 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            35 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            38 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            74 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X