Support Board
Date/Time: Sun, 06 Jul 2025 21:53:55 +0000
Post From: Alternative Way For Obtaining Time and Sales Data
[2019-10-28 04:14:03] |
User987654 - Posts: 70 |
Hi, I have a few questions about using "Number of Trades per Bar=1" to get Time and Sales data. 1) Since study functions are only called at the Chart Update Interval, if I set update interval to 500ms and sc.UpdateAlways=1, does that mean every 500ms sc.GetChartArray will return a NEW array of all trades during the previous 500ms? Or will it extend an existing array, requiring me to keep track of the indexing. 2) If I use "Number of Trades per Bar" chart, will I still be able to access subgraphs from a chart using time based bars? Ie. sc.GetNearestMatchForDateTimeIndex() will still work. 3) What can I do to reduce resource usage if I set a very low update interval (I won't go below 250ms) or will this not be a problem at 250ms? I thought I read in the documentation that I could stop drawing to reduce resource usage but I can't seem to find the section now. Thanks in advance. |