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

Create a data series (AverageEtd)

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

    Create a data series (AverageEtd)

    Hello, I created multiple data series for the values of AverageMfe and AverageMae, everything perfect.
    Instead, to create the data series with the AverageEtd values, there are problems.
    Attached a file (code) with the steps I did and an image file.
    Thank you.
    Roberto
    Attached Files

    #2
    Sorry, I resolved.

    Sorry, I resolved.
    Ciao.
    Roberto

    Comment


      #3
      Hello Roberto,

      Thanks for letting us know you have resolved the error.

      As a tip, I have attempted to translate the error message as 'NinjaTrader.Cbi.Trade does not contain a definition of 'EtdCurrency' and not found any extension method 'EtdCurrency' accepting a first argument of type 'NinjaTrader.Cbi.Trade'.
      Likely the EtdCurrency variable has not been declared.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Create data series ??

        Good morning,
        how do I create a date series with AvgEtd values.
        Missing EtdCurrency command
        Attached image
        Hello.
        Roberto
        Attached Files

        Comment


          #5
          Hello Roberto,

          I have merged your post from thread 93109 as this appears to be a duplicate post of the same question.

          In your code likely on line 56 you are making a call to EtdCurrency which has not been declared.

          You will need to declare this variable or remove this code.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hello Chelse,
            I put the file (code 2) with the steps I do to create the data series of ETD.
            When I arrive at line 206, as you can see from the attached, I make the point and then the menu lacks the command to invoke EtdCurrency, as there is for MaeCurrency.
            Hello.
            Roberto
            Attached Files

            Comment


              #7
              Hello Roberto,

              A variable must be declared before it can be called.

              EtdCurrency and etd are not the same variable. These are different variables.

              A variable named EtdCurrency must be declared before it is called on what is likely like 56.

              Declaring a new variable with a different name on line 206 will not resolve the error with the call to the EtdCurrency variable.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by adeelshahzad, Today, 03:54 AM
              5 responses
              32 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by stafe, 04-15-2024, 08:34 PM
              7 responses
              32 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by merzo, 06-25-2023, 02:19 AM
              10 responses
              823 views
              1 like
              Last Post NinjaTrader_ChristopherJ  
              Started by frankthearm, Today, 09:08 AM
              5 responses
              22 views
              0 likes
              Last Post NinjaTrader_Clayton  
              Started by jeronymite, 04-12-2024, 04:26 PM
              3 responses
              43 views
              0 likes
              Last Post jeronymite  
              Working...
              X