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 JoMoon2024, Today, 06:56 AM
          0 responses
          6 views
          0 likes
          Last Post JoMoon2024  
          Started by Haiasi, 04-25-2024, 06:53 PM
          2 responses
          17 views
          0 likes
          Last Post Massinisa  
          Started by Creamers, Today, 05:32 AM
          0 responses
          5 views
          0 likes
          Last Post Creamers  
          Started by Segwin, 05-07-2018, 02:15 PM
          12 responses
          1,786 views
          0 likes
          Last Post Leafcutter  
          Started by poplagelu, Today, 05:00 AM
          0 responses
          3 views
          0 likes
          Last Post poplagelu  
          Working...
          X