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

Problem with Exporting an Indicator

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

    Problem with Exporting an Indicator

    I created an indicator based on the WilliamsR indicator included with NT. I used the following code to assign the value:

    double value = WilliamsR(Period)[0];

    The code compiles. The indicator displays as expected but when I try to export the code I get an "Error compiling export sources. Please check your logs." message. The log has this line:

    The name 'WilliamsR' does not exist in the current context
    10/10/2010 9:27:46 PM|2|4|See Help Guide section 'Export Problems' (9:35 PM 10/10/2010) for additional instructions.

    Any ideas as to what that means and how do I resolve it?

    Thanks in advance.

    #2
    Hi ramckay,

    Was there more to this error? Perhaps indicating there was another indicator that "didn't exist in the current context"

    You likely need to manually add the indicator when exporting.

    This process is detailed at: http://www.ninjatrader-support.com/H...ExportProblems
    TimNinjaTrader Customer Service

    Comment


      #3
      Hi Tim,

      That solved the problem. Needed to add the WilliamsR indicator and the export file was created as expected.

      Thanks,

      ramckay

      Comment


        #4
        How do i export "UserDefinedMethods" along with my strategy code? I cannot get it to drop down from any of the selection boxes when i do Export..

        TIA

        v.7 0 0 23

        Comment


          #5
          Hi ssylwester,

          The UserDefinedMethod script cannot be exported. Also, it should not be exported or tranferred, as doing so would could overwrite another users script and cause issues.

          You can create a new script for any custom exporting you need to do.
          TimNinjaTrader Customer Service

          Comment


            #6
            Thanks for the reply. I have 2 setups, development and production. Both have mostly identical copies of scripts. WHen i try to update from Developement to Production, by exporting scripts, it fails b/c some of the functions are called from UserDefinedMethods. the only workaround is to backup/restore all the scripts, but this takes longer.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            834 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,290 views
            1 like
            Last Post jgualdronc  
            Started by Touch-Ups, Today, 10:36 AM
            0 responses
            10 views
            0 likes
            Last Post Touch-Ups  
            Started by geddyisodin, 04-25-2024, 05:20 AM
            11 responses
            62 views
            0 likes
            Last Post halgo_boulder  
            Started by Option Whisperer, Today, 09:55 AM
            0 responses
            8 views
            0 likes
            Last Post Option Whisperer  
            Working...
            X