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 rhyminkevin, Today, 04:58 PM
          4 responses
          52 views
          0 likes
          Last Post dp8282
          by dp8282
           
          Started by iceman2018, Today, 05:07 PM
          0 responses
          5 views
          0 likes
          Last Post iceman2018  
          Started by lightsun47, Today, 03:51 PM
          0 responses
          7 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          14 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          50 views
          0 likes
          Last Post futtrader  
          Working...
          X