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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
48 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment