Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error CS0246 during Export function

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

    Error CS0246 during Export function

    Error CS0246: The type or namespace name could not be found.

    The error occurs when I try to export the strategy.

    I have attached pic below of message.

    The strategy compiles fine. Above the "Strategy successfully generated" box is the code for TrendStrengthA, which the log is complaining about when I try to export this strategy.

    Need a fix please.



    Thx,
    Mike

    P.S. again sorry for large pic, but had to use external host due to your forum 100k file size limit.

    #2
    Attached is TrendStrengthA.cs.

    I have not modified it, was downloaded in forum indicator section.

    Again, works fine as an indicator, works fine in a strategy. Problem is during export.
    Attached Files

    Comment


      #3
      Originally posted by ctrlbrk View Post
      Attached is TrendStrengthA.cs.

      I have not modified it, was downloaded in forum indicator section.

      Again, works fine as an indicator, works fine in a strategy. Problem is during export.
      When you are selecting your strategy for export, please select VC.NinjaScript.Utility also

      Comment


        #4
        It appears you are missing some of the files required to export this script.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Roonius,

          Thank you. That was it.

          Mike
          Last edited by ctrlbrk; 03-30-2009, 09:26 AM.

          Comment


            #6
            Hello,
            I am getting the same error CS0246 on one of my Custom NinjaScripts that I am trying to Export that "ctrlbrk" was getting below.
            The indicator will compile with no errors and works properly when plotted on a chart.
            It just wont export. I tried adding the VC.NinjaScript.Utility too, but that didnt work either...any ideas please.

            Thanks

            Comment


              #7
              Originally posted by dwalls View Post
              Hello,
              I am getting the same error CS0246 on one of my Custom NinjaScripts that I am trying to Export that "ctrlbrk" was getting below.
              The indicator will compile with no errors and works properly when plotted on a chart.
              It just wont export. I tried adding the VC.NinjaScript.Utility too, but that didnt work either...any ideas please.

              Thanks
              May be you are using some kind of other utility, like userdefinedmethods

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by ezekilany, Today, 01:10 AM
              0 responses
              3 views
              0 likes
              Last Post ezekilany  
              Started by usjavaburn, Today, 12:59 AM
              0 responses
              3 views
              0 likes
              Last Post usjavaburn  
              Started by heatherjmarshalls, Today, 12:56 AM
              0 responses
              2 views
              0 likes
              Last Post heatherjmarshalls  
              Started by Nicholewatkinsi, Yesterday, 10:53 PM
              0 responses
              6 views
              0 likes
              Last Post Nicholewatkinsi  
              Started by dward123, 01-02-2024, 09:59 PM
              4 responses
              176 views
              0 likes
              Last Post Lancer
              by Lancer
               
              Working...
              X