• 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

    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.

    #2
    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.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      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.

      Comment


        #4
        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
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          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.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Tradarr, Today, 06:25 PM
          2 responses
          14 views
          0 likes
          Last Post Tradarr
          by Tradarr
           
          Started by cocopod, Today, 04:47 PM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_JoshG  
          Started by digibob, Today, 02:47 AM
          2 responses
          14 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by mntemel, Today, 03:31 PM
          4 responses
          23 views
          0 likes
          Last Post mntemel
          by mntemel
           
          Started by mrlucky1x, Today, 03:14 PM
          2 responses
          7 views
          0 likes
          Last Post mrlucky1x  
          Working...
          X