Navigation

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

    Immediately buy another order when SL is hit

    Python SDK
    2
    2
    22
    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.
    • T
      TradeMonk last edited by

      I am placing a order, let say buying 33000 CE at 200 with a SL of 250. Now, I want to execute another order as soon as my SL is hit.

      Ex: I bought 33000 CE at 200 - SL 250

      Now, at some point my SL is hit then I would like to immediately buy another strike 33500 CE.

      Do, I have to run the code every 1 minute to check if the position is closed and then place a new order, or
      Is there any trigger which will let me know that SL is hit.

      J 1 Reply Last reply Reply Quote 0
      • J
        jiwan1986 @TradeMonk last edited by

        @TradeMonk Why SL is at 250 when you buy at 200? As mush as I know, there is no trigger that will let you know if your SL has been hit. You have to keep checking if your SL has been hit or not at every tick. Market can move wildly even in 1 minute so don't wait for 1 minute.

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