Announcement

Collapse
No announcement yet.

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.

    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.

        Comment


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

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          232 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          150 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          161 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          243 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          198 views
          0 likes
          Last Post CarlTrading  
          Working...
          X