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 Mindset, 04-21-2026, 06:46 AM
                0 responses
                88 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                134 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                68 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                119 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                69 views
                0 likes
                Last Post PaulMohn  
                Working...
                X