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 kinfxhk, 07-13-2026, 10:18 AM
                0 responses
                59 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by kinfxhk, 07-13-2026, 09:50 AM
                0 responses
                41 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by kinfxhk, 07-13-2026, 07:21 AM
                0 responses
                46 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by kinfxhk, 07-11-2026, 02:11 AM
                0 responses
                37 views
                0 likes
                Last Post kinfxhk
                by kinfxhk
                 
                Started by SalmaTrader, 07-07-2026, 10:26 PM
                0 responses
                157 views
                0 likes
                Last Post SalmaTrader  
                Working...
                X