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!
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
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.JesseNinjaTrader Customer Service
-
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:
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.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 07:16 AM
|
3 responses
13 views
0 likes
|
Last Post
by ninza33
Today, 09:01 AM
|
||
Started by foxtrott21, Today, 08:27 AM
|
0 responses
1 view
0 likes
|
Last Post
by foxtrott21
Today, 08:27 AM
|
||
Started by jaypelle3, Today, 08:26 AM
|
0 responses
1 view
0 likes
|
Last Post
by jaypelle3
Today, 08:26 AM
|
||
Started by linkcou, Today, 07:01 AM
|
2 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 08:25 AM
|
||
Started by jaypelle3, Today, 08:25 AM
|
0 responses
6 views
0 likes
|
Last Post
by jaypelle3
Today, 08:25 AM
|
Comment