I am having difficulty understanding the way one should use stop-loss and limit orders in the Quantopian environment.
For example, if the following order is placed,
p = data[stock].price
order(stock, 100, style=StopLimitOrder(limit_price = p*1.05, stop_price = p*0.99 )) ,
am I interpreting this correctly as 100 shares being bought immediately (market order) and then being automatically sold off if the price drops below 99% per-cent (to stop the loss) of the current price or rises above 105% of the current price (to collect profit)?
Regards,
Tim