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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    55 views
    0 likes
    Last Post CarlTrading  
    Working...
    X