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 Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          597 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          555 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X