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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      57 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      143 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      161 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      97 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      276 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X