Configuring Immediate Stop and Request Stop

Hi All,

I would like to configure an immediate stop and a request stop in my strategy,through a combination of keys.

In case of request stop,I want that when i hit a particular key combination,the code should close all the existing positions through limit orders,cancel pending orders and exit the strategy.And in case of immediate stop,I want that when a hit the key combination,the code should square off all the orders at market prices,cancel all pending orders and exit the strategy.

Any ideas/suggestions on how this can be implemented?

Thanks and Regards,
Sign In or Register to comment.