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 felixolmo, Today, 09:35 PM
    0 responses
    6 views
    0 likes
    Last Post felixolmo  
    Started by nandhumca, Today, 08:47 PM
    0 responses
    7 views
    0 likes
    Last Post nandhumca  
    Started by BullyWig Trader, Today, 07:15 PM
    0 responses
    6 views
    0 likes
    Last Post BullyWig Trader  
    Started by ezrollin, Today, 05:13 PM
    1 response
    15 views
    0 likes
    Last Post ezrollin  
    Started by ineuron, Today, 04:29 PM
    0 responses
    8 views
    0 likes
    Last Post ineuron
    by ineuron
     
    Working...
    X