Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

'Use FIFO for position avg. price calculations' setting is not working

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

    'Use FIFO for position avg. price calculations' setting is not working

    Hello,

    The avg. price is always calculated using FIFO, despite this setting in Options (General tab).

    Thank you.

    #2
    Hello drecio,

    Can you please tell me what NinjaTrader version you have installed. You can check this at Control Center-->Help-->About.

    I tested it on my end and it worked as expected.

    With 'Use FIFO for position avg. price calculations' unchecked

    I entered the market at the following two prices
    1285
    1284

    Average entry price
    1284.5

    Subsequently, I scale out 1 contract and the following entry price is reflected.
    1284.5



    With 'Use FIFO for position avg. price calculations' checked
    1285
    1284

    Average entry price
    1284.5

    Scale out 1 contract
    1284

    Can you please perform a similar test on your end while connected to the Simulated Data Feed and check if you experience the same outcome.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Hello Jason, you are right. My version is 7.0.1000.6. I don't know what I did in order to test this issue. Sorry for that.

      Anyway, I would find a very interesting functionality, to have a LIFO option for avg.price calculation. Maybe would be this possible in future versions?.

      Thanks.

      Comment


        #4
        No worries, good to hear it works as expected for you as well.

        I will forward your suggestion to support LIFO for average price calculation to development.
        JasonNinjaTrader Customer Service

        Comment


          #5
          The suggestion to use LIFO for average price calculations is assigned to ID# 55.
          JasonNinjaTrader Customer Service

          Comment


            #6
            Hello. I have tested this again, and it is correct only when using SIM101, but using my live CQG account the behaviour is always FIFO.

            i.e.:
            Long 1 @ 97.93
            Long 1 @ 97.97
            avg: 97.95

            exit 1st: 97.99
            At this point the avg. becomes the last entry price: 97.97
            exit 2nd: 98

            Comment


              #7
              Unfortunately, it does not apply when trading live with CQG. Position information is provided by CQG and is not calculated by NinjaTrader.
              JasonNinjaTrader Customer Service

              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
              45 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
              181 views
              0 likes
              Last Post jeronymite  
              Working...
              X