Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Multi Instrument Optimization

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

    Multi Instrument Optimization

    Hello,

    I am developing a strategy for Currency pairs. When I try to backtest the strategy, all the user defined variables disappear from the analyzer window. Is this something that can't be done with Ninjatrader?

    Thanks

    #2
    Hi MyFirstMillion,

    Using user defined inputs can be done in the Strategy Analyzer.

    If you select the SampleMACrossOver script are you able to see the Fast and Slow user defined inputs set for that example strategy? (This would let you know it is possible if done correctly)

    May we test an export of your script?
    To export a NinjaTrader 7 NinjaScript do the following:
    1. Click File -> Utilities -> Export NinjaScript
    2. Enter a unique name for the file in the value for 'File name:'
    3. Select the strategy from the objects list on the left -> click the right facing arrow ">" to add the strategy to the export
    4. Click the 'Export' button -> click 'yes' to add any referenced indicators to the export -> click OK to clear the export location message


    By default your exported file will be in the following location:
    • (My) Documents\NinjaTrader 7\bin\Custom\ExportNinjaScript\<export_file_name.z ip>


    Below is a link to the help guide on Exporting NinjaScripts.
    http://www.ninjatrader.com/support/h...nt7/export.htm
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      There are no issues when a single instrument is involved but when I add multiple instruments, the user variables disappear and I am not able to use the optimizer.



      Thank You
      Attached Files

      Comment


        #4
        Hello MyFirstMillion,

        Thank you for including the export of the script.

        I am not able to run this script.

        Are you seeing any errors appear in the Log tab of the Control Center when testing this script?
        If so, what do these say?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello MyFirstMillion,

          Thank you for including the export of the script.

          I am not able to run this script.

          Are you seeing any errors appear in the Log tab of the Control Center when testing this script?
          If so, what do these say?
          That fixed the issue. The symbol was incorrect. Thank you !

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by TraderBCL, Today, 04:38 AM
          2 responses
          7 views
          0 likes
          Last Post TraderBCL  
          Started by martin70, 03-24-2023, 04:58 AM
          14 responses
          105 views
          0 likes
          Last Post martin70  
          Started by Radano, 06-10-2021, 01:40 AM
          19 responses
          606 views
          0 likes
          Last Post Radano
          by Radano
           
          Started by KenneGaray, Today, 03:48 AM
          0 responses
          4 views
          0 likes
          Last Post KenneGaray  
          Started by thanajo, 05-04-2021, 02:11 AM
          4 responses
          471 views
          0 likes
          Last Post tradingnasdaqprueba  
          Working...
          X