Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cutting off a ray to make a line
Collapse
X
-
Cutting off a ray to make a line
Pretty basic question. When I draw a ray, I often want to cut it off later. One way I can do that is to just delete the ray and redraw it as a line instead, but that's cumbersome if the ray spans several days or more. Is there a way to just cut off the rest of a ray?Last edited by Yellowstone; 04-02-2014, 11:07 AM.Tags: None
-
They are just objects. Have you thought about creating a method to create a composite object, and use parameters to cut off the latter part?Originally posted by Yellowstone View PostPretty basic question. When I draw a ray, I often want to cut it off later. One way I can do that is to just delete the ray and redraw it as a line instead, but that's cumbersome if the ray spans several days or more. Is there a way to just cut off the rest of a ray?
Then you just call the method, with "ray" to draw the whole thing, and with anything else to draw only the line part.Code:private void DrawCompositeLineOrRay(string type, ...) { DrawLine(...); if (type.ToLower() == "ray") DrawRay(...) return; }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
115 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
61 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
40 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
43 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
82 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment