• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 Background brush

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

    NT8 Background brush

    Hello

    How to get chart control background brush or color information in NT8?
    BackBrushes returns null for any barsAgo, e.g. BackBrushes[0] == null.

    #2
    Hello,

    Thank you for the question.

    I wanted to check, are you trying to determine a bar color to form a condition such as knowing if a bar is an up or down bar?

    If so, the BackBrush property is actually not going to be helpful in this type of case. The BackBrush is simply a empty slot that could or could not contain a brush. This depends if a custom BackBrush has been set for this bar. If no custom brush is used for that bar, the chart styles up or down color is used and the BackBrush would be null.

    For any type of condition such as up/down bars you would need to utilize a price condition instead.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      No, I need to get background color (or brush) for whole chart, not for candle bodies.

      Comment


        #4
        Hello,

        There is a difference between the individual background brush for each bar, and the overall style on the chart. If you are looking for the brushed used when you configure the properties of the chart (the entire chart background) that would be a different property.

        http://ninjatrader.com/support/helpG...b=chartcontrol

        The ChartBackground property would be what the user sets from the user interface as the default color for the chart background.

        If you are instead trying to determine the background for a specific bar, you had the correct syntax to start with but this only allows you to set a background color for that bars slot, it would be empty otherwise.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Ty

          Btw I found error in help
          "Property Value
          A ChartControlProperties object containing..."

          Need to be replaced by "Properties value..."

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Ilpropio, Yesterday, 09:45 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by sgordet, Yesterday, 10:31 PM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_EricB  
          Started by Revan, Yesterday, 05:44 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by superg3, Yesterday, 07:57 PM
          0 responses
          4 views
          0 likes
          Last Post superg3
          by superg3
           
          Started by Longhornmark, Yesterday, 07:06 AM
          5 responses
          36 views
          0 likes
          Last Post nkhoi
          by nkhoi
           
          Working...
          X