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 geotrades1, Today, 10:02 AM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by ender_wiggum, Today, 09:50 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by rajendrasubedi2023, Today, 09:50 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by bmartz, Today, 09:30 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by geddyisodin, Today, 05:20 AM
          3 responses
          26 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X