Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to set tooltip for AddLine() and AddPlot()?

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

    How to set tooltip for AddLine() and AddPlot()?

    How do I set the tool tip for lines and plots?

    --EV

    #2
    Originally posted by ETFVoyageur View Post
    How do I set the tool tip for lines and plots?

    --EV
    I am inclined to believe that the facility has not been enabled, much as we could not place a [Description()] on them in NT7. Well, we could: it just did nothing.

    Comment


      #3
      Originally posted by koganam View Post
      I am inclined to believe that the facility has not been enabled, much as we could not place a [Description()] on them in NT7. Well, we could: it just did nothing.
      Note that lines and plots do get tooltips --it's just that they get the default ones (the line/plot's name). You're probably correct, but it's hard to believe there is no way to feed it non-default text.

      Perhaps one of the NT folks can tell us how to do this. If there is no way to do so, then it is a material bug, which should not be hard to fix, and which should be fixed.

      --EV

      Comment


        #4
        Hello EV,

        Thank you for your post.

        You can use the following format to set the description:
        Code:
        		[Range(1, int.MaxValue)]
        		[NinjaScriptProperty]
        		[Display(Name="What", [B]Description="This"[/B], Order=1, GroupName="Parameters")]
        		public int What
        		{ get; set; }

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello EV,

          Thank you for your post.

          You can use the following format to set the description:
          Code:
                  [Range(1, int.MaxValue)]
                  [NinjaScriptProperty]
                  [Display(Name="What", [B]Description="This"[/B], Order=1, GroupName="Parameters")]
                  public int What
                  { get; set; }
          I do not understand your suggestion
          • You are showing how to set a tooltip for an integer property.
          • The question was how to set a tooltip for a line or a plot, added with AddLine() or AddPlot()

          --EV

          Comment


            #6
            Hello ETFVoyageur,

            I will forward this suggestion to our development team.

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello ETFVoyageur,

              I will forward this suggestion to our development team.
              I take that means there is no way to do so now?

              It seems odd that NT8 does provide default tooltips for lines and plots, but provides no way to customize those same tooltips.

              --EV

              Comment


                #8
                Hello ETFVoyageur,

                That would be correct. Please let me know if you need further clarification.

                Comment


                  #9
                  Thank you for your suggestion on how we can improve our product. It has been inserted into our tracking system with the unique ID # SFT-603.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by pmachiraju, 11-01-2023, 04:46 AM
                  8 responses
                  148 views
                  0 likes
                  Last Post rehmans
                  by rehmans
                   
                  Started by mattbsea, Today, 05:44 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post mattbsea  
                  Started by RideMe, 04-07-2024, 04:54 PM
                  6 responses
                  33 views
                  0 likes
                  Last Post RideMe
                  by RideMe
                   
                  Started by tkaboris, Today, 05:13 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post tkaboris  
                  Started by GussJ, 03-04-2020, 03:11 PM
                  16 responses
                  3,282 views
                  0 likes
                  Last Post Leafcutter  
                  Working...
                  X