is it possible to put such bracket order based on some percentages, as
I want to submit a bracket order before market starts
1-buy stock-X at the market rate(open rate)
2-stoploss= a negative percentage of 1 [open rate at which entry is executed, -1%, -2%…]
3-profit/limit= a positive percentage of 1 [open rate at which entry is executed, +1%, +2%…]
4. if, the market does not hit either stop-loss or profit rate (upper and lower of bracket) , then close the position (sell the stock) at market closing time.
any help appreciated.
1 Like
Hi,
There is no direct support to specify the percentage for take-profit/stop-loss. You can calculate it in your script if you are making API request.
1 Like
I am also looking for the same feature. Seems to me that adding % limits to profit and stoploss should be straightforward. As it is, I am forced to get latest price, create price targets, and create bracket order order. Assumes latest price is correct and order price == latest price. Not good.
2 Likes
As @hitoshi mentioned, you have to calculate it. Consider that this can be an issue if the stock price is very low. The dollar amounts that the API expects are to 2 decimal places. In the event that your script calculates a percentage take/stop that is not at least $0.01, it won’t accept the order.