Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Parameters revert back to default

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

    Parameters revert back to default

    I have a problem and would appeciate some help

    in Variables I have
    private
    Color vColor = Color.Black ;

    In properties is have
    [XmlIgnore()]
    [Description(
    "Banner and Add Color")]
    [Category(
    "Parameters")]
    [Gui.Design.DisplayNameAttribute(
    "Color for Banners")]
    public Color vcolor
    {
    get { return vColor; }
    set { vColor = value; }
    }


    now my problem is if I change the color in the parameters in the indicator parameter section when on the chart, every time I close and reopen Ninja i lose the new color setup even if i save workspace

    I must be missing something simple as all the other parameters stay set except this one.

    Thank you for the help

    #2
    Hi Rich,

    You have to serialize the color input as per this thread.
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    Comment


      #3
      Originally posted by mrlogik View Post
      Hi Rich,

      You have to serialize the color input as per this thread.

      Thank you that did the trick

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X