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 refer to the y value a drawn horizontal line?
Collapse
X
-
Hello Pete77,
Thanks for your post.
The easy way would be for your indicator to save the Open price of the 8:30 bar. But I don't know what your subsequent lines are developed from but again if you can pull those from the price data would be the best.
Otherwise, you can loop through the drawing objects on the chart, find the lines of interest and then pull the Y values of those draw objects.
Please see the help guide here for an example: https://ninjatrader.com/support/help...rawobjects.htm
Paul H.NinjaTrader Customer Service
-
Hello Pete77,
Thanks for your reply.
Yes, "you can loop through the drawing objects on the chart, find the lines of interest and then pull the Y values of those draw objects.
Please see the help guide here for an example: https://ninjatrader.com/support/help...rawobjects.htm"Paul H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Graci117, Today, 11:40 PM
|
0 responses
5 views
0 likes
|
Last Post
by Graci117
Today, 11:40 PM
|
||
Started by BIOK.NT, Today, 01:56 PM
|
2 responses
11 views
0 likes
|
Last Post
by BIOK.NT
Today, 11:39 PM
|
||
Started by i2ogu3, Today, 11:31 PM
|
0 responses
4 views
0 likes
|
Last Post
by i2ogu3
Today, 11:31 PM
|
||
Started by RDTrader16, Today, 10:19 PM
|
0 responses
10 views
0 likes
|
Last Post
by RDTrader16
Today, 10:19 PM
|
||
Started by gemify, 03-08-2023, 08:02 AM
|
9 responses
150 views
0 likes
|
Last Post
by culpepper
Today, 10:14 PM
|
Comment