• 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

  • pman777
    started a topic Object display

    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!

  • NinjaTrader_ChelseaB
    replied
    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();

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by ballboy11, Today, 05:22 PM
0 responses
3 views
0 likes
Last Post ballboy11  
Started by ballboy11, Today, 04:33 PM
2 responses
4 views
0 likes
Last Post ballboy11  
Started by dedouglas, Today, 03:16 PM
1 response
7 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by TradeMyth, Today, 02:45 PM
3 responses
26 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by Ticnician, Today, 01:46 PM
1 response
9 views
0 likes
Last Post NinjaTrader_Jim  
Working...
X