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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      29 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      15 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X