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 CarlTrading, 05-11-2026, 05:56 AM
                  0 responses
                  67 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 05-10-2026, 08:12 PM
                  0 responses
                  42 views
                  0 likes
                  Last Post CarlTrading  
                  Started by Hwop38, 05-04-2026, 07:02 PM
                  0 responses
                  202 views
                  0 likes
                  Last Post Hwop38
                  by Hwop38
                   
                  Started by CaptainJack, 04-24-2026, 11:07 PM
                  0 responses
                  366 views
                  0 likes
                  Last Post CaptainJack  
                  Started by Mindset, 04-21-2026, 06:46 AM
                  0 responses
                  284 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X