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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        70 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        152 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        100 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        288 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X