~/talk

Building Your Own Trading Bot in F#

Talkat LambdaConf 2024 · 2024-05-04..05-10· [python, machine-learning]
slides:none on file

Codebase is open source and written in F# and connects to Gemini (and adapters for Interactive Brokers / Alpaca), with a websocket reader thread filling a preallocated circular array thread‑safe datastore to avoid GC pauses. A client execution thread runs strategies (double moving average, mean reversion, momentum, Bollinger bands), supports backtesting on historical feeds, and demo shows a live Gemini candle feed and a sample bot executing bracketed orders with a cloud kill switch.

AI-written summary · about

  1. 0:00Intro
  2. 1:08Objectives
  3. 2:08What is a Trading Bot
  4. 3:47Why do I need a Trading Bot
  5. 9:43Functional Programming
  6. 12:11Reference Architecture
  7. 15:34Code
  8. 16:10Circular Array
  9. 18:22Code Structure
  10. 19:56Data Source
  11. 21:40Reader Thread
  12. 24:59WebSocket
  13. 26:48Buffer
  14. 27:29Bucket
  15. 28:07Reset
  16. 29:43Live Feed
  17. 34:32Execution
  18. 36:05Backtesting
  19. 36:59Technical Indicators
  20. 38:19Trend Indicators
  21. 42:39Market is a Spring
  22. 45:55Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.