In an indicator, I want to draw horizontal lines that span individual sessions. For the current live session, can Draw.Line() accept a future date to define where the line ends, where the future date would the date/time of the end of the session?
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
Draw.Line() and future dates
Collapse
X
-
Draw.Line() and future dates
Hi,
In an indicator, I want to draw horizontal lines that span individual sessions. For the current live session, can Draw.Line() accept a future date to define where the line ends, where the future date would the date/time of the end of the session?Tags: None
-
Hello grose,
Thank you for the post.
It is technically possible to place objects specifically in the future, however this is not documented so there are not specific expectations surrounding this concept.
You can either use a negative number of bars ago which represents the bar you want to place the object on in the future or use a specific date. Assuming the date is visible on the chart, it should be drawn. As there are no guidelines surrounding this use case I couldn't say if you would run into any problems or not, this would be something you can experiment with. Another user recently asked a similar question, you can find the conversation here: https://ninjatrader.com/support/foru...-extend-a-line
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:10 AM
|
0 responses
3 views
0 likes
|
Last Post
by Waxavi
Today, 02:10 AM
|
||
Started by TradeForge, Today, 02:09 AM
|
0 responses
7 views
0 likes
|
Last Post
by TradeForge
Today, 02:09 AM
|
||
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
||
Started by elirion, Today, 01:36 AM
|
0 responses
4 views
0 likes
|
Last Post
by elirion
Today, 01:36 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 01:30 AM |
Comment