<p>To create a trading algorithm with LEAN, define a subclass of the <code>QCAlgorithm</code> class. LEAN loads your algorithm into the engine during the building and compilation process. LEAN runs an ...