Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using the Wizard Input Parameters Questions

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

    Using the Wizard Input Parameters Questions

    So, I'm using the Wizard to create the base code of my drawing tool. I've never used the wizard before so I was wondering if someone could help me clarify some things.

    If I understand correctly, these set up the NinjaScriptProperty of my drawing tool. I've already created some simple ones like ShowProximalPrice, Bool, True but I do want to setup some color choices for users.

    I want to have the user be able to adjust and change the colors and the opacity of the fill, the outline thickness, color, and opacity but the only options are Int,bool,double,string,and time (see screencap)

    For selecting colors, isn't it supposed to be a Brush? Should I just use a string to generate the code then change the parameter?

    Click image for larger version

Name:	image.png
Views:	151
Size:	16.1 KB
ID:	1306467

    #2
    Hello dniezby,

    I would recommend using a Stroke variable type, as the Stroke should auto serialize while the Brush would not.

    Either Brush or Stroke you would need to manually enter this in the code.

    Have a look at the RegressionChannel drawing tool included with NinjaTrader.
    On line 97 is where a line stroke is added.
    This also adds enum inputs one line 104 and double inputs on line 107.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      So you wouldn't recommend this but use Stroke instead? Or do you mean for my ouline property?

      Code:
      [NinjaScriptProperty]
              [Display(Name="Fill Color", Description="Fill color of your zone", Order=1, GroupName="Colors")]
              public Brush FillBrush
              { get; set; }​

      Comment


        #4
        Hello dniezby,

        I did mean for the Brush property yes.

        The Stroke has a Brush, DashStyle, and width you can use for lines and other shapes.


        I think you could use a Brush as well, but be sure to use the xmlignore attribute.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        556 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