Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

No yellow bars

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

    No yellow bars

    Hello,

    I always use OHLC bars in my charts, in trade station with Interactive Brokers they have a yellow bar that show's you if the price is the same as it opened and closed.
    I cannot find this function in Ninjatrader 8. I have to train my eyes to see green bars with the same price as yellow, as this is a serious indicator of where the market is going.

    Is there a way to add this function to the OHLC bars?

    #2
    Hello Vitallion,

    It would be possible to make this modification in a copy of the OhlcStyle chart style.

    You would be comparing the bars.GetOpen() to the bars.GetClose() and setting the brush with the variable name 'b.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      The NT team has made coloring bars really easy

      Code:
              protected override void OnBarUpdate()
              {
                  if(Open[0] == Close[0]) {
                      BarBrush = Brushes.Yellow;
                      //CandleOutlineBrush = Brushes.Yellow; //for candlestick dojis
                  }
      Last edited by MojoJojo; 03-01-2020, 08:05 AM.

      Comment


        #4
        Hello MojoJojo,

        Thanks for adding that.

        This would be with an indicator that would be applied to a chart and would not be edited in the Chart style itself.

        So as long as you add the indicator with the code to change the BarBrush to every chart this will affect every chart.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you everyone, i've added it as an indicator on my charts.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          44 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          58 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          35 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          95 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          59 views
          0 likes
          Last Post PaulMohn  
          Working...
          X