Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Changing historical bar's color

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

    Changing historical bar's color

    Hi Support,

    I read there is a way to change the color of the bar, by using below line of code, to color the current bar to green.
    BarColor = Color.Green

    But,how can I change a previous bar color? Like for example, I want to change the 5th previous bar, can I do like
    BarColor[5] = Color.Red
    so that it changes the old bar colors to red. Based upon a condition that happened in the current bar.




    Thanks
    Commodity_trader

    #2
    Unfortunately this is not supported.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh,

      Any workaround for this?

      Can you please consider to add this to the feature enhancement list. Would be really useful to change color of historical bars.

      Thanks
      Commodity_trader

      Comment


        #4
        A hint is to take a look at the implementation in the CandleStickPattern system indicator.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Josh, will take a look at the candlepattern.

          Would be nice, if you can please consider to add this feature to the future enhancement list though.

          Thanks
          Commodity_trader

          Comment


            #6
            Thanks. I will forward it to development.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Josh - Is ChartControl part of C#?

              Comment


                #8
                Right ChartControl is C#. Unfortunately it is beyond the scope of what we can support.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  No problem. You people (gender neutral) do a great job. MS C# reference pages can sometimes be bear to manuever through. My C# programming skills are pretty good, but finding the appropriate topics in the Microsoft reference pages can sometimes be a real pain. Therefore, the Candlestick code was very helpful.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Mongo, Today, 11:05 AM
                  4 responses
                  14 views
                  0 likes
                  Last Post Mongo
                  by Mongo
                   
                  Started by traderqz, Today, 12:06 AM
                  7 responses
                  14 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by Skifree, Today, 03:41 AM
                  5 responses
                  13 views
                  0 likes
                  Last Post Skifree
                  by Skifree
                   
                  Started by traderqz, Yesterday, 09:06 AM
                  5 responses
                  35 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by guillembm, Today, 11:25 AM
                  1 response
                  6 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Working...
                  X