Yes sir, this is a very common issue while developing TradingView strategies.
In most cases, this doesn’t happen because of AlgoDelta. It happens because the strategy conditions remain true for multiple candles, so the strategy keeps generating new entry signals.
To avoid this, your strategy should first check whether there is already an open position before creating a new entry.
For example, if you’re using a Pine Script strategy, you can use strategy.position_size to determine whether a position is already open.
-Only generate a Buy entry if there is currently no Buy position.
-Only generate a Sell entry if there is currently no Sell position.
-Wait until the existing position is closed before allowing a new entry.
This ensures that your strategy enters only once for each trading opportunity instead of creating repeated entries on every candle.
If you’re using AlgoDelta with either the JSON Bridge or the Custom Bridge, this approach is highly recommended because it prevents unnecessary duplicate trade signals from reaching the platform.
So in simple terms:
-Check whether a position is already open before generating a new entry.
-Allow a new Buy or Sell signal only after the previous position has been exited.
-This keeps your strategy clean, avoids repeated entries, and makes the automation much more reliable.