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
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
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.Gaby V.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Pep de lou, Today, 08:14 PM
|
2 responses
15 views
0 likes
|
Last Post
by bltdavid
Today, 08:57 PM
|
||
Started by fingers, 12-15-2023, 08:44 AM
|
6 responses
136 views
0 likes
|
Last Post
by bltdavid
Today, 08:42 PM
|
||
Started by algospoke, 05-13-2024, 06:53 PM
|
4 responses
32 views
0 likes
|
Last Post
by algospoke
Today, 06:16 PM
|
||
Started by dtl-saw, 12-29-2022, 09:12 AM
|
46 responses
3,193 views
1 like
|
Last Post
by sonia0101
Today, 05:48 PM
|
||
Started by AlphaOptions, 06-18-2013, 08:24 AM
|
7 responses
2,186 views
0 likes
|
Last Post Today, 05:47 PM |
Comment