Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to repaint all the bars?

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

    How to repaint all the bars?

    Code:
    for (int idx = 0; idx <= ChartBars.Count-1; idx++)
    BarBrushes[idx] = Brushes.Yellow;
    This code causes an error on the second bar (idx=1)

    #2
    Originally posted by vladko View Post
    Code:
    for (int idx = 0; idx <= ChartBars.Count-1; idx++)
    BarBrushes[idx] = Brushes.Yellow;
    This code causes an error on the second bar (idx=1)
    Where do you put this code? In OnBarUpdate() or somewhere else?
    ninZa
    NinjaTrader Ecosystem Vendor - ninZa.co

    Comment


      #3
      In the handler for the button click

      Comment


        #4
        Originally posted by vladko View Post
        In the handler for the button click

        Please use TriggerCustomEvent. If you bypass it, the error will occur.
        ninZa
        NinjaTrader Ecosystem Vendor - ninZa.co

        Comment


          #5
          Ok, thank's.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Jonker, Today, 01:19 PM
          0 responses
          1 view
          0 likes
          Last Post Jonker
          by Jonker
           
          Started by futtrader, Today, 01:16 PM
          0 responses
          5 views
          0 likes
          Last Post futtrader  
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,790 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          838 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,294 views
          1 like
          Last Post jgualdronc  
          Working...
          X