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:


    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

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X