I have had an accident on my excel sheet today. My automated system failed to close a position, and as a consequence my loss far exceeded the maximum drawdown expected for the system.
I realized that fixing the excel sheet is not enough, and that I must find a way to send a stoploss order to IB, preventing such huge losses in case of any accidents.
I am trying to figure it out but I don't want to send an order to open the position, and then an ensuing stop order. I want to send it all at once. Is it possible? Maybe I have to use the trailing stop? How do I do that? Thank you.
I realized that fixing the excel sheet is not enough, and that I must find a way to send a stoploss order to IB, preventing such huge losses in case of any accidents.
I am trying to figure it out but I don't want to send an order to open the position, and then an ensuing stop order. I want to send it all at once. Is it possible? Maybe I have to use the trailing stop? How do I do that? Thank you.