I am using the following RGB format for variable rendering:
Brush myBrush = new SolidColorBrush(Color.FromRgb(Convert.ToByte(var1), Convert.ToByte(var2), Convert.ToByte(var3)));
The indicator works perfect for any size tick charts. However, in some cases it will not draw for small minute (1m, 2m, etc) charts and some other bar types and an error is reported in the log window:
Indicator "": Error on calling 'OnBarUpdate method on bar #: Value was either too large or too small for unsigned byte.
What is "unsigned byte"? Can you please help with interpretation of this error? Any alternative code snippets for defining myBrush without having to convert to byte for NT8?
Note: The above code without Convert to Byte worked fine for NT7, but not for NT8.
Many thanks.
Comment