Bid-ask spread filter
The Bid-ask spread filter is a cap on how wide the bid-ask spread may be when the order is planned. If the spread is wider, the order is rejected, to avoid fills in thin or very wide markets. Choose how it is measured with the buttons:
- None sets no cap for this signal.
- $ is a dollar amount in the symbol's quote currency (
bidAskSpreadFilter), compared with the width of the spread (ask − bid). It must be greater than zero (the form takes 0.001 to 100). - % is a percent of the midpoint (
bidAskSpreadFilterPercent), so0.5is 0.5% (from 0.01 to 99.99).
A signal can send one of the two, not both. It needs quotes from your broker: if the broker does not support quotes, the filter is not applied. A value in the signal is used only when signal values are allowed for it (Allow signal override, or the global Signal overrides); the strategy's own entry and exit spread filters apply otherwise.
Each kind has its own entry that opens from the label once you choose it. Both forms in a signal's JSON:
Dollar amount (bidAskSpreadFilter), here a cap of two cents:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"bidAskSpreadFilter": 0.02
}
Percent (bidAskSpreadFilterPercent), here a cap of half a percent of the midpoint:
{
"ticker": "AAPL",
"action": "buy",
"orderType": "limit",
"limitPrice": 150,
"bidAskSpreadFilterPercent": 0.5
}
Sending both in one signal is rejected.
Ready to put Bid-ask spread filter 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.