Back to Signal Fields
Signal Fields

Bid-ask spread filter amount

The Bid-ask spread filter amount caps how wide the bid-ask spread may be, as a dollar amount in the symbol's quote currency. You choose it with the $ button. If the spread (the ask minus the bid) is wider than the amount when the order is planned, the order is rejected, to avoid fills in thin or very wide markets. The amount must be greater than zero, and the form takes 0.001 to 100. In a signal's JSON the field is bidAskSpreadFilter.

For example, 0.02 allows a spread of up to two cents. It needs quotes from your broker: if the broker does not support quotes, the filter is not applied. A signal sends either this or the percent, not both. A value in the signal is used only when signal values are allowed for it (Allow signal override, or the global Signal overrides); otherwise the strategy's own spread filters apply.

{
    "ticker": "AAPL",
    "action": "buy",
    "orderType": "limit",
    "limitPrice": 150,
    "bidAskSpreadFilter": 0.02
}

Ready to put Bid-ask spread filter amount 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.