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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      161 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      309 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      245 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      349 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      179 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X