• 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 uday12, Today, 09:45 AM
    0 responses
    2 views
    0 likes
    Last Post uday12
    by uday12
     
    Started by uday12, Today, 08:25 AM
    3 responses
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by IanC28, Today, 08:47 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by trdmark, Today, 07:50 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PBreen, Today, 07:42 AM
    2 responses
    8 views
    0 likes
    Last Post PBreen
    by PBreen
     
    Working...
    X