Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pro Tip: Sometimes removing and re-adding an Indicator will fix your problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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.

    #2
    Originally posted by gbourque View Post
    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.
    Testing out your NinjaScript code changes, eh?

    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˘.

    Comment


      #3
      Thanks for the pro tip.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      45 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      31 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X