• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 tcfcigvo, Yesterday, 11:39 PM
          0 responses
          6 views
          0 likes
          Last Post tcfcigvo  
          Started by BobbyWan, Yesterday, 09:15 PM
          0 responses
          10 views
          0 likes
          Last Post BobbyWan  
          Started by trader14, Yesterday, 08:23 PM
          0 responses
          4 views
          0 likes
          Last Post trader14  
          Started by ares5918, Yesterday, 02:37 PM
          2 responses
          18 views
          0 likes
          Last Post ares5918  
          Started by RTR1701, 11-15-2016, 11:38 AM
          22 responses
          1,276 views
          0 likes
          Last Post afcmaff
          by afcmaff
           
          Working...
          X