Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error

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

    error

    im getting this error when trying to add a EMA to my custom strategy

    #2
    Hi fgs092790, can you please post a screen shot or description of the error?

    Comment


      #3
      hi chris what do you mean description of the error? on my first post i upload a screenshot with the error

      Comment


        #4
        Hi, I do not see a screen shot in your first post. Please re-post it and I will be happy to help out.

        Comment


          #5

          Comment


            #6
            Hi, thanks for posting that. There is a compile error in your code. Make sure you are putting this line declaring the EMA at the class level and not within a method.

            Code:
            public class TestStrategy : Strategy
            {
                private EMA EMA1;

            Comment


              #7
              secondentry_ema.zip


              i did but i still not working i have comment them out here so to be able to compile and send (line:85,132,144)

              Comment


                #8
                Hi, It will work if you use the fully qualified namespace name:
                private NinjaTrader.NinjaScript.Indicators.EMA EMA1;

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Yesterday, 05:17 AM
                0 responses
                56 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                133 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                73 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                45 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                49 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X