Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

using AvePrice in a multi-symbol strategy

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

    using AvePrice in a multi-symbol strategy

    Hi again,

    I have a multi-symbol strategy and want to get the average entry price for each symbol. I tried the following:

    Positions[0].AvePrice

    I get the compile error:

    NinjaTrader.Cbi.Position does not contain a definition for AvePrice

    How should I get the average entry prices for each symbol for open positions?

    Thanks,

    Folls

    #2
    Not sure why you think it should be AvePrice. Please check out the intellisense in the editor or the docs which would show AvgPrice. http://www.ninjatrader-support.com/H.../AvgPrice.html

    Comment


      #3
      sorry about that

      I apologize for that. I'm not sure what I was thinking. I looked at that page at least 5 times before posting. Maybe it was because I was abbreviating average as Ave in some of my properties in my code. In any case, sorry for wasting your time on that one. The support here is excellent as always.

      Folls

      Comment


        #4
        Glad issue is resolved for you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        63 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        54 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        61 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        48 views
        0 likes
        Last Post CarlTrading  
        Working...
        X