Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Adding Buttons to Chart

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

    Adding Buttons to Chart

    Hello;

    I have developed an indicator that works fine. Its used on multiple charts. It has a feature for triggering various alarms and playing a sound when the alarms are triggered.

    If I wish to turn off either of these features, I need to go into the properties of the indicator on 12 separate chart to turn on/off the two Boolean properties associated with sound and weather the alerts are triggered.

    What I would like to do, is add a button on the toolbar of each chart to modify the value of these Boolean fields rather that enter the property settings of 12 charts to do the same thing. Its more of a convenience thing...

    I have searched this forum and various other site and found some discussions on the matter, and even some code that was very useful, but I need to be able to analize the on click event of the button in some way to set these Boolean properties... I havnt been able to do that yet.

    Any suggestions would be helpful.

    #2
    Hello Jeliner,

    Thank you for your post.

    You can refer to the attached example on adding buttons and detecting clicks.
    Attached Files

    Comment


      #3
      Hello,

      I have tried this example but there is not any button displayed in the chart panel. What am I doing wrong?. Thanks

      Comment


        #4
        Hello Sangui,

        Thank you for your post.

        Please take a look at the example at the following link: http://ninjatrader.com/support/forum...754#post474754

        Comment


          #5
          If anyone comes across this post please use the following examples to modify WPF elements:
          Hello All, Moving forward this will be maintained in the help guide reference samples and no longer maintained on the forum. Creating Chart WPF (UI) Modifications from an Indicator - https://ninjatrader.com/support/help...ui)-modifi.htm (https://ninjatrader.com/support/helpGuides/nt8/creating-chart-wpf-(ui)-modifi.htm) I've
          Chris L.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cre8able, Yesterday, 04:22 PM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by stafe, 04-15-2024, 08:34 PM
          5 responses
          28 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by StrongLikeBull, Yesterday, 04:05 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Mestor, 03-10-2023, 01:50 AM
          14 responses
          375 views
          0 likes
          Last Post z.franck  
          Started by molecool, 10-09-2017, 10:48 AM
          5 responses
          1,621 views
          0 likes
          Last Post trader-ap  
          Working...
          X