setting SL and trigger Price


  • Please help with the parameters for SL and SL trigger price:

    My order params structure:

    orderparams = {
                    "variety": "ROBO",
                    "tradingsymbol": stockname,
                    "symboltoken": symbolToken,
                    "transactiontype": "BUY" if isBuy else "SELL",
                    "exchange": "NSE",
                    "ordertype": "LIMIT",
                    "producttype": "BO", #"INTRADAY" if isIntraday else "DELIVERY",
                    "duration": "DAY",
                    "price": price,
                    "squareoff": price - target,
                    "stoploss": sl - price - 0.1,
                    "triggerprice": sl - price,
                    "quantity": quantity
                    }
    

    My requirement:
    CHOLAFIN.NS - SELL at 630.45 with Stop Loss: 634.3 and Target: 607.0

    Currently target and sellprice are going proper but SL and triggerprice are messed up.


  • @admin
    What should be the values for "stoploss" and "triggerprice" for a call:
    SELL at 630.45 with Stop Loss: 634.3 and stop loss trigger price 634.2