Hello - I am new QC user and part way through the bootcamp. Quick question while I practice. 

1. What is the best place to restrict time of trading. For example, I want to trade Futures but only between 6 AM and 1.15 PM PST especially for backtests. 

2. If I hit max loss for the day, I would like to stop by algorithm from executing. How and where should I write code for this in the framework. 

Author