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 zstheorist, Today, 07:52 PM
            0 responses
            3 views
            0 likes
            Last Post zstheorist  
            Started by pmachiraju, 11-01-2023, 04:46 AM
            8 responses
            149 views
            0 likes
            Last Post rehmans
            by rehmans
             
            Started by mattbsea, Today, 05:44 PM
            0 responses
            5 views
            0 likes
            Last Post mattbsea  
            Started by RideMe, 04-07-2024, 04:54 PM
            6 responses
            33 views
            0 likes
            Last Post RideMe
            by RideMe
             
            Started by tkaboris, Today, 05:13 PM
            0 responses
            5 views
            0 likes
            Last Post tkaboris  
            Working...
            X