Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ChartToolBarExample
Collapse
X
-
ChartToolBarExample
I'm currently using the ChartToolBarExample to change period parameters in some moving average indicators I've coded for my indi. When I make the changes using the charttoolbarexample buttons they update the current moving average periods as expected but I don't know how to make the indicator recalculate the new period for all previous bars as is done when you update the period of an EMA using the UI and all indis get recalculated. I've tried ForceRefresh() but it doesn't recalculate the previous bars like the UI does. Is it possible to do what I'm trying to do or not?
ThanksTags: None
-
Hello,
Thank you for the post.
I am not certain if this would be possible in the supported sense. I am certain there are likely ways to cause this reload in undocumented/unsupported ways but I would not be certain if the data then would be correct or if it would cause other problems.
I currently have a question into development on this to see if this is both supported and if there is a suggested way to do this.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Hello,
I wanted to reply back on this item after further review.
Currently there is no supported way to reload NinjaScript objects programmatically, unfortunately the framework is just not prepared to handle that type of request. You can easily get into problem areas where ninjascript reloads itself so this has not been implemented.
As such because there have been a number of requests for this it has been added as a feature request. Unfortunately this concept was not considered at the time of development so there would not be a suggested way to do this.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment