Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetCurrentBid/Ask for dataseries 1?

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

    GetCurrentBid/Ask for dataseries 1?

    I know there are these methods to get the bid/ask for BarSeries 0:

    GetCurrentBid()
    GetCurrentAsk()

    How do I get these values for BarSeries 1?

    Thanks!
    Bryan

    #2
    Hi Bryan,

    Thanks for your post.

    From the helpguide, " The GetCurrentBid() method runs on the bar series currently updating determined by the BarsInProgress property. For multi-instrument scripts, an additional int "barsSeriesIndex" parameter can be supplied which forces the method to run on an supplementary bar series." - Same for GetCurrentAsk() as well.

    So for example GetCurrentBid(0) would be the chart bars, GetCurrentBid(1) would be the first added series.
    Please see the NT8 helpguide links here:
    http://ninjatrader.com/support/helpG...currentbid.htm
    http://ninjatrader.com/support/helpG...currentask.htm

    Comment


      #3
      OK thanks -- sorry, I misinterpreted the (0) and (1) to mean "bars ago" and not bar series.

      Thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      54 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      25 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      17 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X