• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest detection

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

    Backtest detection

    Hi, how can i trigger some functions in strategy only in backtest?

    #2
    Hello Victor_Zelenyi,
    Thanks for your post.

    You can determine if your strategy is running in the Strategy Analyzer by doing something similar to:

    Code:
    if(IsInStrategyAnalyzer)
    {
        Print("The Strategy Is Running In The Strategy Analyzer");
    }
    Last edited by NinjaTrader_JoshG; 01-30-2019, 08:27 AM.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Thank you.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by barbic, Today, 03:01 AM
      0 responses
      2 views
      0 likes
      Last Post barbic
      by barbic
       
      Started by GARZONJ, Yesterday, 11:22 PM
      0 responses
      4 views
      0 likes
      Last Post GARZONJ
      by GARZONJ
       
      Started by GARZONJ, Yesterday, 09:41 PM
      0 responses
      3 views
      0 likes
      Last Post GARZONJ
      by GARZONJ
       
      Started by mike09, Yesterday, 07:37 PM
      0 responses
      11 views
      0 likes
      Last Post mike09
      by mike09
       
      Started by bebbus, Yesterday, 04:03 PM
      3 responses
      12 views
      0 likes
      Last Post bebbus
      by bebbus
       
      Working...
      X