Announcement

Collapse
No announcement yet.

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.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          90 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          135 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          120 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          69 views
          0 likes
          Last Post PaulMohn  
          Working...
          X