Hi all, I'm super new to Quantopian and I'm hoping to create a stop loss for a percentage loss.
The format I'm using is to setup the stop loss when I initially open the position... It looks like this:
order_target_percent(security, -.1, style=StopOrder( CODE ))
I just want to close out the position when it has lost 15% in value. I've tried various things for the last 30 minutes or so, to no avail.