Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2 different BackBrushes

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

    2 different BackBrushes

    Good day,

    the script colors the background depending on two independent logics with two different colors. In order to undo the coloring in the case the condition changes back in the same bar, I set BackBrush = null; once the conition isn't anylonger true. But therefore the background gets only colored depending on the logic (with that color) that gets called last. Even if I use BackBrushes[0] instead, the first logic has no effect on the background.
    Is there any workaround except for only calling BackBrush on the new bar?

    Greetings

    #2
    Hello seykool,

    Unfortunately I am not certain I understand the question as it was worded. It seems like you are asking how to conditionally set the backbrush, is that correct? If you can provide a different description of the goal that will help to get a more specific answer.

    Comment


      #3
      Hi Jesse,

      I realized it isn't possible anyways since there are no BackBrush plots or the possibility to make it an object.
      I extended the second logic so that it can't disable the first logic.

      Greetings

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      83 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      45 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      65 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X