Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RemoveDrawObjects "all bars"

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

    RemoveDrawObjects "all bars"

    Hello,

    I know from forum and help guide how to use Backcolor/BackColorSeries and to set eg BackColor[0]...[1]=Color.Empty;

    but how to have BackColor.ColorEmpty for all bars on the chart and not to refer to each bar?

    Thank you
    Tony

    #2
    Hello Tony,

    I am not aware of way to set the color of all the bars on the chart at the same time. It has to be looped and set or has to be set bar by bar as OnBarUpdate progresses.

    For all the colors of the bars to change would mean we couldn't tell if its an up bar or a down bar. So these settings are kept in the Data Series window from a chart, and can be carried in a template, but are not accessible from a script (using supported methods).

    Again, I'm not aware of away, but you might be able to dig through the Data Series window and find up and down bar color settings. This would be 100% unsupported to do.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea,

      very sorry for inaccurate translation or explanation.

      I mean how to set the BACKCOLOR=COLOR.EMTPY for all bars of the chart and not only the backcolorseries[0] or backcolorseries[1].....

      I dont mean the color of the bars. I mean the backcolor behind all bars with backcolor=color.emtpy.

      Thank yout
      Tony

      Comment


        #4
        Tony,

        Sorry I read that wrong.

        The situation is the same. The backcolor is set in the Properties of the Chart which is saved in the workspace and in the template.

        You would have to loop or set this on each bar in OnBarUpdate to set this from a script.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by prisonbreaker82, 02-24-2024, 11:16 AM
        3 responses
        36 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by bill2023, Today, 08:21 AM
        0 responses
        2 views
        0 likes
        Last Post bill2023  
        Started by KonAdams, Yesterday, 10:53 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geotrades1, Today, 07:54 AM
        3 responses
        8 views
        0 likes
        Last Post geotrades1  
        Started by wuannetraam, Today, 08:20 AM
        0 responses
        3 views
        0 likes
        Last Post wuannetraam  
        Working...
        X