• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    cassb
    NinjaTrader Ecosystem Vendor - Logical Forex

    #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
    Paul H.NinjaTrader Customer Service

    Comment


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

      Thanks!
      cassb
      NinjaTrader Ecosystem Vendor - Logical Forex

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by turbocing, Today, 03:21 AM
      0 responses
      1 view
      0 likes
      Last Post turbocing  
      Started by lakman184, Today, 03:04 AM
      0 responses
      2 views
      0 likes
      Last Post lakman184  
      Started by myrtienguyen, Today, 02:18 AM
      0 responses
      2 views
      0 likes
      Last Post myrtienguyen  
      Started by WHICKED, Yesterday, 09:03 PM
      1 response
      16 views
      0 likes
      Last Post Emma1
      by Emma1
       
      Started by oleotrim, Yesterday, 11:29 PM
      1 response
      11 views
      0 likes
      Last Post Emma1
      by Emma1
       
      Working...
      X