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 mr_trade, 11-26-2020, 05:01 PM
        5 responses
        58 views
        0 likes
        Last Post mr_trade  
        Started by evanp90, 01-14-2021, 07:03 PM
        3 responses
        32 views
        0 likes
        Last Post fx.practic  
        Started by fernlicht, Today, 04:01 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by Leeroy_Jenkins, Today, 03:51 AM
        1 response
        12 views
        0 likes
        Last Post Leeroy_Jenkins  
        Started by minds2010, Today, 03:38 AM
        0 responses
        10 views
        0 likes
        Last Post minds2010  
        Working...
        X