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 CarlTrading, 03-31-2026, 09:41 PM
                1 response
                72 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                39 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                63 views
                2 likes
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                63 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                53 views
                0 likes
                Last Post CarlTrading  
                Working...
                X