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 cmtjoancolmenero, Yesterday, 03:58 PM
          2 responses
          19 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by Stanfillirenfro, Today, 07:23 AM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by olisav57, Yesterday, 07:39 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cocoescala, 10-12-2018, 11:02 PM
          7 responses
          942 views
          0 likes
          Last Post Jquiroz1975  
          Started by oviejo, Today, 12:28 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X