Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to make a ray change shape?
Collapse
X
-
Hello,
Thank you for the question.
I believe I understand what you are trying to do, let me double check if this is correct.
You are drawing a ray once your condition becomes true and then you want to stop drawing the ray once you have reached this condition again is this correct?
I look forward to being of further assistance.
-
Thanks for your reply.
If a condition is given a ray is drawn. This is him.
If you later two bars close above or below that ray ray that change their appearance.
Then if that ray is traversed by two bars close above / below the ray ray disappears.
forgive my English.
Comment
-
Hello,
Thank you for the clarification.
If you are assigning Tag names to the Ray's you can simply call the remove statement like the following:
This is a simple example, you draw the Ray and assign "TagNameHere" as its tag or anything you want. Later when you want to remove it you can call RemoveDrawObject("TagNameHere"); to remove that specific object.Code:if (Close[0] > Close[1]) DrawRay("[B]TagNameHere[/B]", 0, Close[0], 10, Close[0], Color.Red); if(Close[0] < Close[1]) RemoveDrawObject("[B]TagNameHere[/B]");
Please let me know if I may be of additional assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
156 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
139 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment