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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        79 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X