Tquant Lab, Python, Backpacking, Tejapi Application.
context.stop_loss variable to record stop-loss points during backtesting Setting the context.holding variable to record whether a position in a particular stock is held Setting the context.trailing_stop variable to record whether the trailing stop is being applied Setting the context.last_buy_price