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

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 burtoninlondon, Today, 12:38 AM
      0 responses
      9 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      13 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,983 views
      3 likes
      Last Post jhudas88  
      Working...
      X