Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

OnMarketDepth Update...

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

    #16
    Originally posted by NinjaTrader_Josh View Post
    You can't just bring the Plot over into OnMarketDepth() like that. There's no overload method for that. Unfortunately if you want to draw things from your indicator it will only draw when the Plot method updates.

    This is news to me, I have been plotting from OnMarketDepth all along. Don't like having to wait for a price change before getting a level2 indicator update.



    RJay
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    Comment


      #17
      Originally posted by rt6176 View Post
      This is news to me, I have been plotting from OnMarketDepth all along. Don't like having to wait for a price change before getting a level2 indicator update.



      RJay
      that is great news! how do you configure it to do that? by default, my indicator is only updating when the bar updates.

      Comment


        #18
        Originally posted by NinjaTrader_Bertrand View Post
        laserwolf, correct you would set the chart update interval to it's min - 0.1msec to see quicker drawings. The OnMarketDepth and Plot would still listen to different events, thus there's no guarantee that they are in sync per default.
        when you say default, i assume it can be changed. please tell me how. tx

        Comment


          #19
          You can change it in your chart properties laserwolf, please press Ctrl + T on the chart and then adjust the Display Update Interval, note that would not be able to set it to 0 though for performance reasons.
          BertrandNinjaTrader Customer Service

          Comment


            #20
            you said by default OMD and Plot are not in sync. how do i get them in sync, like rt6176 has it?

            Comment


              #21
              laserwolf,

              Not sure I follow. Plot() and OnMarketData/Depth() are completely different methods that run off completely different events. There is no "syncing" possible of the two. They are simply triggered by different things.
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                to put it simply - i want my indicator to be updated on the screen every time onmarketdata is called. rather than only when onbarupdate is called.

                Comment


                  #23
                  That is not advisable and would actually lead to even slower updates of the chart. Trying to force a draw on every single OnMarketData forces your computer through the paint routine. During high volatility times this results in paints being queued. As high volatility continues, the queue gets longer and longer taking up your PC resources. You quickly end up with a significantly delayed chart. The option Bertrand mentioned is the only option you can mess with for the painting of the chart. You can set it to 0.1. This is the superior setting versus 0.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #24
                    DOM rules, want to scalp? use it

                    Comment


                      #25
                      round down the bid/ask volume numbers, simply
                      rows[e.Position].Volume = (
                      int)( e.Volume /10)in the OnMarketDepth()
                      it helps painting the DOM faster on the chart, we don't care to see the last digit anyway.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by WHICKED, Today, 12:45 PM
                      2 responses
                      16 views
                      0 likes
                      Last Post WHICKED
                      by WHICKED
                       
                      Started by GussJ, 03-04-2020, 03:11 PM
                      15 responses
                      3,272 views
                      0 likes
                      Last Post xiinteractive  
                      Started by Tim-c, Today, 02:10 PM
                      1 response
                      8 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
                      51 views
                      0 likes
                      Last Post chbruno
                      by chbruno
                       
                      Working...
                      X