Back to Signal Fields
Signal Fields

Bid-ask spread filter percent

The Bid-ask spread filter percent caps how wide the bid-ask spread may be, as a percent of the midpoint. You choose it with the % button. The spread as a percent is the ask minus the bid, divided by the midpoint (the average of the bid and the ask), times 100. If it is wider than your percent when the order is planned, the order is rejected, to avoid fills in thin or very wide markets. In a signal's JSON the field is bidAskSpreadFilterPercent.

The percent must be from 0.01 to 99.99. For example, 0.5 allows a spread of up to 0.5% of the midpoint. 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 dollar amount, 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,
    "bidAskSpreadFilterPercent": 0.5
}

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