Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator Not Remaining On Chart

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

    Indicator Not Remaining On Chart

    Hi there, I have a custom indicator that colors certain candlesticks based on a set of conditions.

    The indicator works great, and the code compiles successfully.

    The only problem I'm running into,
    is the fact that every time I close and open Ninjatrader 8, the indicator has been removed from my chart.

    Do you have any idea why this could happen?

    Is there perhaps any section of code (OnStateChange, OnBarUpdate) that may be responsible for an issue like this?

    #2
    Hello RoswellTrader,

    This often occurs if there are properties that need serialization that have not been serialized.

    Are there errors appearing on the Log tab of the Control Center when saving the workspace?

    The help guide provides a detailed code sample on serializing Brush (color) inputs.
    Help guide: NinjaScript > Educational Resources > Tips > User Definable Color Inputs
    Help guide: NinjaScript > Educational Resources > Working with Brushes > Using brushes defined on the user interface
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks so much, Chelsea. The links you provided helped me fix the issue.

      Much appreciated.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      637 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      366 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      107 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      569 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      571 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X