Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DOM values on chart

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

    DOM values on chart

    Hello,

    I'd like to make ninja script/indicator which shows depth of market(DOM) on chart. I get values OnMarketDepth(), but chart not refreshed on every new ask/bid values when I put with DrawText().
    Is there any way to refresh chart on every fresh data like DOM?

    thanks,
    Bandito

    #2
    Hello bandito,

    Thank you for your post.

    Where are you setting the plot? If it is in OnBarUpdate(), set the CalculateOnBarClose to False.

    For information on CalculateOnBarClose please visit the following link: http://www.ninjatrader.com/support/h...onbarclose.htm

    Comment


      #3
      Hello,

      CalculateOnBarClose was false. My problem is, OnBarUpdate() refreshing every tick, but OnMarketDepth() refreshing when change in level two market data. I"d like to refresh chart like DOM.
      I tryed to DrawText() function inside OnMarketDepth(), but same like in OnBarUpdate().

      example:
      ES 12-14 price is 2019, and after 5sec up to 2019,25. OnBarUpdate() (and chart) refreshed 1x time, because 1 tick arrived. But OnMarketDepth() (DOM) refreshed 30x. Asks/Bids rows, level 2 datas changed 30x faster.



      Comment


        #4
        bandito, as a potential workaround you could try forcing an update via the ChartControl.Refresh() in your OMDepth handler.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        414 views
        0 likes
        Last Post CaptainJack  
        Working...
        X