Strategy Field

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 action=buy and action=sell only. 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.

Start trading at scale today. Sign up for free.

Free 7-day trial

Set-up in 3 minutes

Paper account for testing

Start now