Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to determine if in back-test or live

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

    How to determine if in back-test or live

    Is there a way to problematically detect weather a strategy is running live or being run from the strategy analyzer?

    Note that `Historical` is true even for live strategies, at the beginning of the run.

    #2
    boaza, I would look into checking which account string you get from Account.Name. 'Backtest' would signify the SA run then in this case. Or you make a user input that needs to be set for example to a certain value if backtesting / optimization is done with the script.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by xmess777, Yesterday, 07:16 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by 8033075, Yesterday, 08:13 PM
    1 response
    34 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by futurenow, Yesterday, 06:13 PM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by trader3000a, Today, 07:34 AM
    6 responses
    23 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by focus333, Yesterday, 11:28 PM
    1 response
    23 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X