I was wondering how to add a stop-loss/stop-gain to this algorthim. I took a shot at it but, it doesn't seem to be working. Any help would be much appreciated. 

Thanks,

Ken

 

**main.py is where to actual code is the other tabs are just scratch work**