#012 Testing times at the functional stock exchange
Details
Michael Dickens will start off the year with a practical, kata session.
Greg's Stop Loss Kata
Testing is very hard when time is involved ...
A trailing stop loss is a term used in financial trading. For a very in depth explanation you can read here https://www.investopedia.com/articles/trading/03/080603.asp and http://en.wikipedia.org/wiki/Order_(exchange)#Stop_orders
However we do not need a huge amount of background in order to do the kata as we are going to limit the problem a bit.
The general idea is that when you buy into a stock at a price say $10. You want it to automatically get sold if the stock goes below $9 (-$1). If we use the term "trailing" that means that id the price goes up to $11 then the sell point becomes $10.
The kata is to create something that implements a trailing stop loss and to do it with TDD. To make matters more fun a price point should only move up if its held for more than 15 seconds and the stop loss should only be triggered if the price point is held for more than 30 seconds.
Please bring laptops with IDE of choice pre-installed. We recommend either Visual Studio Code or Visual Studio Community 2017. Either flavour of F# (.NET Framework or .NET Core) should be fine.
We'll be meeting for drinks beforehand at Ply before heading across the road at 6:50
