Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Different Average entry pricces

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

    Different Average entry pricces

    Hello,

    I am having an issue with London stocks. If I print the Position.AvgPrice after opening a position the value is different between the price displayed in the strategy, in the Orders Tab and the one in the Positions Tab.

    I checked with IB TWS and the correct one is the value that appears in the Positions Tab.

    Is there any way to fix this?

    #2
    Hello,

    Thank you for the question.

    I wanted to check, when is this print occurring? is this print occurring after your Position.MarketPosion has changed to a not flat position?

    This could be due to when the print is happening in relation to when the position is updated, could you provide more details on the logic being used that comes to this result?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Yes, this is printed after the order si fully filled.

      As an example: the average price that appears on the orders tab is 12.30 Pound and in the print of the strategy it is the same. The price is in Pounds and it has to be converted to pence. So, 1230 pence.

      In the positions tab the price that appears is 1236 pence that matches with the average price that TWS displays.

      Maybe it includes the commission? Can you reproduce it in your end? Just open a position on any UK stock with IB and you will see.

      This doesn't happen with US stocks.

      Comment


        #4
        Hello,

        Thank you for the reply.

        I wanted to check, do you get charged an additional or different commission for UK stocks vs US stocks through your broker? This could play a role in this, otherwise have you defined commissions for the UK stocks only?

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Finally I found that, for LSE stocks, IB includes taxes in the average price. This makes the difference.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by chbruno, Today, 04:10 PM
          0 responses
          3 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          6 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frslvr, 04-11-2024, 07:26 AM
          9 responses
          127 views
          1 like
          Last Post caryc123  
          Working...
          X