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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        58 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        80 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        43 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        101 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        61 views
        0 likes
        Last Post PaulMohn  
        Working...
        X