Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

super DOM pattern recognition

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

    super DOM pattern recognition

    I work on super DOM pattern for high frequency trading.
    How can access price, ask and bid size? Example in c# would be great.
    Even some sample code of pattern in super DOM would be great.

    I am a newbie in NinjaTrading, but an experienced C# developer. Truly amazed
    nice debug with VS.

    Best regards,
    Ingyu

    #2
    Originally posted by ingyukoh View Post
    I work on super DOM pattern for high frequency trading.
    How can access price, ask and bid size? Example in c# would be great.
    Even some sample code of pattern in super DOM would be great.

    I am a newbie in NinjaTrading, but an experienced C# developer. Truly amazed
    nice debug with VS.

    Best regards,
    Ingyu

    Hello,

    why don`t you try with this(attached).In this example - my simpleton attempt to access the scale value for the strategy.The problem is that it takes Longs only

    I was trying to access the scale using top.EndBarsAgo and bottom.EndBarsAgo,but it takes longs only.

    You can try and expose the other values.The more common DOM pattern known as the DOM Wall.It`s in the lines #:

    325 else if (row.Value == maxAskVolume)

    346 else if (row.Value == maxBidVolume)

    I was trying to expose those values for the strategy,but failed, as well.Maybe you can expose the values,or maybe the other coders would chime in and help with exposing those values.
    Attached Files

    Comment


      #3
      Hello ingyukoh,

      The bid and ask can be accessed in NinjaScript in the OnMarketData() method.

      This method triggers in realtime as the bid and ask change and does not trigger historically.

      Attached is an example of a script that duplicates the time and sales window. It does this by determining if the last tick that came through was at the bid or the ask. It does this by first determining the current bid or ask price and comparing this price to the last tick.

      Below I am including a link to the help guide on OnMarketData().

      http://www.ninjatrader.com/support/h...marketdata.htm
      Attached Files
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

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