The trading analytics are a set of Haskell libraries that analyze share-price and trading data.
Libraries
So, here is the Analytics.Trading library of modules:
- Analytics.Trading.Advice.Backtesting
- Analytics.Trading.Advice.SMA
- Analytics.Trading.Advice.Stochastic
- Analytics.Trading.Charts.SMA
- Analytics.Trading.Charts.Stochastic
- Analytics.Trading.Data.Advice
- Analytics.Trading.Data.Announce
- Analytics.Trading.Data.Calendar
- Analytics.Trading.Data.Order
- Analytics.Trading.Data.Portfolio
- Analytics.Trading.Data.Row
- Analytics.Trading.Data.Stocks
- Analytics.Trading.Data.Strategy
- Analytics.Trading.Indicators.MovingAverages.Exponential
- Analytics.Trading.Indicators.MovingAverages.Simple
- Analytics.Trading.Indicators.Stochastic
- Analytics.Trading.Scan.Top5s
- Analytics.Trading.Scan.Top5s.SparseMatrix
- Analytics.Trading.Web.Client
- Analytics.Trading.Web.Scraper.Google
- Analytics.Trading.Web.Scraper.UpDown
- Analytics.Trading.Web.Upload.Cypher
- Analytics.Trading.Web.Upload.Cypher.RelateDays
Tools
Below are tools that use some of the above modules. We have the
- scraper, which extracts the top 5s from google's finance page:
- getArgs >>= scrape . head >>=
mapM_ (putStrLn . uncurry (++) . (second smoosh)) . Map.toList
smoosh = uncurry (++) . (comma ':' *** comma '|') - jsonify, which packages the results in cypher-JSON and saves to a grapheneDB
- which is just main = getArgs >>= printJSON from Web.Upload.Cypher
- todayis, which starts an ETL process by assigning this first day as 'Today'
- getEnv "CYPHERDB_ACCESS" >>= \endpoint ->
getArgs >>= void . relateToday endpoint . read . head - relinker, which links in the just-uploaded into the rest of the data by day
- analyze, analyzes the specified stock against SMA, EMA and Stochastic Oscillators
- robtDeNiro, or "You lookin' at me?" which compares the compiled stock symbols to the ones extracted from the graph DaaS and recompiles the stock symbols if new ones are found. Pretty slick.
Data Collected
- Top 5s securities traded since 2015-05-21
- A sparse matrix of the same
Hi, these are great resources, what do you think about publishing them to GitHub or Hackage? Other people in the Haskell community are very interested, see here https://www.reddit.com/r/haskell/comments/3yid52/some_haskell_libraries_on_trading_analytics_i/
ReplyDelete