Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT autoplot misaligned

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

    #16
    ATI user,

    Could you please email me your database file as well? Thanks. josh [dot] peng[at] ninjatrader [dot] com.
    Josh P.NinjaTrader Customer Service

    Comment


      #17
      my current database is 363 megs...too large to email

      perhaps I should just try Repair DB and see if that fixes bug?

      Comment


        #18
        Please try a repair and see if that helps.
        Josh P.NinjaTrader Customer Service

        Comment


          #19
          ok

          what is diff between Repair DB and Reset DB?

          I assume reset starts over at 0?

          should I repair or reset

          Comment


            #20
            Right. Do repair for now. Reset may be the next step.
            Josh P.NinjaTrader Customer Service

            Comment


              #21
              did DB repair....still has plot bug
              Attached Files

              Comment


                #22
                I am running your strategy on a 60 tick chart of YM 12-08 on Zen-Fire. This is the first trade it made. This is just slippage is it not? I suggest you run TraceOrders = true to quantify the trades for matching purposes.
                Attached Files
                Josh P.NinjaTrader Customer Service

                Comment


                  #23
                  slippage is just a bad fill is it not?

                  NT should still plot whatever the fill is on the correct bar right? i.e. How can it plot a price on a bar below the low of the bar?

                  here is test of the same code posted above...after DB repair
                  Attached Files

                  Comment


                    #24
                    If you look at the execution time for the order it falls on the correct bar though. Please run with TraceOrders = true and see if you can quantify the order being on the wrong bar.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #25
                      ok...will try

                      here is a chart after DB reset

                      so it would appear it has nothing to do with DB
                      Attached Files

                      Comment


                        #26
                        trace on

                        seems to be on correct bar....not at correct price though

                        execution at 8316 while high of bar is 8315

                        is this due to sim mode? i.e. could not get that fill in cash trading?
                        Attached Files

                        Comment


                          #27
                          after DB rest, size is still 230 megs...how can that be if it starts new?

                          Comment


                            #28
                            Reset does not remove your data. You can see exactly what it does in the dialogue window that shows up when you press the Reset button.

                            Executions can happen at any price in live.
                            Josh P.NinjaTrader Customer Service

                            Comment


                              #29
                              ok...how can they happen at price at which the market did not trade?

                              i.e. above the high or below the low of the bar?

                              Comment


                                #30
                                That is something that you will need to work out with your code through debugging. One thing to note is that you do SetTrailStop() and explicit ExitLongStop() orders. Please bear in mind that you cannot use both at the same time due to Internal Order Handling Rules.

                                I suggest you strip away all of the IOrder things for the time being and just work with straight OnBarUpdate(). Also, the simulator algorithm can fill you anywhere it doesnt matter what is shown. It really depends on the data you are receiving in terms of bid and ask.
                                Josh P.NinjaTrader Customer Service

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                603 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                349 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                104 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                560 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                560 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X