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

GetCurrentBid, GetCurrentAsk

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

    #16
    Hello llanqui,

    That would not give tick level data, you are adding 10 minute series by using PeriodType.Minute, 10. You would need to use Tick if you wanted tick data.

    After adding other series you can use the plural named series like Closes to access that data from any BarsInProgress: https://ninjatrader.com/support/help...ightsub=closes

    You can also separate logic like you have using BarsInProgress conditions and variables.

    JesseNinjaTrader Customer Service

    Comment


      #17
      I thought that CalculateOnBarClose = false triggers OnBarUpdate for each tick?

      That is not true for additional series?

      Since I want to get the Bid and Ask...do I use Close[1] or GetCurrentBid[1]

      (previous example...)

      Comment


        #18
        Hello llanqui,

        Yes in realtime that would be on each tick if you are using CalculateOnBarClose = false. If you need historical data then you need to add the tick series directly instead of using CalculateOnBarClose = false.

        JesseNinjaTrader Customer Service

        Comment


          #19
          Ok, I think I may finally have it... :-)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by rajendrasubedi2023, Today, 09:50 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by geotrades1, Today, 10:02 AM
          0 responses
          4 views
          0 likes
          Last Post geotrades1  
          Started by ender_wiggum, Today, 09:50 AM
          0 responses
          4 views
          0 likes
          Last Post ender_wiggum  
          Started by bmartz, Today, 09:30 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by geddyisodin, Today, 05:20 AM
          3 responses
          24 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X