• 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

Data language reference

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

    Data language reference

    Hi NT -

    Can you link me to the Ninjascript reference to the Data class?

    i.e. Data.MarketDataType
    i.e. Data.BarsPeriodType

    I looked under:
    https://ninjatrader.com/support/help...erence_wip.htm

    But, i don't see "Data" under the alphabetical reference and using search didn't return helpful results.

    Thank you,

    BigSurf

    #2
    Hello,

    Thank you for the post.

    In this situation, Data is a Namespace so there is not really anything to document here. This namespace holds various classes like MarketDataType or BarsPeriodType.

    Is there something specific you are looking for in the Data namespace?

    I look forward to being of further assistance.
    Attached Files
    JesseNinjaTrader Customer Service

    Comment


      #3
      Here's the scenario:

      (1) For a Strategy or Indicator if Calculate is set to Calculate.OnBarClose
      (2) AddDataSeries("^UVOL", Data.BarsPeriodType.Minute, 3, Data.MarketDataType.Last);

      Can you elaborate on this setting Data.MarketDataType.Last? And what that means to Calculate.OnBarClose?

      Thanks

      Comment


        #4
        Hello,

        Thank you for the reply.

        The MarketDataType is specifically what it says, the type of data to request. In this situation Last would be the Last type data, you can also choose from Ask or Bid data.

        The Calculation mode is a concept in the platform, you can read more about that subject here: https://ninjatrader.com/support/help...tsub=Calculate

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by tecmisc1, Today, 09:57 AM
        0 responses
        2 views
        0 likes
        Last Post tecmisc1  
        Started by mbesha, Today, 09:26 AM
        0 responses
        1 view
        0 likes
        Last Post mbesha
        by mbesha
         
        Started by Brillo, Today, 08:58 AM
        0 responses
        6 views
        0 likes
        Last Post Brillo
        by Brillo
         
        Started by avrege, Today, 01:48 AM
        2 responses
        14 views
        0 likes
        Last Post avrege
        by avrege
         
        Started by markbb10, Today, 07:14 AM
        0 responses
        7 views
        0 likes
        Last Post markbb10  
        Working...
        X