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.
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Tim-c, Today, 02:10 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Taddypole, Today, 02:47 PM
        0 responses
        2 views
        0 likes
        Last Post Taddypole  
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        50 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        10 responses
        399 views
        1 like
        Last Post beobast
        by beobast
         
        Started by lorem, Yesterday, 09:18 AM
        5 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X