• 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

Detect Chart Interval Change From Add-On

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

  • aslane
    replied
    Of course an AddOn may not have a window, but instead monitor windows, in which case you need a way to monitor when the interval changes.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello aslane,

    So far I've been advised that if you use window linking to link your addon window to the chart, you can detect the data series change from the addon if its using an NTTabPage using the setter of the BarsPeriod object.

    Below is a public link to the help guide on Window Linking.
    https://ninjatrader.com/support/help..._interface.htm

    Leave a comment:


  • aslane
    replied
    Its ok if it is not available, then run it by development quick. This is a trivial add for those that understand it. As I mentioned, your custom instrument selector already provides the means, and the custom interval selector provides half of the solution. The interval selector just needs to be extended one of several ways to handle the keyboard update.

    I can make this work, but really wanted to do it correctly vs hacking something in there.

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello aslane,

    This would be undocumented and out of the realm of NinjaTrader Support.

    I'm uncertain that there is an event accessible from an addon that would trigger when a chart's data series changes..
    I'll look around and see if I can find anything helpful.

    This thread will also remain open for any community members that would like to assist.

    You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like our business development follow up with you with a list of affiliate consultants who would be happy to create this script or any others at your request.

    Leave a comment:


  • aslane
    started a topic Detect Chart Interval Change From Add-On

    Detect Chart Interval Change From Add-On

    I would like to detect an interval change for a chart from an AddOn. I can almost do it by hooking the toolbar interval selector IntervalChanged event. This works when the interval selector is used to change the interval, but fails when the keyboard is used to change the interval.

    Is there a way to do this today? I was not able to find anything.

    I do this for an instrument change today by hooking the toolbar instrumentSelector StringValueChanged event, which properly raises an event when with the selector or the keyboard are used.

    Can something similar be added to the interval selector? Or can the interval changed event be raised when the interval is changed via the keyboard?

    Thanks for the consideration.

Latest Posts

Collapse

Topics Statistics Last Post
Started by tvaughan4, 12-13-2019, 10:46 PM
2 responses
13 views
0 likes
Last Post tvaughan4  
Started by digibob, 12-13-2019, 10:01 PM
3 responses
11 views
0 likes
Last Post digibob
by digibob
 
Started by ldissinger, Yesterday, 12:55 PM
1 response
12 views
0 likes
Last Post ldissinger  
Started by pstrusi, Yesterday, 09:06 AM
1 response
24 views
0 likes
Last Post marcus2300  
Started by vpzdcv, Yesterday, 02:31 AM
0 responses
13 views
0 likes
Last Post vpzdcv
by vpzdcv
 
Working...
X