Learn-Algorithmic-Trading---Fundamentals-of-Algorithmic-Trading Learn Algorithmic Trading - Fundamentals of Algorithmic Trading, published by Packt Errata Page 144 (Bullet pont 4, line 9 of code): MIN_PROFIT_TO_CLOSE = 10 should be MIN_PROFIT_TO_CLOSE = 10*NUM_SHARES_PER_TRADE