I'm super new to using NinjaScript and would love some insight on what I'm doing wrong here. So I know you can set the displacement of an indicator if you're just displaying an indicator on a graph but I wanted to use this in a strategy and saw it wasn't an option in the strategy builder. I decided to unlock the code and now when I try to set displacement it seems to only change it for both indicators. I know that I can change the specific bars ago value for both indicators but is there a way to change the displacement for a specific indicator on my strategy? Here is a screenshot of the code:
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cannot set displacement for singe indicator
Collapse
X
-
Cannot set displacement for singe indicator
Hey guys,
I'm super new to using NinjaScript and would love some insight on what I'm doing wrong here. So I know you can set the displacement of an indicator if you're just displaying an indicator on a graph but I wanted to use this in a strategy and saw it wasn't an option in the strategy builder. I decided to unlock the code and now when I try to set displacement it seems to only change it for both indicators. I know that I can change the specific bars ago value for both indicators but is there a way to change the displacement for a specific indicator on my strategy? Here is a screenshot of the code:1 PhotoTags: None
-
Hello Luke Heinrich,
Thank you for your post.
Unfortunately, displacement does not work for indicators added via AddChartIndicator() in NinjaTrader 8.
There is currently a feature request for provide a way to set indicator properties such as Displacement for indicators added via AddChartIndicator() from a strategy. This request is being tracked via SFT-1328, I will add your vote to this feature request.
Please let us know if you have any further questions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 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
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment