Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    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 junkone, Today, 11:37 AM
        0 responses
        1 view
        0 likes
        Last Post junkone
        by junkone
         
        Started by quantismo, 04-17-2024, 05:13 PM
        5 responses
        34 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by proptrade13, Today, 11:06 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by love2code2trade, 04-17-2024, 01:45 PM
        4 responses
        34 views
        0 likes
        Last Post love2code2trade  
        Started by cls71, Today, 04:45 AM
        2 responses
        10 views
        0 likes
        Last Post eDanny
        by eDanny
         
        Working...
        X