• 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

Chart intercepting AddOn Input

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

    Chart intercepting AddOn Input

    I have run into a problem with AddOns that seem a bit odd, not sure how to solve it. I have attached a sample project to show the problem.

    If you attach an AddOn to a chart (as per the attached project), the chart intercepts any input done in the AddOn.

    Instructions to Reproduce:
    • Unzip the attached file
    • Open the solution in VS2015
    • Compile the solution. It already copies the DLL to the correct place
    • Open NinjaTrader and open a new chart
    • Try and type something in the Addon's textbox


    To remove the AddOn again, just delete its DLL from My Documents\NinjaTrader 8\bin\Custom folder.

    Any ideas on how to solve this problem will be highly appreciated.
    Attached Files
    Last edited by JohnSteinberg; 05-01-2017, 05:40 AM.

    #2
    Hello JohnSteinberg,

    Thanks for opening the thread.

    We typically do not provide support or input for projects built outside of the NinjaScript Editor. I did have a look at your project anyway so I could provide further input.

    I see that your text box is conflicting with the chart's behavior to look switch instruments/intervals when you start typing within a chart. We have some sample code that demonstrates how an indicator can disable the Instrument changer in the case of a text box.

    Essentially, once State.Historical is reached, you can add a custom control that will allow you to update items created by the main UI thread.

    I have attached the sample code to help get you started.

    Please let me know if I may be of further assistance.
    Attached Files
    JimNinjaTrader Customer Service

    Comment


      #3
      Will try code

      Thanks for the quick reply Jim. I will try out the code and let you know how it goes.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by rudccv, Today, 08:42 PM
      0 responses
      1 view
      0 likes
      Last Post rudccv
      by rudccv
       
      Started by Newtrader101, Today, 03:54 PM
      1 response
      15 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by williamzz, Today, 03:28 PM
      0 responses
      7 views
      0 likes
      Last Post williamzz  
      Started by Robert87, Today, 11:07 AM
      0 responses
      14 views
      0 likes
      Last Post Robert87  
      Started by phta123, Today, 10:24 AM
      0 responses
      17 views
      0 likes
      Last Post phta123
      by phta123
       
      Working...
      X