Support Board
Date/Time: Sat, 07 Feb 2026 09:34:46 +0000
Post From: Cumulative Bid/Ask Volume - How to ignore ticks with no new volume
| [2025-07-26 19:46:52] |
| mastadom - Posts: 23 |
|
Hi SC team, I'm using sc.GetRecentAskVolumeAtPrice(sc.LastTradePrice) to calculate a cumulative recent ask volume... but, calling that function on each tick will result in over-counting, since the last traded price could be in the past. What is a good way to call that function for each tick and get 0 returned when there hasn't been a new trade at a particular price? Or, a way to only call that function when an actual trade occurs? Thanks! Date Time Of Last Edit: 2025-07-26 19:48:51
|
