Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Horizontal line that starts at a specific bar/time
Collapse
X
-
Horizontal line that starts at a specific bar/time
Are there any indicators for drawing a simple horizontal line that start at say 10:50 am? instead of drawing a line that goes for infinity in both directions backwards and forwards in time, I would like one that starts at a specific time and only goes forward from there. If i could right click and add it it would be great.
ThanksTags: None
-
Hello markus3500,
Thanks for opening the thread.
I am not aware of a specific indicator that accomplishes this, but it would not be hard to write an indicator that places a Ray drawing object from the time specified into the future.
I'll include some resources that can point you in the right direction for creating indicators and using DrawRay(), but I should also note that this task could be accomplished by manually placing a Ray drawing object and adjusting its anchors to be at the time specified.
If you are new to creating NinjaScripts, I recommend reviewing the tutorials we have in the NinjaTrader 7 help guide and then referencing the DrawRay() documentation for adding the DrawRay(). You may also wish to get more acquainted with NinjaScripts by using the Strategy Wizard to construct the logic in a strategy.
Indicator tutorials for NinjaTrader 7 can be found here - https://ninjatrader.com/support/help...ndicators2.htm
DrawRay() - https://ninjatrader.com/support/help...t7/drawray.htm
Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBiNYsf1e8
Please let me know if we can be of further assistance.
-
Cant believe i never used Ray..... problem solved .... this works perfect for what i need
many thanks
Originally posted by NinjaTrader_Jim View PostHello markus3500,
Thanks for opening the thread.
I am not aware of a specific indicator that accomplishes this, but it would not be hard to write an indicator that places a Ray drawing object from the time specified into the future.
I'll include some resources that can point you in the right direction for creating indicators and using DrawRay(), but I should also note that this task could be accomplished by manually placing a Ray drawing object and adjusting its anchors to be at the time specified.
If you are new to creating NinjaScripts, I recommend reviewing the tutorials we have in the NinjaTrader 7 help guide and then referencing the DrawRay() documentation for adding the DrawRay(). You may also wish to get more acquainted with NinjaScripts by using the Strategy Wizard to construct the logic in a strategy.
Indicator tutorials for NinjaTrader 7 can be found here - https://ninjatrader.com/support/help...ndicators2.htm
DrawRay() - https://ninjatrader.com/support/help...t7/drawray.htm
Strategy Wizard 301 - https://www.youtube.com/watch?v=FmBiNYsf1e8
Please let me know if we can be of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
579 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 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
554 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment