Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stroke input parameter

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

    Stroke input parameter

    Hi,

    I want to add an input parameter with 'Stroke' type, something like this:
    Code:
    [Display(Name="Stroke Input", Order = 10, GroupName = par_Vis)]
    public Stroke pmVisual_Stroke_Param
    {
        get{return glVisual_Stroke_Param;}
        set{glVisual_Stroke_Param = value;}
    }
    Stroke glVisual_Stroke_Param = new Stroke(Brushes.Firebrick);​​
    In this case I will see this:
    Click image for larger version

Name:	StrBase.jpg
Views:	88
Size:	15.2 KB
ID:	1323520

    However, I want to see more options, something like this:
    Click image for larger version

Name:	Stroke.jpg
Views:	98
Size:	14.0 KB
ID:	1323519

    As you can see - there are two more options, 'Visible' and 'Label'. How can I achieve this? Thanks
    Attached Files

    #2
    Hello webus,

    Those are custom properties designed for that specific indicator, plots and strokes will not generate that. You would have to add your own public properties and group them together using a group instead.

    Comment


      #3
      Hi NinjaTrader_Jesse​,

      Originally posted by NinjaTrader_Jesse View Post
      Hello webus,

      Those are custom properties designed for that specific indicator, plots and strokes will not generate that. You would have to add your own public properties and group them together using a group instead.
      These properties are from the Order Flow Volume Profile indicator. How can I do a group into another group? As you can see in the screenshot below, the group 'POC' is inside the 'Lines' group. How can I do the same?

      Click image for larger version

Name:	Example VPF.jpg
Views:	110
Size:	59.9 KB
ID:	1323680

      Comment


        #4
        Hello webus,

        That is custom-made for that tool and is not something which is exposed for standard NinjaScript use. To group properties, you would use attributes, that leaves top level groups. There is currently no suggested way to make groups within groups.

        [Display(Name="Stroke Input", Order = 10, GroupName = par_Vis)]

        Comment


          #5
          Originally posted by NinjaTrader_Jesse View Post
          Hello webus,

          That is custom-made for that tool and is not something which is exposed for standard NinjaScript use. To group properties, you would use attributes, that leaves top level groups. There is currently no suggested way to make groups within groups.

          [Display(Name="Stroke Input", Order = 10, GroupName = par_Vis)]
          Got it. Thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          558 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X