• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Object display

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

    Object display

    I have an indicator with a button routine that, when pressed, displays a line on my chart. However there is a delay when the button is pressed and when the line appears ... seems the chart needs to have a tick change for the price chart to display objects. I have CalculateOnBarClose = false, but there are sill times when the market is slow that the delay is too obvious.

    Is there a way to get the line (or any Draw object) to display immediately when the button is pressed?

    Thanks!

    #2
    Hello pman777,

    A chart will refresh when data is received or when clicked on.

    You can trigger a chart to refresh with an undocumented method call.
    Code:
    ChartControl.ChartPanel.Invalidate();
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NT-Roland, Today, 06:34 AM
    0 responses
    2 views
    0 likes
    Last Post NT-Roland  
    Started by gemini42, Yesterday, 09:44 PM
    0 responses
    11 views
    0 likes
    Last Post gemini42  
    Started by martyn73, Yesterday, 03:09 PM
    0 responses
    9 views
    0 likes
    Last Post martyn73  
    Started by martyn73, Yesterday, 03:05 PM
    0 responses
    11 views
    0 likes
    Last Post martyn73  
    Started by mic414, Yesterday, 02:17 PM
    0 responses
    6 views
    0 likes
    Last Post mic414
    by mic414
     
    Working...
    X