Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Position Average Price Per Signal

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

    Position Average Price Per Signal

    Hi All,

    I have 2 signals for entries, Long and Short. How can I get Position Average Price Per Signal for a strategy? The Position.AveragePrice give value for all trades regardless of signal, whats the code for each of my signals? Anyone can help?

    Thanks,
    Sean

    #2
    Hello shahabjet1,

    Thanks for your post.

    The Position.AveragePrice will return the entry price of a single entry when there are no current positions. If you have multiple positions then it will return the average price of the active positions.

    The actual entry price for each position would be viewable in the Executions tab of the Ninjatrader control center.

    Here is a link to an example strategy that demonstrates getting the stop price that a stop order was filled at. You can do something similar for each entry order. https://ninjatrader.com/support/help...and_onexec.htm

    Comment


      #3
      I would like to get average price for my multiple entries entered as a signal. In other word, need average price for strategy signal entries, not whole account. I have multiple signal entries. Any ideas for the code?

      Comment


        #4
        Hello shahabjet1,

        Thanks for your reply.

        Position.AveragePrice will return the average of your current positions that were created by the strategy and not of the account.

        Example: double myaverageprice = Position.AveragePrice

        Reference: https://ninjatrader.com/support/help...erageprice.htm

        Comment


          #5
          Great now I need that per Signal. Is there a way Position.AveragePrice can get signal name to return average price for strategies signal X positions?

          Comment


            #6
            Hello shahabjet1,

            Thanks for your reply.

            Here is a link to an example strategy that demonstrates getting the stop price that a stop order was filled at. You can do something similar for each entry order. https://ninjatrader.com/support/help...and_onexec.htm

            Comment


              #7
              Any updates on Average position price per signal?

              Comment


                #8
                Hello shahabjet1,

                Thanks for your reply.

                I note that you have created another topic that seems the same here: https://ninjatrader.com/support/foru...-per-direction

                What update are you expecting/looking for?

                Comment


                  #9
                  Yes. Please respond in other post, I responded to your response there and need your help.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Mindset, 04-21-2026, 06:46 AM
                  0 responses
                  90 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by M4ndoo, 04-20-2026, 05:21 PM
                  0 responses
                  135 views
                  0 likes
                  Last Post M4ndoo
                  by M4ndoo
                   
                  Started by M4ndoo, 04-19-2026, 05:54 PM
                  0 responses
                  68 views
                  0 likes
                  Last Post M4ndoo
                  by M4ndoo
                   
                  Started by cmoran13, 04-16-2026, 01:02 PM
                  0 responses
                  119 views
                  0 likes
                  Last Post cmoran13  
                  Started by PaulMohn, 04-10-2026, 11:11 AM
                  0 responses
                  69 views
                  0 likes
                  Last Post PaulMohn  
                  Working...
                  X