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, An indicator can access all Scales on the chart, see here:
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.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by abelsheila, 05-14-2025, 07:38 PM
|
2 responses
39 views
0 likes
|
Last Post
![]()
by hglover945
05-16-2025, 03:48 PM
|
||
Started by nailz420, 05-14-2025, 09:14 AM
|
1 response
84 views
0 likes
|
Last Post
|
||
Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
|
0 responses
425 views
1 like
|
Last Post
|
||
Started by domjabs, 05-12-2025, 01:55 PM
|
2 responses
75 views
0 likes
|
Last Post
![]()
by domjabs
05-12-2025, 02:50 PM
|
||
Started by Morning Cup Of Trades, 05-12-2025, 11:50 AM
|
1 response
104 views
0 likes
|
Last Post
|
Comment