Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

realtime versus backtest

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

    realtime versus backtest

    Hello,
    is there any way to find out from within a strategy, if it was started from graph (real time) or from backtesting?

    Thank you
    Vladislav

    #2
    You can use if (Historical) to figure out if it is backtesting historical data or real data.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Historical property is not exactly, what I need.
      "When running a live strategy, this property will be true until the strategy starts processing real-time data."
      But I need to know, if I am backtesting or not already in Initialize section to set some parameters differently. Is there any way?

      Comment


        #4
        Easiest is to define an user input for this then (i.e. backtest value 1, live 2...) and check it off in your code.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        369 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        572 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X