Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer showing only 0

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

    Strategy Analyzer showing only 0

    Hello NT Team,

    I'm trying to backtest my strategy on Strategy Analyzer, but its not working

    - My strategy is fully and perfectly working on a sim account
    - I turned IsInstantiatedOnEachOptimizationIteration to false
    - yes Sample MA Cross Over is showing backtest results while my strategy is showing only 0
    - I'm NOT preventing historical data from working by using
    Code:
    if (State != State.Realtime) return;
    or anything like that.
    - I'm using SetProfitTarget(), is that considered as ATM strategy ? then how can I back test ?
    - I downloaded Tick data using NinjaTrader Continium, moreover the SMA strategy works, so mine should work as well.
    - Chart is looking good, it contains all required indicators ... but its not showing any entries, its nt ploting anything related to any trades, but while using SMA strategy, it shows entry and exit points
    - on Strategy Analyzer, I use EXACTLY the same params that I use while executing on Realtime

    Anything left to get this thing working plz ?

    Thank you

    #2
    Hello MohammedAmine,

    My strategy is fully and perfectly working on a sim account
    Does the chart show historical trades or does it only show realtime trades? The analyzer is a historical tool so it should work similar to the backtest on a chart.

    From the given details it sounds like the platform is working correctly and something in your logic is preventing the test from succeeding in the analyzer. A first step is to check the log for any errors when running the analyzer. Aside from that some debugging would likely be needed to see what is happening when you run it on a chart vs the backtest. Prints can be added through various parts of the logic to see if each script reaches the same points during execution. Doing that comparison would give clues on what the problem is and point a general direction.

    I'm using SetProfitTarget(), is that considered as ATM strategy ? then how can I back test ?
    No that is part of the managed approach and can be used in backtests.

    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
    137 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
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X