Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SampleMarketDepth

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

    SampleMarketDepth

    Hi Ninja Team,

    I see you have started to add some examples for NT7 in the Reference Samples section. Any chance of getting the SampleMarketDepth sample updated for NT7? It doesn't import now.

    Thanks!

    EDIT: I've imported the NT7 version of SampleCustomEvents and see the Layer II book code. I'm working on something that uses market depth from two instruments in a single strategy. Would the best way to do that be to make sure the variable names shared between the two Layer II Books are unique (say, public double PriceA for one and public double PriceB for the other), and then have two instances of the array in OnMarketDepth, one with BarsInProgress == 0 and the other with BarsInProgress==1?

    Pardon the pun but I'm out of my depth .
    Last edited by MXASJ; 02-24-2010, 03:00 AM.

    #2
    MXASJ,

    Correct, if you have two instruments and you want two books you will need two sets of all the variables and objects used in the reference sample.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    160 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    307 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    178 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X