nitro Mar 15, 2013 #21 A nice article on FSM as it applies to trading: http://learnyousomeerlang.com/finite-state-machines