Ricardo Andrés Marino Rojas
3c9f9aae20
Fix bug in MarketProfile indicator ( #7310 )
...
* Fix bug, add unit tests and nit changes
The bug was raised because if two inputs points with repeated close values were inserted,
and the second one had 0 volume, when the first one is removed from
_oldDataPoints, as the reamaining value of it in _volumePerPrice is
zero, that entry is removed from _volumePerPrice. Therefore, when
the second input point is removed from _oldDataPoints, this entry
is not found in _volumePerPrice. Then the changes made were:
- Modify MarketProfile.Add() method to check every removed data point is
still in _volumePerPrice
- Add unit tests to covert this change
- Nit changes in VolumeProfileTests.cs
* Fix bugs and add more unit tests
- The Fill Forward bars shouldn't be considered in the calculations as
it's not real data.
- If bar inserted is not FF but has zero volume, it could remove a price
value from VolumePerPrice and leave this sorted list empty, then each
time we access that list we need to first check it's not empty
* Enhance ComputeNextValue() and add more unit tests
2023-06-09 19:14:45 -03:00
..
2022-07-05 10:29:28 -03:00
2021-02-18 17:13:11 -03:00
2019-05-10 20:04:55 +01:00
2020-10-12 10:31:05 -03:00
2019-05-10 20:04:55 +01:00
2019-05-10 20:04:55 +01:00
2023-03-02 15:48:20 -03:00
2023-03-02 15:48:20 -03:00
2023-03-02 15:48:20 -03:00
2023-03-02 15:48:20 -03:00
2023-03-02 15:48:20 -03:00
2022-07-21 17:50:14 -03:00
2020-10-12 10:31:05 -03:00
2021-07-09 20:07:15 -03:00
2021-02-01 20:17:49 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-12-11 20:46:07 -03:00
2019-05-13 17:50:51 +01:00
2016-11-09 09:20:16 -05:00
2021-11-24 09:58:37 -03:00
2021-06-14 14:23:05 -03:00
2020-12-11 18:04:17 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2021-09-16 17:58:10 -03:00
2021-09-16 17:58:10 -03:00
2021-05-11 17:12:48 -03:00
2020-10-12 10:31:05 -03:00
2021-04-06 10:15:16 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2023-04-11 18:58:35 -03:00
2020-10-12 10:31:05 -03:00
2019-05-13 17:57:08 +01:00
2019-05-13 17:50:51 +01:00
2016-11-09 09:20:16 -05:00
2020-10-12 10:31:05 -03:00
2023-04-21 12:01:52 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2021-10-15 11:10:59 -03:00
2015-01-12 12:03:33 -03:00
2023-05-24 17:35:02 -03:00
2021-09-16 17:58:10 -03:00
2022-11-16 18:36:46 -03:00
2016-04-07 06:14:18 -04:00
2022-07-05 10:29:28 -03:00
2018-04-06 16:27:14 -04:00
2021-12-04 18:55:09 -03:00
2021-12-04 18:55:09 -03:00
2021-12-03 19:43:32 -03:00
2023-05-11 14:55:27 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2023-06-09 19:14:45 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2023-03-07 16:19:24 -03:00
2023-03-07 16:19:24 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2019-05-14 13:32:47 +01:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2021-01-08 16:58:53 -03:00
2022-07-05 10:29:28 -03:00
2018-03-21 00:13:37 +00:00
2020-10-12 10:31:05 -03:00
2019-05-23 10:08:48 +01:00
2019-05-23 10:08:48 +01:00
2020-10-12 10:31:05 -03:00
2022-07-05 10:29:28 -03:00
2021-10-28 20:29:22 -03:00
2023-03-03 13:11:03 -03:00
2021-05-11 17:12:48 -03:00
2019-05-14 13:32:47 +01:00
2019-05-14 13:32:47 +01:00
2020-10-12 10:31:05 -03:00
2021-07-28 18:02:34 -03:00
2022-04-25 13:13:20 -03:00
2021-10-21 17:00:31 -03:00
2021-01-08 11:11:00 -03:00
2021-01-08 11:11:00 -03:00
2021-03-22 11:08:48 -07:00
2022-10-28 18:12:33 -03:00
2019-05-10 20:04:55 +01:00
2022-10-28 18:12:33 -03:00
2019-05-15 14:44:35 +01:00
2020-10-12 10:31:05 -03:00
2019-05-15 14:44:35 +01:00
2022-11-01 10:19:13 -03:00
2022-07-05 10:29:28 -03:00
2020-10-12 10:31:05 -03:00
2022-10-28 18:12:33 -03:00
2021-09-07 12:17:23 -03:00
2021-03-22 11:08:48 -07:00
2015-01-12 12:03:33 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2021-05-11 17:12:48 -03:00
2019-05-15 14:31:22 +01:00
2022-05-13 15:55:28 -03:00
2020-10-12 10:31:05 -03:00
2020-10-12 10:31:05 -03:00
2021-09-07 12:17:23 -03:00
2021-09-16 17:58:10 -03:00
2021-04-16 10:54:02 -03:00
2020-10-12 10:31:05 -03:00
2021-04-16 10:54:02 -03:00
2019-05-23 09:54:02 +01:00
2016-04-21 19:34:52 -03:00
2021-12-04 18:55:09 -03:00