A new release of the dang package got to CRAN earlier today, a few months since the last relase. The dang package regroups a few functions of mine that had no other home as for example
lsos() from a StackOverflow question from 2009 (!!) is one, this overbought/oversold price band plotter from an older blog post is another.
This release adds one function I tweeted about one month ago. It takes a function Josh Ulrich originally tweeted about in November with a reference to this gist. I refactored this into a proper functions and polished a few edges: the data now properly rolls off after a fixed delay (of two days), should work with other symbols (though we both focused on
^GSPC as a free (!!) real-time SP500 index (albeit only during trading hours), properly gaps between trading days and more. You can simply invoke it via
and a chart just like the one here will grow (though there is no “state”: if you stop it, or reboot, or … the plot starts from scratch).
The short NEWS entry follows.
Changes in version 0.0.13 (2021-02-17)
intradayMarketMonitorbased on an earlier gist-posted snippet by Josh Ulrich.
The CI setup was generalized as a test for 'r-ci' and is used essentially unchanged with three different providers.
If you like this or other open-source work I do, you can now sponsor me at GitHub.