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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          155 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          307 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          244 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          346 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          176 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X