How to put market order with stop loss in stocks. Trying to find the way for a while but not successful. Please help. .NET example would be really helpful.
Thanks Sujith for the reply. Unfortunately the examples given does not have example for ORDER_TYPE_SLM. Can you add the example in that code for SLM or give an example here so that I will have the information on which exact parameter should I pass for such orders. It would help the community as well.
Just to add to above question, do I have to place two different orders.. one for the buy market order of the stock and other for stop loss market order for the stock or both the request can be combined in one call ?
Scenario is, lets say if the stock reach Rs 100, I want to buy it at market value, so the stock may get bought at 100.05 ( which is fine for me ) and once it is bought, I want to put the stop loss immediately of lets say Rs 2 so my stop loss order should get triggered at Market value when the stock price reaches Rs 98.
do I have to place two different orders.. one for the buy market order of the stock and other for stop loss market order for the stock or both the request can be combined in one call ?
For intraday order, you can use BO or CO order, which has both buy and stop-loss combined. But for normal/carry forward order, you need to place two order of market buy and then SL/SLM selling.
You need to use SLM order type and send the trigger price for the order.
Scenario is, lets say if the stock reach Rs 100, I want to buy it at market value, so the stock may get bought at 100.05 ( which is fine for me ) and once it is bought, I want to put the stop loss immediately of lets say Rs 2 so my stop loss order should get triggered at Market value when the stock price reaches Rs 98.
But for normal/carry forward order, you need to place two order of market buy and then SL/SLM selling.