Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Using a Real-Time only Indicator in an Automated Strategy

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

    Using a Real-Time only Indicator in an Automated Strategy

    I tried using the DeltaBuySellVolume indicator in an automated strategy and when I tried to
    backtest it, NT locked up. Makes sense in retrospect since the strategy was trying to use an indcator that had no values in the backtested data. Is there a simple code I could add to a particular strategy to prevent it from trying to run against back test data and thereby locking up NT? I understand I will not be able to test the strategy in a standard back test environment but I don't want to accidentally do this again. Also, is there any plan to add this "real-time" only data set to the existing data already included in backtesting? The DeltaBuySellVolume data is incredibly useful in trading and automated trading but the fact that it doesn't exist in backtested data greatly limits it's utility in any kind of automated strategy.
    Thanks
    DaveN

    By the way, here is the line of code that blew up NT.

    Code:
    				&& DeltaBuySellVolume("BR").Cumulative[0] > 0)

    #2
    Hello DaveN,

    You may use the "Historical" method that will tell if you are running your Script is running on Historical data or real-time data. Here is a link to our Help Guide below that has an example of this that you may view.



    As for the Level II data being saved, I will forward your suggestion to our development team for consideration on future releases of NinjaTrader.
    JCNinjaTrader Customer Service

    Comment


      #3
      Worked perfectly. Thanks
      DaveN

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      40 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X