How can I avoid duplicate orders when TradingView sends multiple alerts?

Asked by Radhesh Joshi · SOLVED
1 reply 424 views Jump to solution Reply
Radhesh Joshi Original Post
Strategy Builder

I’m using a TradingView strategy with AlgoDelta, but sometimes multiple alerts are triggered within a short period of time. Because of this, I’m worried that duplicate orders might get placed for the same signal.

Is there any way to avoid duplicate entries while using AlgoDelta?

Posted Aug 3
Reply

    1 Reply

    Tech Support AlgoDelta
    Tech Support AlgoDelta Automation Expert ·

    Yes sir, this is one of the most common questions when users start automating their TradingView strategies.

    In most cases, duplicate orders are not caused by AlgoDelta. They usually happen because the TradingView alert or the strategy is configured in a way that sends multiple alerts for the same trading signal.

    To avoid this, you can follow these recommendations:

    -Step 1:

    While creating the TradingView alert, set the Trigger option to:

    -One Per Bar Close

    This ensures that TradingView sends only one alert after the candle closes instead of sending multiple alerts while the candle is still forming.

    -Step 2:

    Make sure your strategy or indicator generates only one Buy or Sell signal for a single trading opportunity.

    If your script keeps returning the same signal on every tick, TradingView may continue sending alerts.

    -Step 3:

    If you’re using a Pine Script strategy, use proper entry conditions so that a new order is generated only when a fresh signal appears instead of on every price update.

    -Step 4:

    If you’re using the Custom Bridge, make sure the Upside and Downside executions are configured correctly. If you’re using the JSON Bridge, verify that your generated syntax matches your intended trading logic.

    So, in simple terms, the best practice is:

    -Use “One Per Bar Close” while creating alerts.
    -Generate alerts only when a new trading signal occurs.
    -Avoid writing strategy logic that repeatedly sends the same signal.

    Verified Solution
      Markdown supported · ```json for code blocks · paste or drop screenshots

      Be specific and kind. Never share API keys, passwords or personal account details.

      Welcome to the community

      Log in or create your account in under a minute.

      1. 1Mobile
      2. 2E-mail
      3. 3Password
      +91

      Have a password?

      By continuing you agree to the community guidelines. We’ll send a one-time code by SMS.