Hello, I'm new to the Quantopian community and think this is a very interesting website with a lot of potential.
I have a few questions which are not covered by the FAQ or the documentation help provided on this website. I would appreciate any answers I could get.
1) When an order is placed at a certain price but the following bar that price does not trade, what happens to the order? Does the order persist over multiple bars or if it is not executed on the bar directly after the order is placed, is it cancelled? If it does persist over many bars, is it necessary to cancel the order if the entry signal is no longer valid? If it is necessary to cancel the order, how do you do it?
2) If I open a position but I intend for the stop loss and exit prices to change over time, would I need to program conditions for a counter position to be taken at those prices or is it possible to edit the open position (e.g in pseudo code: open_position.stop_loss = new_sl_price).
3) Is there a convenient way to pair trade multiple instruments? Would it be a better idea to write my own class to deal with the internals of it? Is there any chance someone might be able to give me some example code of how this could be done in Quantopian? Even non-functioning or partially completed code would be great. I just want an idea of how this might be achieved.
Although I have experience in python, I am still learning the API so go easy on me :) No doubt I will have a few more questions in the near future but when I get to the point where I don't suck so much I plan to share some of the algos I make.