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 Mikey_, 03-23-2024, 05:59 PM
|
3 responses
49 views
0 likes
|
Last Post
by Sam2515
Today, 01:47 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
7 responses
17 views
0 likes
|
Last Post
by f.saeidi
Today, 01:32 PM
|
||
Started by Russ Moreland, Today, 12:54 PM
|
1 response
6 views
0 likes
|
Last Post Today, 01:01 PM | ||
Started by philmg, Today, 12:55 PM
|
1 response
7 views
0 likes
|
Last Post Today, 01:00 PM | ||
Started by TradeForge, 04-19-2024, 02:09 AM
|
2 responses
32 views
0 likes
|
Last Post
by TradeForge
Today, 12:32 PM
|
Comment