Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Circles not keeping the color in them when i add an indicator

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

    Circles not keeping the color in them when i add an indicator

    i made a hammer/star indicator. when i add it to the chart it draws circles above or below the star/hammer that are colored, but when i add on another indicator the color of the circles goes to transparent of something.

    This is how i have the colors in my coding:
    private Color iSColor = FromKnownColor.Color.DarkRed;
    [Description(
    "")]
    [Category(
    "Parameters")]
    public Color StarColor
    {
    get { return iSColor; }
    set { iSColor = value; }
    }

    private Color iHColor = Color.DarkGreen;
    [Description(
    "")]
    [Category(
    "Parameters")]
    public Color HammerColor
    {
    get { return iHColor; }
    set { iHColor = value; }
    }
    and later in the code i use the values for the colors. I know i saw somewhere FromKnownColors used but i cant find it again or if that is what i need. If i go to change the colors in the indicator window it opens the windows pallete.

    #2
    Hello cbart2,

    You must serialize the color inputs. The technique for this is available here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks

      That helped a bunch.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      579 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 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
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X