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 rtwave, 04-12-2024, 09:30 AM
          4 responses
          29 views
          0 likes
          Last Post rtwave
          by rtwave
           
          Started by yertle, Yesterday, 08:38 AM
          7 responses
          28 views
          0 likes
          Last Post yertle
          by yertle
           
          Started by bmartz, 03-12-2024, 06:12 AM
          2 responses
          21 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by funk10101, Today, 12:02 AM
          0 responses
          6 views
          0 likes
          Last Post funk10101  
          Started by gravdigaz6, Yesterday, 11:40 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X