Login Page - Create Account

Support Board


Date/Time: Wed, 07 May 2025 15:47:56 +0000



Post From: How does Sierra Charts discount the opening gap calculating Moving averages?

[2024-11-30 18:45:54]
User813832 - Posts: 12
Hi, thanks for all your help. Your surprise caused me to recheck all the averages again and I realised the problem was not with SC or with the average calculations - they were all correct and to be expected. The issue was that pandas was sorting the dates as strings, not as actual dates. So when using diff() because the dates were not sorted, sometimes it would find the difference between, for example, 15/09/24 and 16/10/24 because its just sorting chronologically. Now I've sorted by date it works fine. Thanks!