Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Automatically refresh chart every few minutes
Collapse
X
-
I have attempted to use SendKeys.Send("{F5}); although when I invoke the visuals on chart are never redrawn. is there a specific state which the sendkeys need to be called or after? I have also tried forcerefresh(); which usually the same result as my sendkeys line as well as a Draw.Dot(); RemoveDrawObject; that comes right after and that usually does no effect instead just wanting something that will refresh the chart even right now I would accept removing drawn objects, although I am able to access a dynamic config into the properties and simply manually adjust the period which bars calculate backbrushAll (which is the function I am attempting to reload bars caluclation) and when I manually adjust the period, no reload is required and the backbrushAll continues being painted, but having it automated is more of the solution if I can find out what causes the envoke of the config that might allow me to increment the period's value, not gotten to that but working it out. Help to envoke a successful refresh appreciated.Last edited by LoganJKTrader; 07-13-2022, 03:38 PM.
-
Hi Tavor. I'm really glad I was able to find this thread. I have the exact same goal as you. I really need my indicator to see each bar as historical. It would be wonderful if I could just refresh one bar at a time as soon as it's done so it would be quicker, rather than "reloading all historical data" or "reloading ninjascript" which is my go to method right now. Did you ever figure out a solution to this?Originally posted by Tavor View PostCould you modify a custom NinjaScript indicator to send the F5 key to the operating system using the C# method SendKeys(), but perform this at the close of each bar and only refresh the current closed bar, not the chart history? I really need the indicator to see each bar as historical. The indicator historical plots are way better than the live market plots.
The best I've got right now is a new chart window, loaded only with the indicator in question, and then another chart window with everything else on it. Whenever I see a trade entry setting up, I reload the ninjascript on the 1 chart with the indicator and it is relatively fast.
Thank you.
Comment
-
Hi Yeti101, Thank you for your post. I had temporarily stopped using the indicator that I wanted to be reloaded on a per bar basis because I wasn't able to figure out a solution. I like your suggestion about the 2 chart window, but the only way I know if I have a trade setup is strictly based on the reload ninjascript at the close of each bar. The indicator gives completely different signals with live data and I don't want to trade those signals so I can't identify any possible trade setups using the indicator in the live market. I haven't given up though on finding a solution. I've made contact with reputable coder within the NinjaTrader Ecosystem and I'm going to ask him about our situation. I'll post back as soon as I get any feedback. Thanks!Originally posted by yeti101 View Post
Hi Tavor. I'm really glad I was able to find this thread. I have the exact same goal as you. I really need my indicator to see each bar as historical. It would be wonderful if I could just refresh one bar at a time as soon as it's done so it would be quicker, rather than "reloading all historical data" or "reloading ninjascript" which is my go to method right now. Did you ever figure out a solution to this?
The best I've got right now is a new chart window, loaded only with the indicator in question, and then another chart window with everything else on it. Whenever I see a trade entry setting up, I reload the ninjascript on the 1 chart with the indicator and it is relatively fast.
Thank you.
Comment
-
Hi Tavor, thank you so much for your reply!Originally posted by Tavor View Post
Hi Yeti101, Thank you for your post. I had temporarily stopped using the indicator that I wanted to be reloaded on a per bar basis because I wasn't able to figure out a solution. I like your suggestion about the 2 chart window, but the only way I know if I have a trade setup is strictly based on the reload ninjascript at the close of each bar. The indicator gives completely different signals with live data and I don't want to trade those signals so I can't identify any possible trade setups using the indicator in the live market. I haven't given up though on finding a solution. I've made contact with reputable coder within the NinjaTrader Ecosystem and I'm going to ask him about our situation. I'll post back as soon as I get any feedback. Thanks!
I too stopped using the indicator because I could not get the signals I wanted (AKA the ones generated on historical data with tick replay turned off). I went a bit crazy doing thorough testing with tick replay on and off, market replay versus live data, reloading historical data & ninjascript, and trying out Tradovate data feed instead of Rhithmic. Tried many combinations but no ideal result.
What was especially frustrating was that I would reload historical data/ninjascript and the signal generated by the indicator would change. And I would reload again, and it would change yet again. Only signals that were formed a certain amount of time ago wouldn't change. The local PA signals could change several times per reload, despite them apparently working on historical data in the live market.
Have you heard anything useful from the programmer? My email is [redacted] if you'd like to speak further there.
Comment
-
Thanks Chelsea, I sent a private message to Tavor.Originally posted by yeti101 View Post
Hi Tavor, thank you so much for your reply!
I too stopped using the indicator because I could not get the signals I wanted (AKA the ones generated on historical data with tick replay turned off). I went a bit crazy doing thorough testing with tick replay on and off, market replay versus live data, reloading historical data & ninjascript, and trying out Tradovate data feed instead of Rhithmic. Tried many combinations but no ideal result.
What was especially frustrating was that I would reload historical data/ninjascript and the signal generated by the indicator would change. And I would reload again, and it would change yet again. Only signals that were formed a certain amount of time ago wouldn't change. The local PA signals could change several times per reload, despite them apparently working on historical data in the live market.
Have you heard anything useful from the programmer? My email is [redacted] if you'd like to speak further there.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment