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 Jimmyk, 01-26-2018, 05:19 AM
          9 responses
          873 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by leojimenezp, Yesterday, 04:04 PM
          2 responses
          29 views
          0 likes
          Last Post leojimenezp  
          Started by z679Gju, Today, 09:08 AM
          0 responses
          1 view
          0 likes
          Last Post z679Gju
          by z679Gju
           
          Started by sgordet, 04-28-2024, 11:48 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_RyanS  
          Started by pibrew, 04-28-2024, 06:37 AM
          1 response
          15 views
          0 likes
          Last Post NinjaTrader_RyanS  
          Working...
          X