Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Y coordinates for values plotted ScaleJustification.Left
Collapse
X
-
Y coordinates for values plotted ScaleJustification.Left
I have an indicator with two series plotted. Primary series is plotted with ScaleJustification.Right, and second series is plotted with ScaleJustification.Left. In Ninjascript how can I get Y coordinates for the second series values plotted with ScaleJustification.Left?Tags: None
-
I should note that I do have a workaround, which is to create a second indicator running on my second series and assigned to the same panel but with output to the left scale. OnRender for this second indicator operates with ScaleJustification.Left where I can get the Y coordinates for my second series and communicate those values to the other indicator as static or common variables through an Add-On. This works. It is clumsy. It may not be the most efficient approach.
-
HI jvanelli, thanks for posting. ScaleJustification is a property of the indicator and not the Plot objects. To access data from each Plot you can use the Values[][] array. e.g. Values[0][0] for the first plot and Values[1][0] for the second plot.
Kind regards,
-ChrisLChris L.NinjaTrader Customer Service
Comment
-
Hi jvanelli, An indicator can access all Scales on the chart, see here:
https://ninjatrader.com/support/help...chartpanel.htm
One indicator can create an object of the other indicator to get its Series values, and use GetYByValue() for the chart scale in the above collection. That would be the best way to get the y coordinate without directly accessing it or sharing it through an addon.
Chris L.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Diezguinho, Yesterday, 01:36 PM
|
6 responses
38 views
0 likes
|
Last Post
![]()
by Diezguinho
Today, 11:26 AM
|
||
Started by tanas.eduard, 08-07-2023, 10:06 AM
|
11 responses
198 views
1 like
|
Last Post
|
||
Started by tkaboris, Today, 11:06 AM
|
0 responses
8 views
0 likes
|
Last Post
![]()
by tkaboris
Today, 11:06 AM
|
||
Started by jrhus, Today, 11:04 AM
|
0 responses
8 views
0 likes
|
Last Post
![]()
by jrhus
Today, 11:04 AM
|
||
Started by wzgy0920, Yesterday, 01:13 AM
|
5 responses
33 views
0 likes
|
Last Post
|
Comment