Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing Bar Color

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

    Changing Bar Color

    Can someone share a code snippet that I can use to edit an existing indicator, let's say the Fisher Transform? I want to be able to adjust the color of a trend change on the Fisher Transform. Rising bars green, down bars red, etc. I used the PlotColors function for NT7 indicators but I think perhaps i need to edit the Brush in NT8 ?


    #2
    In NT7, we sued PlotColors .

    Whilte in NT8, we used PlotBrushes[0][0]
    You can refer to the link below :




    Comment


      #3
      Hello Jander,
      You need this:
      Code:
      PlotBrushes[0][0] = Brushes.Green;
      Keep it within your conditions to change colors. Hope it helps!

      Comment


        #4
        Hello Jander,

        Thanks for your post.

        cincai and s.kinra have given the code you want to use in place of PlotColors, but also keep in mind that the Code Breaking Changes page of the Help Guide can be references for other NinjaScript code that changed from NinjaTrader 7.

        Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm

        We look forward to assisting.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        600 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        347 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
        558 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        558 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X