Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer shows no results

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

    Strategy Analyzer shows no results

    I can run the SampleMACrossOver strategy and it works and I can see results.

    I then created a new strategy just by copying the code from SampleMACrossOver using the NinjaScript Editor. I ran the strategy using the same template and everything was zeros.

    What was wrong with that?

    #2
    Hello lisalisa,

    Are you seeing any errors appear in the Log tab of the Control Center?

    May I have an export of your script to see if this contains all of the code from the SampleMACrossOver script?

    To export a NinjaTrader 8 NinjaScript do the following:
    1. Click Tools -> Export -> NinjaScript...
    2. Click the 'add' link -> check the box(es) for the script(s) you want to include
    3. Click the 'Export' button
    4. Enter a unique name for the file in the value for 'File name:'
    5. Choose a save location -> click Save
    6. Click OK to clear the export location message

    By default your exported file will be in the following location:
    • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>


    Below is a link to the help guide on Exporting NinjaScripts.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I have exported and attached my strategy file.
      My strategy has nothing much other than EnterLong in OnBarUpdate() and I am just getting zeros.

      There are no errors in the Log tab.
      Attached Files

      Comment


        #4
        I figured out how to debug by using the NinjaScript Output. I figured out the cause of the issue. Thanks for your help.

        Comment


          #5
          Hello lisalisa,

          As a tip, the script you have posted is not an SMA crossover script. This script has an EnterLong() with no logic.

          I would imagine that there should be some performance, as the exit on close should cause the trade to be exited.

          However, it sounds as if you have corrected the script. Please let me know if I may further assist.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          61 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          40 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          21 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          23 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          51 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X