Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Refreshing Databox after a plot color was update to become visible

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

    Refreshing Databox after a plot color was update to become visible

    I am looking for a snippet code how to find if DataBox is opened, and then refresh it to reflect the current visible plots.

    I am using multiple plots to quickly switch between different graphs, by switching colors of the plots using Color.Transparent.

    The Data Box display only the Plots with color different from Color.Transparent. After I switch the plot color I call ChartControl.ChartPanel.Refresh();. This refresh the chart and if the Data Box is closed, the next time it opened, it display the current Plots values.

    If the Data Box is open, I need to refresh it as well, and cause the plots to change in the Data Box as well.

    Any suggestions?

    #2
    Hello Shai Samuel,

    Thank you for your inquiry.

    The Data Box automatically updates upon moving the mouse over the chart.

    As you have set the plots to transparent during the initial start up of your indicator, these plot values are not available to the Data Box even if you refreshed your chart through ChartControl.

    This behavior does not occur if you have initially started your indicator up with a colored plot.

    A way to get around this is to use the OnStartUp() method. Here, you can set your plot color to transparent and the Data Box will still have a value (as long as a color was specified for the plot during Initialize).

    For more information about OnStartUp(), please take a look at the NinjaTrader help guide at this link: http://ninjatrader.com/support/helpG...?onstartup.htm

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by aaadetos, 05-04-2021, 09:28 AM
    1 response
    5 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by Stanfillirenfro, Today, 04:34 AM
    1 response
    6 views
    0 likes
    Last Post Stanfillirenfro  
    Started by Impeesa, Today, 04:31 AM
    0 responses
    4 views
    0 likes
    Last Post Impeesa
    by Impeesa
     
    Started by knarfoe, Today, 03:41 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by leschgarrett, Today, 03:58 AM
    0 responses
    1 view
    0 likes
    Last Post leschgarrett  
    Working...
    X