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.

    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.

        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:

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by algospoke, Yesterday, 06:40 PM
            2 responses
            19 views
            0 likes
            Last Post algospoke  
            Started by ghoul, Today, 06:02 PM
            3 responses
            14 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by jeronymite, 04-12-2024, 04:26 PM
            3 responses
            44 views
            0 likes
            Last Post jeronymite  
            Started by Barry Milan, Yesterday, 10:35 PM
            7 responses
            20 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by AttiM, 02-14-2024, 05:20 PM
            10 responses
            180 views
            0 likes
            Last Post jeronymite  
            Working...
            X