Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Drawing bug?

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

    Drawing bug?

    Hi,

    I think I have found a bug related to drawing of lines.

    First I draw a line using DrawRay like this:
    DrawRay( str, x0, y0, x1, y1, chcolor, DashStyle.Solid, linewidth );

    Then I re-use the same string to draw a line (not a Ray!)
    DrawLine( str, x0, y0, x1, y2, chcolor, DashStyle.Solid, linewidth );

    I was expecting the Ray to change into a line, but that is not happening. It will draw a ray again with the new coordinates. Maybe it is bad practice to do it this way, without first removing the object. But since it does change the coordinates but not the type of line ('Line' or 'Ray') I consider it a bug.

    Of course you can work around this by first removing the line before redrawing, but in my specific application this is a bit tricky...
    Last edited by FireFly; 12-24-2007, 09:42 AM.

    #2
    Thanks for reporting. I suspect that since internally there is a Ray object already defined by your "tag" that is what is being changed. Will check into it. Likely approach would be to throw a log message saying that the "tag" is of type "Ray" and can not be changed by the calling method DrawLine() etc...
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GwFutures1988, Today, 02:48 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    6 responses
    30 views
    0 likes
    Last Post ScottWalsh  
    Started by frankthearm, Today, 09:08 AM
    10 responses
    36 views
    0 likes
    Last Post frankthearm  
    Started by mmenigma, Today, 02:22 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by NRITV, Today, 01:15 PM
    2 responses
    9 views
    0 likes
    Last Post NRITV
    by NRITV
     
    Working...
    X