I have encountered a problem with BarsInProgress. Certain bar objects are skipped, seemingly at random. The specific bar objects that are skipped are not consistent.
The data provider is Gain Capital, although this persists if I just use "Kinetick - End of Day (free)". I'm running for the entire year of 2018 to keep tests consistent. NT version = 8.0.22.2 64-bit.
First, a sample printout. Notice how it skips 31, 33, 34, 35, 36, 41, 50, 53, and 54.
As a sanity check, I pulled up the one-minute chart for AUD/USD (Bar Array 31 here). The bar in question definitely exists; O = 0.73382, H = 0.73382, L = 0.73375, C = 0.73375.
12/4/2018 2:32:00 PM BarsInProgress: 29
12/4/2018 2:32:00 PM BarsInProgress: 30
12/4/2018 2:32:00 PM BarsInProgress: 32
12/4/2018 2:32:00 PM BarsInProgress: 37
12/4/2018 2:32:00 PM BarsInProgress: 38
12/4/2018 2:32:00 PM BarsInProgress: 39
12/4/2018 2:32:00 PM BarsInProgress: 40
12/4/2018 2:32:00 PM BarsInProgress: 42
12/4/2018 2:32:00 PM BarsInProgress: 43
12/4/2018 2:32:00 PM BarsInProgress: 44
12/4/2018 2:32:00 PM BarsInProgress: 45
12/4/2018 2:32:00 PM BarsInProgress: 46
12/4/2018 2:32:00 PM BarsInProgress: 47
12/4/2018 2:32:00 PM BarsInProgress: 48
12/4/2018 2:32:00 PM BarsInProgress: 49
12/4/2018 2:32:00 PM BarsInProgress: 51
12/4/2018 2:32:00 PM BarsInProgress: 52
12/4/2018 2:32:00 PM BarsInProgress: 55
12/4/2018 2:32:00 PM BarsInProgress: 56
Due to character limits, I'll post the sample code in a response to this.
Thank you.
Comment