Successfull traders don't follow other people, they figure out what works for themselves. - Jack Schwager
Subscribe for free updates!
  •   Get new articles and videos in your inbox.
  •   Get exclusive notification of new deals and discounts.
  •   Email is the best way to stay connected.
  •   You can always unsubscribe using the links at the bottom of any email or at the bottom of this website.
  •   Your information will never be shared with or sold to a 3rd party.

Change Indicator Plot Color Programmatically in NinjaTrader 8

This five minute video demonstrates how to programmatically change the plot color of an indicator.

Plot lines in NinjaTrader indicators don't have to be all one color.

You can, for example, programmatically change the line color based on the level of the indicator value.

The secret is the PlotBrushes property which can be updated in the OnBarUpdate method.

Watch the video to see exactly how it's done.

Watch the Video
 

Version: 6.0.20200920.1535