Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
EasyLanguage to NinjaScript
Collapse
X
-
I would need a bit more context to the following: "So how could I search for say TL81 and assign it ?"
Is TL81 the IRay? So IRay TL81 = DrawRay();?
There should be no need to search for it, you have already assigned it by a name. Just call it's name:
TL81 = DrawRay(); // here you would change your settings
Comment
-
Hello,
If you have not assigned the ray to a variable, there would be no other way to access its instance other than to search for it or run a loop to find it.
From the questions, I could only see two ways of doing this. Either store the Ray as a variable when you create is as Patrick suggested:
IRay TL81 = DrawRay();
Later you would just use the variable name to call its properties: TL81
Otherwise if you did not create the ray and save that instance to a variable, you would need to loop through the objects to find it, an example of this can be found here: http://ninjatrader.com/support/forum...1&postcount=10
Please let me know if I may be of additional assistance.
Comment
-
Hello,
Thank you for the reply, I am glad you had resolved your question.
Regarding the last bar, if you are using COBC == true, you would need to wait for a tick to close that bar, if this is the last bar of the session this would be expected as there is no other data after that to close the final bar.
In the case you are using COBC == false and receive a tick, it would report as closed in that case but only if a tick is received that would close the bar.
Please let me know if I may be of further assistance.
Comment
-
My NS did not state CBOC so it would be true by default.
My chart is historical and it shows the full bar with the correct close on the chart. It is also the close of the session ie 4pm EST. The software works when it is not the last bar but does not work when it isthe last bar.
Comment
-
Hello,
Thank you for the reply.
Yes this would be expected as I had explained, If you are using COBC == true, you would need to wait for a new tick to close that bar. If this is the last bar on the chart and there is no tick after that bar in the session to close it, it would remain as the building bar.
With COBC == true the right most bar will always be the Building bar and the 0 bars ago or Close[0] would refer to the bar one position left of that bar or the last closed bar.
I look forward to being of further assistance.
Comment
-
can anyone help me with changing the appearance of the dot object. I can draw a dot but it has a certain style. How do I change the style and size. I am using:
DrawDot("AMBuy", false, value40, value49, Color.Green ) ;
I get a green dot with a white border.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment