• 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

Indicator file path

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

    Indicator file path

    Hello. I'm trying to find a zip folder so I can send an indicator to a friend. Not able to find where the indicators are located in NT7. Can someone give me the path?
    Thanks

    #2
    Hello CaptainAmericaXX,
    If you have exported the NinjaScript code using the export feature then you can locate the zip file in the folder <My Documents>\NinjaTrader 7\bin\Custom\ExportNinjaScript\

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thank you for the response. Unfortunately, when attempting the Export I get an error (CS0246)that the namespace of one of the indicators cannot be found. Everything has compiled ok. What could be the problem?

      Comment


        #4
        Hello CaptainAmericaXX,
        You may not have referenced/included all the indicators (including assemblies) and thus you are getting the error.

        To assist you further can you upload the screenshots of the error.

        The indicators are located in the folder <My Documents>\NinjaTrader 7\bin\Custom\Indicator\ (if they are source files).
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          These are custom indicator
          I can't save the Log as a JPEG. The only option is CSV. The Attachment Manager is giving me an error when I attempt attachment. Sorry. Kind of new at this.
          This is the error message:
          Error compiling exprot sources:c:/User/Trading Computer/Documents/NinjaTrader 7/bin/Custom/Indicator/TrendStrengthA.cs(304,80) :error CS0246: The type or namespace name "MovingAverageType" could not be found. (Are you missing a using directive or an assembly reference?)
          Unfortunately this is above my head. I'll that I know is that the indicator compiles.

          Comment


            #6
            Hello,

            You will need to include the TrendStrengthA.cs in your distribution file.

            Please see our Help Guide article on .NET reference which will show an example of how to do this:

            http://www.ninjatrader.com/support/h...t_problems.htm

            After adding the file specified, you may run into another error if there is another file missing - just keep repeating this process and adding the file mentioned until you can export successfully
            MatthewNinjaTrader Product Management

            Comment


              #7
              Thank you Matthew, I tried that. There is something wrong with TrendStregthA. It compiles, but it will not export. Other files export fine. Not sure what to do.

              Comment


                #8
                Is TrendStrengthA what you're trying to export then?

                Are you sure you can compile all indicators or strategies?

                Is there maybe a MovingAverageType.cs file you need to add?
                MatthewNinjaTrader Product Management

                Comment


                  #9
                  Originally posted by CaptainAmericaXX View Post
                  Thank you Matthew, I tried that. There is something wrong with TrendStregthA. It compiles, but it will not export. Other files export fine. Not sure what to do.
                  It looks like you have another indicator that also uses an enum variable called MovingAverageType, defined in the global namespace as per the directions of NT. You need to locate that file, and include it in the export.

                  Otherwise, you should stop polluting the global namespace, and do things as suggested in Programming 101 class: "never pollute the global namespace unless it is absolutely necessary." I have never yet personally come across any situation where it has been necessary to pollute the global namespace with an enum variable. Then again, I do not know everything, so I am sure there are situations where it may be necessary.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by PeterGolz, 01-17-2020, 10:42 AM
                  11 responses
                  71 views
                  0 likes
                  Last Post reubenlasky  
                  Started by utilizator, Today, 11:36 AM
                  0 responses
                  4 views
                  0 likes
                  Last Post utilizator  
                  Started by EnveousColnago, Today, 07:24 AM
                  1 response
                  9 views
                  0 likes
                  Last Post NinjaTrader_ShawnB  
                  Started by tornadoatc, Today, 10:31 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post tornadoatc  
                  Started by EnveousColnago, Yesterday, 05:43 PM
                  5 responses
                  30 views
                  0 likes
                  Last Post EnveousColnago  
                  Working...
                  X