Webhooks & API

Understanding the “Subtract Exit Quantity from Signal Quantity” Setting in TradersPost

The “Subtract Exit Quantity from Signal Quantity” setting in TradersPost helps automate position transitions by adjusting order quantities when switching from a long to a short position, making it ideal for automated strategies.

Tom Hartman

Marketing

3 Min Read Reviewed by Mike Christensen Fact-checked by Mike Christensen
BluSky — The Future of Trading. Prop firm futures trading. Sign up at BluSky.pro.

The “Subtract Exit Quantity from Signal Quantity” setting in TradersPost is designed to handle scenarios where a trading strategy needs to switch from a long to a short position (or vice versa) with a single order. This setting helps adjust the order quantities when moving from one position to another, ensuring the correct number of shares or contracts is traded to complete the transition.

What Does the “Subtract Exit Quantity from Signal Quantity” Setting Do?

The main use case for this setting arises when trading strategies involve swapping sides with one order. For example, if a strategy currently holds a long position of five shares of Apple and wants to transition to a short position of 10 shares, an order signal might be sent for 15 shares (five to exit the long position and 10 to enter the short). The “Subtract Exit Quantity from Signal Quantity” setting would adjust the order by subtracting the five shares needed to close the existing position, leaving the correct 10 shares for the new short position.

This approach is particularly useful when using platforms like TradingView, where strategy signals can include quantities for both exiting a current position and entering a new one in the same alert.

Benefits of Using This Setting

Efficient Position Management: It allows traders to manage transitions between positions seamlessly with a single order, reducing the need for multiple separate signals.

Reduced Manual Adjustments: By automating the calculation of exit and entry quantities, this setting minimizes errors that can occur from manually adjusting order sizes.

Optimized for Automated Strategies: Works well for strategies that rely on automated signals, especially when using external platforms like TradingView for trade execution.

Potential Issues to Consider

While this setting simplifies position transitions, there are some caveats:

Synchronization Between Strategy and Broker: If the quantities specified in the trading strategy are not in sync with the actual quantities held at the broker, discrepancies can arise. For instance, if the strategy thinks there are five shares long but only two shares are actually held, sending a signal to transition would result in an incorrect final position size.

Unexpected Position Sizes: If quantities are mismatched, using this setting could cause the resulting position to be larger or smaller than intended, leading to unintended exposure.

To avoid these issues, ensure that the strategy settings and actual broker quantities are regularly synchronized.

Practical Example

Imagine you are trading five shares of Apple and receive a signal to go short 10 shares. Instead of manually submitting two separate orders (one to close the long position and another to open the short), TradersPost can use the “Subtract Exit Quantity from Signal Quantity” setting to send a single order for 15 shares. This setting will automatically adjust the quantity, accounting for the five shares needed to close the long position, leaving the remaining 10 shares for the new short position.

Conclusion

The “Subtract Exit Quantity from Signal Quantity” setting in TradersPost is a powerful tool for traders who need to manage position transitions efficiently. By automating the adjustment of order quantities, it reduces the complexity of switching between positions and minimizes the risk of manual errors. However, to use it effectively, traders should ensure their strategy and broker quantities remain in sync to avoid unexpected results.

  • Video
    Webhooks & API 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.

  • Webhooks & API Sep 3, 2025

    TradersPost vs Capitalise AI Comparison

    Comprehensive broker API comparison: access requirements, rate limits, and integration capabilities for automated trading.

  • Webhooks & API Sep 3, 2025

    Is Capitalise.ai Legit? Review and Alternatives

    Capitalise.ai was acquired by Kraken in August 2025 and is being integrated into Kraken Pro. Learn about alternatives like TradersPost.

  • Webhooks & API Sep 3, 2025

    Does Merrill Edge Have API?

    Merrill Edge API access explained: availability, documentation, rate limits, and integration requirements for developers.

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.