Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to create a conditionally colored price bar?

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

    How to create a conditionally colored price bar?

    I am trying to figure out how to have a price bar display in red of green if certain conditions are met.
    Specifically, if a bar opens with price in the bottom 1/3 of the bar and closes in the top 1/3 of the bar I want it to be blue. If a bar opens with price in the top 1/3 of the bar and closes in the bottom 1/3 of the bar I want it to be red.
    If anyone knows how to do this I would greatly appreciate instructions.
    Thanks

    #2
    Maestro79, welcome to the NinjaTrader support forums! You can work with BarColor() for this scripting idea - http://www.ninjatrader-support.com/H.../BarColor.html

    Here are some great tutorials to get you started, number 6 is is dealing with coloring the bars and background - http://www.ninjatrader-support.com/H...verview18.html

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Maestro79, welcome to the NinjaTrader support forums! You can work with BarColor() for this scripting idea - http://www.ninjatrader-support.com/H.../BarColor.html

      Here are some great tutorials to get you started, number 6 is is dealing with coloring the bars and background - http://www.ninjatrader-support.com/H...verview18.html
      Thanks. I'll check those out.

      Comment


        #4
        Dead links

        The links in the answer, below, are dead.

        Are there new links explaining the process for Ninjatrader 8?

        Originally posted by NinjaTrader_Bertrand View Post
        Maestro79, welcome to the NinjaTrader support forums! You can work with BarColor() for this scripting idea - http://www.ninjatrader-support.com/H.../BarColor.html

        Here are some great tutorials to get you started, number 6 is is dealing with coloring the bars and background - http://www.ninjatrader-support.com/H...verview18.html

        Comment


          #5
          In NT8

          BarColor is BarBrush
          CandleOutlineColor is CandleOutlineBrush

          J~

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          51 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          31 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          99 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          177 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          170 views
          0 likes
          Last Post CarlTrading  
          Working...
          X