Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Contains duplicate method names

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

    Contains duplicate method names

    I have many problems with this error message. I have a indicator wichi is neccesary for the most of my strategies and I have continously this error message when I try to install my strategie in a new computer (of my customers).
    So, is there any way to use a indicator from a strategy without this indicator must be included when you compile your assembly files?

    Thanks in advance.

    Jesus.

    #2
    Jesus, have you already tried making custom indicators of the ones you need and then using custom method names in it as well to avoid duplications?
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Yes Bertrand, I'm thinking can be a solution but I would like don't duplicate all my code with every new strategy.

      Comment


        #4
        soyjesus,

        Unfortunately you have to include all components in the export and there is no way around it.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          soyjesus,

          Unfortunately you have to include all components in the export and there is no way around it.

          Ok, but is there any way to calculate double EMA (EMA from another EMA) without use DataSeries? I have problems using DataSeries in strategies.

          Comment


            #6
            Not sure I follow, you wouldn't need to custom data series for this -

            double myDoubleEMAValue = EMA(EMA(Close, 10), 10)[0];
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Bertrand View Post
              Not sure I follow, you wouldn't need to custom data series for this -

              double myDoubleEMAValue = EMA(EMA(Close, 10), 10)[0];
              Ok, thanks. I think it's a good solution.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by f.saeidi, Today, 11:02 AM
              1 response
              1 view
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by geotrades1, Today, 10:02 AM
              4 responses
              12 views
              0 likes
              Last Post geotrades1  
              Started by rajendrasubedi2023, Today, 09:50 AM
              3 responses
              15 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by lorem, Today, 09:18 AM
              2 responses
              11 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by geddyisodin, Today, 05:20 AM
              4 responses
              30 views
              0 likes
              Last Post geddyisodin  
              Working...
              X