• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create a data series (AverageEtd)

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

  • Italy
    started a topic Create a data series (AverageEtd)

    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

  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • Italy
    replied
    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

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • Italy
    replied
    Create data series ??

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

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    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.

    Leave a comment:


  • Italy
    replied
    Sorry, I resolved.

    Sorry, I resolved.
    Ciao.
    Roberto

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Sank1, Today, 01:58 PM
1 response
5 views
0 likes
Last Post NinjaTrader_PatrickG  
Started by GARZONJ, Today, 12:50 PM
2 responses
8 views
0 likes
Last Post GARZONJ
by GARZONJ
 
Started by guigs88, Today, 12:45 PM
1 response
6 views
0 likes
Last Post NinjaTrader_PaulH  
Started by FREEN, 08-13-2019, 09:18 AM
5 responses
28 views
0 likes
Last Post koganam
by koganam
 
Started by U0000999, Today, 12:43 PM
1 response
6 views
0 likes
Last Post NinjaTrader_Jim  
Working...
X