• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

timezonecolor from NinjaTrader_Jesse

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

    timezonecolor from NinjaTrader_Jesse

    I get the last few days a strange message, although I use this indicator already a long time. I watched in the code but have no clue what the problem is.

    Click image for larger version

Name:	2020-02-26 22_53_26-Control Center - Log.jpg
Views:	27
Size:	63.6 KB
ID:	1088611

    #2
    Hello marcus2300,

    This conversion dynamically creates brushes within the script's OnBarUpdate method. On a chart where a lot of data is loaded, the script can have the potential to create over 65535 brushes, which would exceed the limit for Windows Media Brushes.

    The script could be modified so that the RGB values it creates for the brushes are normalized to smaller range than 255. For example, if the each RGB value is limited to 0-40 instead of 0-255, the number of brushes that the scripts can make would be less than this limit (1 * 40 * 40 * 40 < 65535) or ( A * R * G * B < Number of possible brushes)

    We wanted to keep the script consistent with the original NinjaTrader 7 version and decided to leave the script's logic as is since this error would only be encountered when the script is used for a long time or on a chart with a lot of data.

    If there is enough impact here, we can make changes, but this would reduce the "color resolution" and limit the appearance of the indicator.

    Let us know if you have any questions.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by momchi, Today, 10:09 PM
    0 responses
    1 view
    0 likes
    Last Post momchi
    by momchi
     
    Started by crokusek, Today, 09:56 PM
    0 responses
    2 views
    0 likes
    Last Post crokusek  
    Started by crokusek, Today, 09:43 PM
    0 responses
    2 views
    0 likes
    Last Post crokusek  
    Started by Gregory Arkadin, Today, 03:31 PM
    0 responses
    14 views
    0 likes
    Last Post Gregory Arkadin  
    Started by cutzpr, Today, 03:27 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X