• 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

Is it possible to override Strategy Analyzer variables?

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

    #16
    I added a bunch of debug tracer "print to output window" statements to the strategy. As a result I think I already see a problem with my code. Just wanted to alert you so you don't waste time on bad input from me.

    I will update whenever I have anything of significance to report.

    Comment


      #17
      Someone could help or give a sample code on how to know if you are testing the strategy on the strategy analyzer not on replay?

      Comment


        #18
        Originally posted by edward_bell View Post
        Someone could help or give a sample code on how to know if you are testing the strategy on the strategy analyzer not on replay?
        bool IsMarketReplay = false;
        if (Bars.MarketData.Connection.Options.Provider == Cbi.Provider.Replay ) IsMarketReplay = true;

        Comment


          #19
          Hello edward bell,

          Thank you for your post and thanks to Koganam for their response.

          The following condition will also check if you are in Market Replay as well:
          Code:
          if(Bars.MarketData.Connection.Name == "Market Replay Connection")
          Please let me know if I may be of further assistance.
          Patrick H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Wolf1, Today, 08:26 PM
          0 responses
          7 views
          0 likes
          Last Post Wolf1
          by Wolf1
           
          Started by pparmley, Today, 04:30 PM
          0 responses
          9 views
          0 likes
          Last Post pparmley  
          Started by tonynt, Today, 04:21 PM
          0 responses
          4 views
          0 likes
          Last Post tonynt
          by tonynt
           
          Started by williamzz, Today, 03:44 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Miguel_88, Yesterday, 06:41 PM
          2 responses
          26 views
          0 likes
          Last Post Miguel_88  
          Working...
          X