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 nleitman, Yesterday, 11:46 AM
    12 responses
    32 views
    0 likes
    Last Post nleitman  
    Started by MSerag, Yesterday, 11:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by dcriador, Yesterday, 01:43 AM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by James650, Today, 08:25 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Rogers101, 05-05-2024, 11:30 AM
    14 responses
    40 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X