Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 andrewtrades, Today, 04:57 PM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by chbruno, Today, 04:10 PM
          0 responses
          3 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by josh18955, 03-25-2023, 11:16 AM
          6 responses
          436 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          7 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          19 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X