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 Barry Milan, Today, 10:35 PM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by WeyldFalcon, 12-10-2020, 06:48 PM
    14 responses
    1,427 views
    0 likes
    Last Post Handclap0241  
    Started by DJ888, Yesterday, 06:09 PM
    2 responses
    9 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    40 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Today, 08:51 AM
    2 responses
    16 views
    0 likes
    Last Post bill2023  
    Working...
    X