Product Updates

How to Construct JSON for Simultaneous Buy and Sell Signals in TradersPost

Learn how to construct JSON for simultaneous buy and sell signals in TradersPost and optimize your strategy using TradingView alerts or Pine Script.

Tom Hartman

Marketing

Reviewed by Mike Christensen

Fact-checked by Mike Christensen

2 Min Read
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

Traders often encounter scenarios where they need to send simultaneous buy and sell signals for different stocks. For example, closing a position in one ticker while opening a position in another. This guide explains how to construct JSON alerts for such cases in TradingView and how TradersPost processes them for seamless execution.

Key Concept: Separate Alerts for Each Ticker

TradersPost requires separate alerts for each ticker, even if the actions need to occur simultaneously. For example:

  • Ticker A (Sell Signal): Close an open position.
  • Ticker B (Buy Signal): Open a new position.

Steps to Set Up Alerts

1. Create Alerts in TradingView

You’ll need to create two distinct alerts, one for each ticker.

  1. Open the chart for Ticker A (e.g., TQQQ) and set up a sell alert:
  2. {
       "ticker": "TQQQ",
       "action": "sell"
    }
  3. Open the chart for Ticker B (e.g., SQQQ) and set up a buy alert:
  4. {
       "ticker": "SQQQ",
       "action": "buy"
    }

2. Trigger Alerts Simultaneously

Both alerts will trigger at the same time if your TradingView strategy aligns the conditions for both signals concurrently. TradersPost will receive and execute both alerts simultaneously.

Using Indicators Instead of Strategies

For faster signal responsiveness:

Benefits of Using Indicators:

  • Faster signal triggering.
  • Greater flexibility for sending custom alerts.
  • Simpler integration with TradersPost.

Key Takeaways

  1. Separate Alerts Required: Each ticker must have its own alert for buy or sell actions.
  2. Simultaneous Execution Supported: TradersPost processes alerts concurrently if received at the same time.
  3. Pine Script Pairing: Use programmatic alerts for precise control over simultaneous signals.
  4. Indicator Conversion: Consider using indicators for faster signal response.

Conclusion

Constructing JSON for simultaneous buy and sell signals in TradersPost is straightforward with separate alerts for each ticker. By leveraging TradingView’s alert system or custom Pine Script configurations, you can ensure seamless execution of complex trading strategies. With TradersPost’s robust platform, your signals are processed efficiently, enabling precise and timely trading actions.

  • Product Updates Mar 9, 2026

    Pine Script strategy.exit() Changed in v6

    How to fix strategy.exit() calls when migrating from Pine Script v5 to v6, where relative and absolute parameters are now both evaluated.

  • Video
    Product Updates Nov 18, 2025

    AGI’s Impact on the Future of Trading

    Explore the potential impact of Artificial General Intelligence (AGI) on the future of trading. This comprehensive guide discusses how AGI might influence market volatility, trading strategies, and the role of human traders, along with ethical and regulatory considerations to ensure fair and beneficial market practices.

  • Video
    Product Updates Nov 18, 2025

    Are JSON Properties Case Sensitive?

    JSON properties in TradersPost are case sensitive. Users should copy property names directly from the documentation to ensure correct formatting and avoid execution errors.

  • Video
    Product Updates Feb 2, 2025

    Why Does the Sentiment Parameter Sometimes Sell Everything?

    If sentiment = flat is sent, TradersPost closes all positions, ignoring quantity settings. To avoid this, traders should use “action = sell” with a specific quantity for partial exits.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

TradersPost operates as a non-custodial automated trading platform, enabling users to connect alerts from their preferred trading platforms to their selected brokerage or exchange accounts. It abstains from the transmission, custody, or management of customer funds, covering both traditional and cryptocurrency assets. Typically, registration requirements set by regulatory entities such as the SEC, FINRA, or FinCEN apply to entities that hold or transmit customer funds. To ensure ongoing compliance, TradersPost regularly engages with regulatory authorities to confirm its adherence to all relevant local and federal laws.

TradersPost does not provide alerts, signals, research, analysis, or trading advice of any kind. It is designed to assist traders and investors in making their own trading decisions based on their alerts. The platform does not offer recommendations regarding securities to buy or sell, nor does it provide trading or investing advice. The platform and its features, capabilities, and tools are provided 'as-is' without any warranty.

Risk Disclosure: The use of automated trading systems involves inherent risks, including the potential for significant financial loss. These systems operate based on predetermined algorithms that may not fully adapt to changing market conditions, possibly making them unsuitable for some investors. Individuals are advised to thoroughly assess their financial situation and risk tolerance before using this platform.

Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.

© 2026 TradersPost, Inc. All rights reserved.