Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ExitLong doesn't show P&L

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

    #16
    Which broker do you trade with tradefaz?

    Comment


      #17
      Originally posted by ryker View Post
      Which broker do you trade with tradefaz?
      I am using a test account with MB Trading that I'm using to test drive NT. I like NT a lot but I just want to figure out if what I'm seeing is correct. If its supposed to not be there, then that's cool (but annoying) but if its supposed to be there then something is wrong. Right now I'm leaning in the "something is wrong" direction.

      Comment


        #18
        Originally posted by tradefaz View Post
        Ok now I am confused. Are you saying that after closing out a winning long order from a strategy, that the realized gains column on the row for that strategy in the strategy tab (not the strategy performance window which is right click to get to) will show the new realized gains for that strategy?

        Because if that is what you're able to do I am not able to. But if you're saying that its not supposed to show realized gains after a position is closed within a strategy, and that column is purely for displaying unrealized gains on open positions, then I guess its doing what its supposed to do.

        Sorry for all the confusion, its a bit difficult to explain all this in writing.

        EDIT: I should stop saying realized P&L, i mean realized gains column, sorry.
        Correct me if I am wrong -

        - You say the Control Center Strategies Tab "Realized" column shows a zero after a profitable trade has closed?
        - If yes, please create a scenario where there is a profitable trade and then right click on the running strategy in the Control Center Strategies Tab and select the menu Strategy Performance > Real-time and then click on the trades tab, what PnL does this single trade show?
        RayNinjaTrader Customer Service

        Comment


          #19
          Originally posted by ryker View Post
          Ray,
          I'm aware of what you say, but both of them should show the same numbers in realized if you trade a strategy on just a symbol and don't trade this symbol anywhere else.
          Anyway realized column is not populated in strategy tab (or stays at 0), unrealized sometimes stays at 0 and is sometimes populated (I mean when I'm in position).
          - Please see my last past in response to tradefaz, same would apply. What does the trades tab show?

          What I am looking for here to see if the realized pnl column correlates to the perfromance reported in the trades tab.
          RayNinjaTrader Customer Service

          Comment


            #20
            You can see the result on the screenshot, is this what you wanted to see?

            Thanks
            Attached Files

            Comment


              #21
              Thanks Ryker,

              - Do you get this same behaviour on the Sim101 account?
              - Do you get this same behaviour using the default SampleMACrossOver strategy?
              RayNinjaTrader Customer Service

              Comment


                #22
                Originally posted by NinjaTrader_Ray View Post
                Thanks Ryker,

                - Do you get this same behaviour on the Sim101 account?
                - Do you get this same behaviour using the default SampleMACrossOver strategy?
                I'm getting this on my Sim101 account to begin with, haven't tried it on a live account. Also haven't tried to see if its an issue with the sample MACO. I will try in a few hours from now, maybe Ryker will get to it first.

                Comment


                  #23
                  Don't know I've never traded using the sim101 account... Will start the SampleMACrossOver strategy on the sim101 account tomorrow and will let you know.

                  Thanks

                  Comment


                    #24
                    tradefaz, are you trading FX or something else?
                    RayNinjaTrader Customer Service

                    Comment


                      #25
                      Originally posted by NinjaTrader_Ray View Post
                      tradefaz, are you trading FX or something else?
                      FX, although would that matter? Ryker what are you trading when you reproduce this?

                      EDIT: Oh nevermind it looks like you're trading E-Minis... So I guess asset type won't affect it?

                      Comment


                        #26
                        tradefaz,
                        Your issue may or may not be the same as Ryker.

                        - What is the order quantity you use in you run your strategy? I need to know the exact number used. Is it "1" by chance?
                        RayNinjaTrader Customer Service

                        Comment


                          #27
                          Originally posted by NinjaTrader_Ray View Post
                          tradefaz,
                          Your issue may or may not be the same as Ryker.

                          - What is the order quantity you use in you run your strategy? I need to know the exact number used. Is it "1" by chance?
                          One as in one lot? No it's 25k, it might as well be 1000 or 100000 though.

                          If by order quantity you mean the value that I pass in to the original EnterLong(25000...)

                          Does that help?

                          Comment


                            #28
                            Thanks. Please proceed as before where I would want to see the trades, you could do the same thing as Ryker did by posting an image.
                            RayNinjaTrader Customer Service

                            Comment


                              #29
                              Some feedback on the issue. Yesterday everything worked well as expected (for the sim101 account and the normal account), so it looks like the problem occurs sometimes but not always. Will try to identify the differences.

                              Comment


                                #30
                                Thanks for the update Ryker.
                                RayNinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by CortexZenUSA, Today, 12:53 AM
                                0 responses
                                2 views
                                0 likes
                                Last Post CortexZenUSA  
                                Started by CortexZenUSA, Today, 12:46 AM
                                0 responses
                                1 view
                                0 likes
                                Last Post CortexZenUSA  
                                Started by usazencortex, Today, 12:43 AM
                                0 responses
                                5 views
                                0 likes
                                Last Post usazencortex  
                                Started by sidlercom80, 10-28-2023, 08:49 AM
                                168 responses
                                2,266 views
                                0 likes
                                Last Post sidlercom80  
                                Started by Barry Milan, Yesterday, 10:35 PM
                                3 responses
                                13 views
                                0 likes
                                Last Post NinjaTrader_Manfred  
                                Working...
                                X