Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator that I made Recalls BackBrush Limit When Reached

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

    Indicator that I made Recalls BackBrush Limit When Reached

    Hello, I have made an indicator that sets the backbrush color depending on if I have a strong or weak trend, Bull or Bear Strength, & it continues reaching a max number of bars then stops painting new bars new colors. When it will stop it has reached a limit to how many bars it can paint & then on last color that it painted, then it continues to paint only the one color until it is started a new.

    I wonder if NT support can help me w finding out if there is a call to the max number of bars an indicator can paint & then refresh the indicator. I want to subscribe to that class/method in the indicators history when it reaches the limit or painted bars to create a method to tell it to restart, and one start painting new bars at the start rather than ever stopping painting bars.

    #2
    Hello LoganJKTrader,

    Thanks for your post.

    You may have up to 65,535 unique BackBrush instances as noted in the BackBrush help guide page linked below. This is applicable per NinjaScript instance.

    BackBrush: https://ninjatrader.com/support/help.../backbrush.htm

    You likely need to adjust your code to use fewer brushes to avoid this. If you are using custom Media brushes, you could consider using a variable within the scope of the class that holds a brush that can be used as needed. Or, you could consider using pre-defined System.Windows.Media.Brushes instead of custom Media brushes.

    See this help guide page from my colleague Jim for more information about this topic regarding brush limits: https://ninjatrader.com/support/foru...775#post749775

    ​Let me know if I may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    562 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X