Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

add a web link?

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

    add a web link?

    Hi all,

    Is it possible to add in the Indicator settings panel a link to a website?

    Thank you.

    #2
    Hello superg3,
    Thanks for your post.

    This would be possible by using the HyperLink class along with a Property Editor Template.

    This forum post contains the original sample I worked with that shows how to modify the property of a WPF control: https://ninjatrader.com/support/foru...222#post806222

    Here are a couple of public links for how to make a hyperlink in C# in general and you can find more resources on this in Google:
    I've seen several suggestions, that you can add hyperlink to WPF application through Hyperlink control. Here's how I'm trying to use it in my code: <Window xmlns="http://schemas.micro...



    Taking from the above sample I added the following to the template:
    Code:
    <TextBlock>           
                <Hyperlink NavigateUri=""http://www.google.com"" 
                          Command =""pg:PropertyEditorCommands.ShowDialogEditor""
                          CommandParameter=""{Binding}"">
                    Click here
                </Hyperlink>
            </TextBlock>
    and inside the click event named ShowDialog() to have the action:
    Code:
    Process.Start("http://google.com");
    I also attached a modified version of the sample in the forum post. I suggest comparing the two samples to see the other changes that were made. Be sure to restart NinjaTrader after importing the addon or making any changes.
    Attached Files
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hello JoshG,

      Thank you veru much for the info. I will try the coding.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      572 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X