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 cre8able, Today, 01:16 PM
          2 responses
          9 views
          0 likes
          Last Post cre8able  
          Started by chbruno, 04-24-2024, 04:10 PM
          3 responses
          48 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by samish18, Today, 01:01 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_LuisH  
          Started by WHICKED, Today, 12:56 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by WHICKED, Today, 12:45 PM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X