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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        117 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        166 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        85 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        130 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        88 views
        0 likes
        Last Post PaulMohn  
        Working...
        X