Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strategy - running in Strategy Analyser

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

    Strategy - running in Strategy Analyser

    Hello,
    I have strategy, which I add into chart. This strategy creates control panel (window)... I want to use this strategy in analyser to backtest results, but i do not want to show this wanted.
    Is there a way to detect, if strategy is running "in chart" or in "strategy analyser"?

    Thanks Paul

    #2
    Hi, the Category property will give you the information you need

    Comment


      #3
      Hello kujista,

      Thanks for posting.

      Any strategy enabled from a chart will appear in the Strategies tab of the Control Center. Strategies that are being backtested in the Strategy Analyzer do not appear in this tab. I've provided a link below with more information about the Strategy Analyzer:



      Please let me know if I may be of further assistance.
      Tyler M.NinjaTrader Customer Service

      Comment


        #4
        I meant something like
        if (startegy run in analyzer) { print runníng from analyzer}

        Comment


          #5
          Hello Paul,

          Thanks for your reply.

          You could check the account name:

          if (Account.Name == "Backtest")

          Print("In Strategy Analyzer");


          A non-automatic way, that would not be difficult either, would be to add an Input of the bool type that you set the default to true and when running in the market analyzer it would be a parameter that you could turn off with a simple uncheck of the check box.
          Paul H.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by arvidvanstaey, Today, 02:19 PM
          0 responses
          2 views
          0 likes
          Last Post arvidvanstaey  
          Started by mmckinnm, Today, 01:34 PM
          3 responses
          5 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by f.saeidi, Today, 01:32 PM
          2 responses
          6 views
          0 likes
          Last Post f.saeidi  
          Started by alifarahani, 04-19-2024, 09:40 AM
          9 responses
          55 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Conceptzx, 10-11-2022, 06:38 AM
          3 responses
          60 views
          0 likes
          Last Post NinjaTrader_SeanH  
          Working...
          X