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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        71 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        143 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        76 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        47 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        51 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X