@sujith Can we have the SL and TP feature in cash also like bracket orders ? If I want to do intraday cash without leverage and want to have SL and TP feature
@tahseen, Have you checked out GTT? You can trade in CNC(cash) while having your stop-loss and target triggers that fire an order as soon as one of them is hit.
In below I understand trigger values and in orders the price
What is the purpose of last_price if I give my Limit order price
Place GTT order
trigger_type The type of GTT order(single/two-leg). tradingsymbol Trading symbol of the instrument. exchange Name of the exchange. trigger_values Trigger values (json array). last_price Last price of the instrument at the time of order placement. orders JSON order array containing following fields transaction_type BUY or SELL quantity Quantity to transact price The min or max price to execute the order at (for LIMIT orders)
The last_price is required for two reasons: 1. Validation of trigger conditions at time of placement 2. The single leg trigger decides the direction for triggering itself using the last_price
@tahseen, You can have a target or stop-loss right for an open position. If you have a long position, you can set GTT for stop-loss and target with sell transaction type.
@tahseen, Like @rhnvrm mentioned, it is used by our system for validation of trigger conditions at the time of placing GTT and to determine the direction for single trigger GTTs.
I guess I understand what you are confused with. It seems to be there in the docs. The condition is separate from the orders, unlike what you have posted above.
if you place a single leg gtt with trigger_value at 650.
If last_price is 600. When trigger_value > 650 it should place order. If last_price is 700. When trigger_value < 650 it should place order.
Now, the order that will be placed, will use the Limit Price, Transaction Type, SL and TP etc as its parameters that you are setting inside the orders array. Not the other way around.
I don't get what you mean by below If last_price is 600. When trigger_value > 650 it should place order. If last_price is 700. When trigger_value < 650 it should place order.
@tahseen,
Here @rhnvrm was explaining the use of the last price (a current market price or LTP) while placing the GTT. Or you can say this is how GTT works.
Have you checked out GTT? You can trade in CNC(cash) while having your stop-loss and target triggers that fire an order as soon as one of them is hit.
In below I understand trigger values and in orders the price
What is the purpose of last_price if I give my Limit order price
Hey,
The last_price is required for two reasons:
1. Validation of trigger conditions at time of placement
2. The single leg trigger decides the direction for triggering itself using the last_price
You can have a target or stop-loss right for an open position. If you have a long position, you can set GTT for stop-loss and target with sell transaction type.
Limit Price, Transaction Type, SL and TP does the entire work. Something like bracket order
What is the use of last_price ?
I guess I understand what you are confused with. It seems to be there in the docs. The condition is separate from the orders, unlike what you have posted above.
Suppose we want to place a gtt for INFY.
if you place a single leg gtt with trigger_value at 650.
If last_price is 600. When trigger_value > 650 it should place order.
If last_price is 700. When trigger_value < 650 it should place order.
Now, the order that will be placed, will use the Limit Price, Transaction Type, SL and TP etc as its parameters that you are setting inside the orders array. Not the other way around.
I don't get what you mean by below
If last_price is 600. When trigger_value > 650 it should place order.
If last_price is 700. When trigger_value < 650 it should place order.
Here @rhnvrm was explaining the use of the last price (a current market price or LTP) while placing the GTT. Or you can say this is how GTT works.