Back to Strategy Fields
Strategy Fields

Allowed sides

The Allowed sides field allows you to control what side of the trade you want to allow to execute when using action=buy or action=sell. Some strategies may be long only and others may be short only. You can control this behavior by setting the Allowed sides field in your strategy settings. The allowed values are:

  • Both Sides - Allow both long and short trades to execute.
  • Long - Allow only long trades to execute.
  • Short - Allow only short trades to execute.

This setting applies to every signal that enters or grows a position: action=buy, action=sell, action=add and action=resize. The action=reverse always exits the current position and enters the opposite side, regardless of Allowed sides.

Here is an example, if you have Allowed sides set to Long and you receive a signal for action=sell and there is no open long position to sell, the trade will be rejected. If you have Allowed sides set to Both, it will exit the open long position if it exists and enter short on the other side.

Ready to put Allowed sides to work?

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

By continuing, you agree to the TradersPost Terms of Service and Privacy Policy. This site is protected by reCAPTCHA.