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 jeronymite, Today, 09:15 PM
        0 responses
        1 view
        0 likes
        Last Post jeronymite  
        Started by temtam, Today, 07:56 PM
        0 responses
        5 views
        0 likes
        Last Post temtam
        by temtam
         
        Started by woodruaj, Today, 06:15 PM
        0 responses
        4 views
        0 likes
        Last Post woodruaj  
        Started by CarpetHooligan, Today, 03:55 PM
        0 responses
        3 views
        0 likes
        Last Post CarpetHooligan  
        Started by forrestang, Today, 02:36 PM
        2 responses
        13 views
        0 likes
        Last Post forrestang  
        Working...
        X