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 selu72, Today, 02:01 PM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by WHICKED, Today, 02:02 PM
              2 responses
              12 views
              0 likes
              Last Post WHICKED
              by WHICKED
               
              Started by f.saeidi, Today, 12:14 PM
              8 responses
              21 views
              0 likes
              Last Post f.saeidi  
              Started by Mikey_, 03-23-2024, 05:59 PM
              3 responses
              51 views
              0 likes
              Last Post Sam2515
              by Sam2515
               
              Started by Russ Moreland, Today, 12:54 PM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Erick  
              Working...
              X