Code update:
- Fixed calculation starting point error
- Added check for the correctness of the calculation in the absence of time intervals
In markets where there are weekends, it is better to calculate by session when the market is open.
For example: 1H, EURUSD, FXCM, Calculation date: 28.08.2022 17:00 - 02.09.2022 17:00 (UTC-4).