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

Level II data during Market Replay does show orders issued by custom strategy?

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

    Level II data during Market Replay does show orders issued by custom strategy?

    Hi,

    I am testing my strategy with market replay and it seems to me that when I submit an order Long on a limit price below current market price, Level II windows does'nt show my bid in the book.
    Is the strategy activity supposed to be tracked by market replay Level II data or not?
    thanks
    Andrea

    #2
    Hello Andrea,

    Level II data is provided with Market Replay data during real-time playback for supported instrument types (but not historical tick data).

    You can check the Level II window during playback to verify for that instrument.

    In your script are you printing in the OnMarketDepth() method?

    What are printing in this method?

    Are the prints not appearing in the Output window?

    Does the SampleCustomEvents reference sample also not output to the Output window?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea for this first feedback. Let me explain better the issue. with the help of the attached diagram. At 19.00 (OnBarClose) my strategy fires EnterShortLimit @ 69,35, 100 contract.
      In that moment on that level of price there is a ASK offer for 1 contract.. Is it correct to assume that when this order will hit the "simulated market" (as to say OrderState ==Working) the book will show (at least) my 100 contracts on the ask side @ 69,35 (or something less should any part of that be matched by buyers)?

      In other words, do my order impact the simulated market or not?
      thanks
      Andrea

      Click image for larger version

Name:	Level II .png
Views:	56
Size:	75.7 KB
ID:	1043410

      Comment


        #4
        Hello Andrea,

        No, orders placed to the Sim101 or Playback101 do not affect the real-time data from the market and also do not affect the Simulated Data Feed or Playback feed.

        The playback is a recording from a real trading session. You cannot affect this recording.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Ok!! Thank you!
          bye

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by moneyexe, Today, 11:22 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by stevec1824, Today, 11:00 AM
          2 responses
          4 views
          0 likes
          Last Post stevec1824  
          Started by sofortune, Today, 10:05 AM
          2 responses
          6 views
          0 likes
          Last Post sofortune  
          Started by sofortune, 05-10-2024, 10:28 AM
          6 responses
          46 views
          0 likes
          Last Post sofortune  
          Started by ETFVoyageur, Today, 08:54 AM
          3 responses
          31 views
          0 likes
          Last Post ETFVoyageur  
          Working...
          X