Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color type

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

    Color type

    I've been trying the following snippet in OnBarUpdate:

    Color clr = Color.FromArgb( A, B, C );
    DrawLine( name, true, value1, value2, value3, value4, clr, DashStyle.Dot, 1 );

    If I don't use the helper variable clr and pass the color directly the line plots fine, but when I pass it just like above the line is not plotting and the log is silent. What's the matter here?

    #2
    Originally posted by billitin View Post
    I've been trying the following snippet in OnBarUpdate:

    Color clr = Color.FromArgb( A, B, C );
    DrawLine( name, true, value1, value2, value3, value4, clr, DashStyle.Dot, 1 );

    If I don't use the helper variable clr and pass the color directly the line plots fine, but when I pass it just like above the line is not plotting and the log is silent. What's the matter here?
    Unfortunately I would not know, you could check one of the C# development forums since this question crosses into generic .NET development. If I did know, I would provide you with an answer.
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Barry Milan, Yesterday, 10:35 PM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    12 views
    0 likes
    Last Post terofs
    by terofs
     
    Started by nandhumca, Today, 03:41 PM
    0 responses
    8 views
    0 likes
    Last Post nandhumca  
    Working...
    X