Skip to content

#2199 - make FinancePlot sort OHLCs when getting SMA or Bollinger bands#2207

Merged
swharden merged 4 commits intoScottPlot:mainfrom
zachesposito:2199-ohlc-sorting
Oct 31, 2022
Merged

#2199 - make FinancePlot sort OHLCs when getting SMA or Bollinger bands#2207
swharden merged 4 commits intoScottPlot:mainfrom
zachesposito:2199-ohlc-sorting

Conversation

@zachesposito
Copy link
Contributor

Purpose:
#2199 highlighted that FinancePlot's assumption that its OHLCs are always sorted by datetime can be confusing to users. This change makes sure OHLCs gets sorted before trying to calculate SMAs or BollingerBands, so that those methods work even if the user doesn't provide sorted OHLCs.

@swharden swharden linked an issue Oct 31, 2022 that may be closed by this pull request
@swharden swharden enabled auto-merge October 31, 2022 00:54
@swharden swharden merged commit 95d32c7 into ScottPlot:main Oct 31, 2022
@swharden swharden mentioned this pull request Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamic scatterline (SMA, Bollinger) issue

3 participants