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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        57 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        78 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        39 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        101 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        61 views
        0 likes
        Last Post PaulMohn  
        Working...
        X