Since I am trying to optimize the "stop-loss" system on my algorithm, I have two quick questions that I find it necessary to ask:
How do you check if stop-loss orders are actually selling stock at or below the set target (like logging something once stop-loss executes)?
Is there an equivalent of placing a stop-loss order for a short position? I think this is technically termed a "buy-stop" order, but I was wondering how I would place such an order for a stock when this is not a direct option on Quantopian?