In this business if you're good, you're right six times out of ten. You're never going to be right nine times out of ten. - Peter Lynch
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