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
Reload HIstorical Data In NinjaScript
Collapse
X
-
Reload HIstorical Data In NinjaScript
I am wondering if Ninja8 offers a way to programmatically refresh all data series or one specific one. This was asked back during the Ninja7 days but was not available unless one would employ an outside macro tool. Thanks in advance.Tags: None
-
Hello molecool,
While there is a way to do this, it comes with some warnings as you can see in the help guide. Please use caution if you use this method as this can cause heavy load or as noted it may become recursive.
If you have a different use from what the help guide suggests, I can also put in a feature request for a more specific option. Outside of this item, there is not necessarily a suggested way to do this programmatically.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Originally posted by NinjaTrader_Jesse View PostHello molecool,
While there is a way to do this, it comes with some warnings as you can see in the help guide. Please use caution if you use this method as this can cause heavy load or as noted it may become recursive.
If you have a different use from what the help guide suggests, I can also put in a feature request for a more specific option. Outside of this item, there is not necessarily a suggested way to do this programmatically.
I look forward to being of further assistance.
Isn't the entire chart supposed to refresh?
Comment
-
Hello molecool,
Thank you for the reply.
Can you provide more specifics on your test?
Although the help guide specifically states this should only be used with OnConnectionStatusUpdate, I did a quick test myself in OnBarUpdate and see the "Loading" in the top left of the chart after calling the method. It is possible that this will not work in all use cases based on the help guide comments, can you share more details on your test and the chart/dataseries setup?
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Jesse View PostHello molecool,
Thank you for the reply.
Can you provide more specifics on your test?
Although the help guide specifically states this should only be used with OnConnectionStatusUpdate, I did a quick test myself in OnBarUpdate and see the "Loading" in the top left of the chart after calling the method. It is possible that this will not work in all use cases based on the help guide comments, can you share more details on your test and the chart/dataseries setup?
I look forward to being of further assistance.
I copied the test to my production machine and tested it there where it worked.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ninza33, Today, 09:10 AM
|
1 response
9 views
0 likes
|
Last Post Today, 09:46 AM | ||
Started by goodknight777, Today, 08:43 AM
|
1 response
5 views
0 likes
|
Last Post Today, 09:25 AM | ||
Started by kramnor2001, Yesterday, 02:30 PM
|
3 responses
21 views
0 likes
|
Last Post
by kramnor2001
Today, 09:20 AM
|
||
Started by Padan, Today, 02:02 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 08:54 AM | ||
Started by Tim-c, Today, 08:36 AM
|
1 response
3 views
0 likes
|
Last Post Today, 08:45 AM |
Comment