Features & Settings

Placing Orders with OCO using TradersPost

Learn how to utilize Order-Cancel-Order (OCO) functionality in TradersPost to automate your trading strategies and manage risk effectively. This guide provides step-by-step instructions for setting up OCO orders, ensuring you can capitalize on market movements with ease.

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.

Order-Cancel-Order (OCO) is an advanced trading feature that allows traders to place two conditional orders simultaneously, where the execution of one order cancels the other. This technique is particularly useful for managing risk and optimizing entry and exit points in volatile markets. In this guide, we will explore how to place OCO orders using TradersPost, focusing on placing buy and sell orders around the candle price.

Understanding OCO Orders

OCO orders are designed to automate trading strategies by setting up two orders with opposing conditions. For instance, a trader might want to buy above the current price and sell below it, ensuring that once one condition is met, the other is automatically canceled. This is especially beneficial in scenarios where the market direction is uncertain, allowing traders to capitalize on movement in either direction.

Setting Up OCO Orders in TradersPost

To set up OCO orders in TradersPost, start by identifying the price levels above and below the current market price where you want to place your orders. For example, you might set a buy limit order $2 above the current price and a sell limit order $2 below.

Next, log in to your TradersPost account and navigate to the order entry section. Select the OCO order type and enter the specifics of your buy and sell orders, including the price points and order size.

To automate your OCO orders, utilize the webhook functionality in TradersPost. Refer to the documentation for the required JSON payload, which typically involves setting a stop entry for the buy order and attaching a limit stop order for the sell order.

Ensure that your broker supports the type of OCO order you intend to place. TradersPost provides compatibility with various brokers, but specific features may vary. Once your orders are configured, execute them and monitor their status. TradersPost will handle the conditional logic, canceling the opposing order once one is filled.

Example Scenario

Imagine you are trading a stock currently priced at $100. You anticipate significant movement but are unsure of the direction. By placing an OCO order, you can set a buy limit at $102 and a sell limit at $98. If the price rises and hits $102, your buy order is executed, and the sell order is automatically canceled, securing your entry into the market. Conversely, if the price drops to $98, the sell order is triggered, and the buy order is canceled, allowing you to short the stock.

Tips for Effective Use of OCO Orders

To make the most of OCO orders, consider utilizing advanced features such as trailing stops. Attaching trailing stop orders to your OCO setup can help protect profits or limit losses once the initial order is filled. Be aware of the margin requirements and rules of your broker to ensure you have sufficient funds to cover the orders.

Different brokers offer varying levels of support for complex order types. Regularly check for updates and enhancements in TradersPost’s offering to take full advantage of available features.

Conclusion

OCO orders are a powerful tool for traders looking to manage risk and capitalize on market volatility. By understanding how to set up and execute these orders in TradersPost, you can enhance your trading strategy and improve your chances of success. Always ensure your broker supports the specific order types you need and stay updated with the latest features provided by TradersPost.

  • Walk-Forward Optimization Trading Guide

    Master walk-forward optimization trading to test strategies across market regimes, reduce curve fitting, and prepare alerts for disciplined automation.

  • Video

    Position Sizing Automation to Protect and Scale

    Learn how position sizing automation uses fixed, dollar, equity, and stop-based risk methods to protect capital and scale TradersPost strategies reliably.

  • Video

    TradersPost Paper Trading Validation Guide

    Learn TradersPost paper trading validation: route real TradingView or TrendSpider alerts, review fills and risk orders, then safely prepare for live trading.

  • Video

    Automate Trading Around Economic Events

    Learn to automate trading around economic events with Trading Windows, TradingView alerts, and disciplined plans for FOMC, CPI, earnings, and major releases.

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.