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
