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.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator that I made Recalls BackBrush Limit When Reached
Collapse
X
-
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.Tags: None
-
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>
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
140 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment