Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    setting SL and trigger Price

    Python SDK
    1
    2
    29
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HawkEye last edited by

      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.

      H 1 Reply Last reply Reply Quote 0
      • H
        HawkEye @HawkEye last edited by

        @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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post