Also, sometimes closing and restarting NinjaTrader is the ticket.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Pro Tip: Sometimes removing and re-adding an Indicator will fix your problem
Collapse
X
-
Pro Tip: Sometimes removing and re-adding an Indicator will fix your problem
Things sometimes get goofy in the charts. If you've been making a lot of changes to your indicator or strategy and are experiencing a problem you just cant' figure out, I've found multiple times that removing the script from the chart and re-adding it fixes the problem. Sometimes you even need to re-create the chart.
Also, sometimes closing and restarting NinjaTrader is the ticket.Last edited by gbourque; 01-19-2024, 03:24 PM.Tags: None
-
Testing out your NinjaScript code changes, eh?Originally posted by gbourque View PostThings sometimes get goofy in the charts. If you've been making a lot of changes to your indicator or strategy and are experiencing a problem you just cant' figure out, I've found multiple times that removing the script from the chart and re-adding it fixes the problem. Sometimes you even need to re-create the chart.
If a simple right-click and 'Reload NinjaScript' doesn't
seem to bring in your changes, then, yeah, you may
need to remove/add the indicator -- esp if you've
added/deleted plots or other property grid items.
In the worst case, you may need to delete the chart
and/or start with a new chart.
In the truly worst case, you may need to completely
restart NinjaTrader.
-=o=-
For Strategies, I always remove/delete them, or I
just start a new Strategy Analyzer window, which is
where I do all of my test runs for exercising my new
code changes.
The Strategy Analyzer window doubles as a great
sandbox/testbed environment, since you can rerun
your strategy on the same historical dataset as much
as needed to find/isolate/fix problems -- the SA window
can feed you the same historical data repeatedly,
which means you can consistently reproduce most
any problem at will.
Just my 2˘.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
173 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
90 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
129 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
208 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
185 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment