Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PnL wrong display

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

    PnL wrong display

    Hi, I'm making an automated strategy with 2 contracts(emini), when it execute the stop or profit it doesn't display the right amount of money in the Dom. any ideas?, I'm not a programmer my software experience is limited. Thanks

    #2
    imported post

    Hi,

    Have you set up your commissions correctly?



    First you need to open up the Instrument Manager and highlight the contract in the middle section you are trading and click Edit. This will bring up the Instrument Editor. Then click on the Misc tab and click click on the '+' button foryour datafeed provider. Then enter the minimum commission and click OK.


    Then go to Tools--> Options--> Commission tab and do the same thing for Futures -Datafeed Providerand click OK.


    Then under Tools--> Options--> General tab, make sure that 'Apply Commission to P/L Calculations' is checked.

    More info can also be found here:

    http://www.ninjatrader-support.com/H...sionRates.html

    And here:

    http://www.ninjatrader-support.com/H...issionTab.html


    Vince
    Vince B.NinjaTrader Customer Service

    Comment


      #3
      imported post

      Vince,

      Thanks for your quick responce, my problem doesn't have any relation with the commissions, it appears to have an issue with the qty of contract and the PnL, if I increase the number of contract the error appears to be bigger.

      PD

      My live account works fine. I got the problem w the sim 101 account and the simulator, the strategy is not ready and no live testing was made.


      Comment


        #4
        imported post

        What version are you using? Can you check under Help--> About.

        Also repair your database. Go to Tools--> Options--> Misc tab--> Repair DB--> restart NinjaTrader.



        Vince
        Vince B.NinjaTrader Customer Service

        Comment


          #5
          imported post

          I'm using 6.0.0.8; I'll try your recomendation. I reply later. Thanks

          Comment


            #6
            imported post

            Vince,

            I repair the database but the issue continues, I got more info:

            For sp-mini which is $12.50 per tick per contract, if I use 2 contract for 1 tick it supposes to be 2 contract * 12.50 * 1 Tick = $25.00 less (say 2.40 commission ea) total profit must be $20.20, The Dom shows $40.40 and if I change the contract number to 10 contract *12.5 * 1 tick = $125.00 less commissions, the Dom shows $1202.00. Apparently he calculate the commission fine but multiply the profit by the number of contracts, with 2 contract multiply profit by 2 and with 10 contracts multiply profit by 10.

            I’m using the following order to get filled:

            EnterShortLimit(10, Bars.CurrentAsk, "My");
            SetProfitTarget("My", CalculationMode.Ticks, 1);
            SetStopLoss("My", CalculationMode.Ticks, 3, false);

            Comment


              #7
              imported post

              We have confirmed an issue with beta 8 regarding account realized PnL. This will be resolved with next update.

              Thanks for reporting this.

              Ray
              RayNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Mizzouman1, Today, 07:35 AM
              3 responses
              17 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by RubenCazorla, Today, 09:07 AM
              2 responses
              13 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by i019945nj, 12-14-2023, 06:41 AM
              7 responses
              82 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by timmbbo, 07-05-2023, 10:21 PM
              4 responses
              158 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by tkaboris, Today, 08:01 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Working...
              X