Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Plotting With AxisColor Lines

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

    Plotting With AxisColor Lines

    Hi NT,

    Is there a way to plot with AxisColor? I can draw with AxisColor but have not found a way to Plot with it.

    Thanks,

    RJay
    RJay
    NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

    #2
    Hello,

    What specifically do you mean by plot with it? Are you trying to set a plot color in initialize or want it to be user selectable in the properties menu for the indicator/strategy?

    What error are you getting?

    -Brett
    BrettNinjaTrader Product Management

    Comment


      #3
      Hi Brett,

      If I want to make an EMA use AxisColor when it plots on a chart?

      How can I do that?

      Any NT acceptable method is OK with me.

      RJay
      RJay
      NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

      Comment


        #4
        Hello,

        This would be unsupported however this seems to work:

        Add(new Plot(ChartControl.AxisColor, PlotStyle.Line, "Plot0"));

        Would need to test it and also make sure to check that ChartControl is not null before you access it.

        -Brett
        BrettNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Brett View Post
          Hello,

          This would be unsupported however this seems to work:

          Add(new Plot(ChartControl.AxisColor, PlotStyle.Line, "Plot0"));

          Would need to test it and also make sure to check that ChartControl is not null before you access it.

          -Brett
          Hi Brett,

          When selecting the indicator with specified changes to add to a chart, I'm getting the following error in the output window.

          Failed to call method 'Initialize' for indicator 'RJayBarPriceXRay3': Object reference not set to an instance of an object.

          Any Suggestions?

          RJay
          RJay
          NinjaTrader Ecosystem Vendor - Innovative Trading Solutions

          Comment


            #6
            Hello,

            Did you put in the null check for chart control or the property before you access it?

            You may need to move it out of initalize and set it with a BarColor in OnBarUpdate.

            -Brett
            BrettNinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            581 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            338 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 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
            552 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X