I'm a reasonably competent Java programmer, but I'm brand new to NT and what I can't figure out is, when I recompile the code for my indicator (F5 in the editor), how do I get the indicator to refresh those changes in the chart window? I've tried Reload NinjaScript (F5) in the chart window, and it does not show the changes I made in the code. If I add another instance of the indicator, that one will show the changes while the original instance is unchanged. Removing and re-adding the indicator (and setting the parameters) is really annoying to do every time I recompile. Am I missing something?
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
Dumb question about refreshing chart after recompile
Collapse
X
-
Dumb question about refreshing chart after recompile
This feels like a dumb question, but I have been looking for the answer for a couple hours now, and I'm starting to feel like I'm wasting my time so I'll ask it here.
I'm a reasonably competent Java programmer, but I'm brand new to NT and what I can't figure out is, when I recompile the code for my indicator (F5 in the editor), how do I get the indicator to refresh those changes in the chart window? I've tried Reload NinjaScript (F5) in the chart window, and it does not show the changes I made in the code. If I add another instance of the indicator, that one will show the changes while the original instance is unchanged. Removing and re-adding the indicator (and setting the parameters) is really annoying to do every time I recompile. Am I missing something? -
Hi wheels,
I have programmed hundreds of indicators. The way I do is:- After making changes in the editor, press F5 to recompile
- After that, go to the chart and press F5 again to refresh the indicator
In other words, you are doing this correctly. So no worries here.
Still don't see the changes?
Thanks.
Pi
-
Not all changes will be applied, when the chart is refreshed via F5.
In some cases - and that comprises changes in the Initialize() section of the indicator and changes that affect the plots - it is necessary to remove the indicator from the chart and then add it again.
Comment
-
Hello Wheels,
Harry is correct here. If you are making changes to the UI for the Indicator settings and plots you will not be able to refresh the NinjaScript F5 but will need to remove and add it back in to see the changes.
Anything else such as data or OnBarUpdate() logic will be refreshed on the chart when you hit F5Cal H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by JohnS52, 03-22-2024, 08:06 AM
|
4 responses
27 views
0 likes
|
Last Post
by JohnS52
Today, 02:30 PM
|
||
Started by RaygunWizzle, Yesterday, 08:52 PM
|
2 responses
10 views
0 likes
|
Last Post
by RaygunWizzle
Today, 02:26 PM
|
||
Started by carnitron, 03-25-2024, 01:59 PM
|
11 responses
50 views
0 likes
|
Last Post
by carnitron
Today, 02:18 PM
|
||
Started by Gerik, 12-21-2023, 08:20 AM
|
15 responses
202 views
0 likes
|
Last Post
by Mindset
Today, 02:06 PM
|
||
Started by visvabalaji, Today, 02:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by visvabalaji
Today, 02:04 PM
|
Comment