For a Swing Trade: How can I implement this “single-entry + exit-only” logic in Fyers Automate? Is there a way to enforce this using position checks, state variables, or built-in features?

I am trying to build a simple swing trade automation in Fyers Automate with the following logic:

  • Buy when price reaches ₹100

  • Once the buy is executed, it should not trigger another buy again (even if the condition is met multiple times during the day)

  • After entry, only the following should be active:

  • Stop Loss at ₹95 - Target exit

Since the strategy runs continuously from market open, the buy condition keeps getting evaluated repeatedly, which may lead to multiple entries.

Requirement:

  • Ensure only one buy is executed per trigger/day
  • After the first buy, the system should disable further buy triggers
  • Only stop loss or target should close the position

**Hi @S3BNs0L7Rp, **yes, this can be achieved in Automate. To avoid multiple entries, you can configure your strategy with a single entry trigger and define the Stop-Loss and Target directly within the Place Order node, as shown in the example screenshot below.

Once the order is executed, the attached SL/Target will manage the exit, and no additional buy orders will be placed for that position. You can also use a Position Check node to ensure there is no existing open position before taking a fresh entry.

Please let me know if you stuck anywhere while building, I will guide further.