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 Jonafare, 12-06-2012, 03:48 PM
            5 responses
            3,986 views
            0 likes
            Last Post rene69851  
            Started by Fitspressorest, Today, 01:38 PM
            0 responses
            2 views
            0 likes
            Last Post Fitspressorest  
            Started by Jonker, Today, 01:19 PM
            0 responses
            2 views
            0 likes
            Last Post Jonker
            by Jonker
             
            Started by futtrader, Today, 01:16 PM
            0 responses
            9 views
            0 likes
            Last Post futtrader  
            Started by Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,792 views
            0 likes
            Last Post aligator  
            Working...
            X