Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I access the previous bars ask volume and bid volume?

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

    How do I access the previous bars ask volume and bid volume?

    Say I'm running my indicator on a 100 tick chart, but want to access the bid and ask volume of the previous bar and plot it.

    How do I do that? I'm fine not using tick replay/need to run on historical data.

    Thanks in advance.

    #2
    Hi joefriday, thanks for posting.

    A 1 tick series needs to be added to access intra bar bid/ask volume. Please see the attached example for reference.

    Kind regards.
    Attached Files

    Comment


      #3
      What if I don't care about intrabar bid and ask (since it slows down everything)

      How do I just get the ask and bid volume traded at the close of the bar?

      Comment


        #4
        Hi Joe,

        If you only want real time data, you can run the script OnBarClose and use GetCurrentAsk() and GetCurrentBid() to access this data on the close of the bar. You can also use AddDataSeries to add a bid/ask series and get the bid/ask volume from these series:


        Kind regards,
        -ChrisL

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X