Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer + Unmanaged Approach

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

    Strategy Analyzer + Unmanaged Approach

    Hey team,

    My strategy uses unmanaged approach and works as desired in market replay and live trading.
    But in Strategy Analyzer, positions are left open. In real trading and market replay, the average trade duration is less than 3 minutes.
    In Strategy Analyzer, the average trade duration is 94 minutes.

    I can run market replay for a day last week that my strategy hit its daily profit goal within the first 15 minutes of market open, and stopped trading. Then if I run the same day in SA, the number of trades is different and the PnL is huge loss, with that very long trade duration. In my tracking of the simulated account it manages, it continues to have unrealized/open position that fluctuates way beyond my normal profit target distance or stop loss distance, and never closes until the end of day.

    I don't know what to do.

    #2
    Hello iantriestrading,

    What calculate is used?

    May I confirm the script properly implements 1-tick intra-bar granularity?

    Is TickReplay enabled?

    Below is a link to a support article with direction on implementing 1-tick intra-bar granularity.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,
      1. Calculate.OnBarClose
      2. Yes
      3. Yes now it is
      4. I found that I had to fix something else in my code that was failing to realize the entry order was the entry order, but that only happened in Strategy Analyzer, not in live or replay, strangely. Still, you helped me though because I had never enabled tick replay before and now I'm getting accurate results in SA!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      21 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      50 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Working...
      X