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 mjairg, 07-20-2023, 11:57 PM
    3 responses
    213 views
    1 like
    Last Post PaulMohn  
    Started by TheWhiteDragon, 01-21-2019, 12:44 PM
    4 responses
    544 views
    0 likes
    Last Post PaulMohn  
    Started by GLFX005, Today, 03:23 AM
    0 responses
    3 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by XXtrader, Yesterday, 11:30 PM
    2 responses
    12 views
    0 likes
    Last Post XXtrader  
    Started by Waxavi, Today, 02:10 AM
    0 responses
    7 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Working...
    X