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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      56 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      133 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X