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 futtrader, 04-21-2024, 01:50 AM
          4 responses
          41 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          12 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          8 views
          0 likes
          Last Post port119
          by port119
           
          Started by Philippe56140, Today, 02:35 PM
          0 responses
          7 views
          0 likes
          Last Post Philippe56140  
          Started by 00nevest, Today, 02:27 PM
          0 responses
          7 views
          0 likes
          Last Post 00nevest  
          Working...
          X