logologo
    logo
    Log in
    Browse help/Technical filters

    Technical filters

    Available on: Web · iOS · Android

    On this page

    A technical filter runs a study, such as RSI or a moving average, on each stock's price and volume bars and keeps the stocks where the result passes your rule. It answers questions like "is RSI under 30?" or "did the 50-day average just cross above the 200-day?".

    Use an indicator filter for the scores scanr computes for you, such as relative strength. Use a technical filter when you want to pick the study, its settings and its timeframe yourself.

    Tour

    A technical filter is one row in a filter group. This row checks a study against a fixed value:

    Read the row left to right: study, settings, timeframe, condition, target, value.

    This one checks a study against another study. The second study sits on its own line under the first:

    Pick Study as the target and a second study appears below the first.

    • f(x): the modifier. Empty until you add one.
    • Study badge (RSI, SMA): the study. Click it to pick another.
    • Inputs and settings (Close,14): the data the study reads and its settings, such as the period.
    • Timeframe (1 day): the bar size the study runs on.
    • Plot: which output to test, on a study with several, such as MACD or Bollinger Bands. Only shown for those studies.
    • Condition (Less than, Crosses above): how the result is tested.
    • Target (Value, Study, Price): what the result is tested against.
    • Value: the number to compare with, when the target is Value.
    • within N bars: how many recent bars to check. With 5, the rule only has to hold on one of the last five bars.
    • ⋯: Delete, Duplicate, Disable or Enable, and Reset to default.

    The row has no distribution slider. For a study's usual range, such as RSI's 0 to 100, see the Study reference.

    Create and configure

    1. Click + on a filter group (or Add filter in an empty group), then Technical filter. A new row appears with SMA and the rule "greater than 0".
    2. Click the study badge. Search for the study (Search studies…) and pick it.
    3. Click the inputs chip, such as Close,50, to set the Inputs and Parameters.
    4. Pick the Timeframe.
    5. Pick a condition, then a target: Value, Study or Price.
    6. Enter the value, or set up the second study or the price comparison.
    7. Set within if the rule may have held on an earlier bar.
    8. Click Scan.

    Compare with another study

    Pick Study as the target to test one study against another, as in SMA(50)>SMA(200). The second study gets its own settings, timeframe and bars ago.

    • Equal to and Not equal to add a tolerance %, set to 1% when you pick them. Two different studies are almost never exactly equal, so without a tolerance the filter matches nothing.
    • Greater than, Less than and their "or equal" versions add an optional gap %, from 0 to 1000. Less than with a 2% gap matches only when the first study sits at least 2% below the second. Leave it empty for a plain comparison.
    • Range doesn't work with a study target.

    To test a study against its own past, pick Study and keep the same study in the second line, then set that line's bars ago. RSI(14)>RSI(14) with bars ago at 5 on the second line finds RSI that is higher than it was five bars back.

    Compare with the price

    Pick Price to test a study against the stock's live price, such as "price is above its 20-day EMA". Price works with greater than, less than, equal to and not equal to. It doesn't work with Range or the crosses conditions.

    • Equal to and Not equal to take an optional tolerance %: the study must sit within that percentage of the price.
    • The inequalities take an optional gap % (min %): the minimum distance between the study and the price.

    Add a modifier

    A modifier runs a second calculation on the study before the rule tests it. Use one to ask how fast a study is rising, or how two series move together. Modifiers need Super Pro.

    1. Click f(x) on the row. The Edit modifier chain popover opens.
    2. Click Add modifier and pick one. Set its period, and its second input when it takes one.
    3. A row takes one modifier. To nest a second, click an input of correl or div and set its type to Modifier. A nested modifier reads a Series or a Study, not the study on the row.
    4. To edit both studies and their modifiers in one place, click the pencil to open the Advanced study editor.

    Pick the sessions on intraday bars

    On an intraday timeframe (minutes or hours), Pre, Reg and Ext set which sessions the study reads: pre-market, regular hours and after-hours. A new row reads the regular session only, and at least one stays on. Daily and longer bars have no sessions, so the buttons disappear.

    Reference

    Conditions

    ConditionMatches when the study is…Targets
    Greater than, Greater than or equalabove (or at) the targetValue, Study, Price
    Less than, Less than or equalbelow (or at) the targetValue, Study, Price
    Equal to, Not equal toat (or away from) the target. Add a tolerance for studies and prices.Value, Study, Price
    Crosses abovemoving from below the target to above itValue, Study
    Crosses undermoving from above the target to below itValue, Study
    Rangebetween a minimum and a maximum. Each bound is exclusive until you switch on Inclusive. One bound is enough.Value

    Combine a cross with within to catch a cross on any of the last N bars, as in SMA(50)crosses aboveSMA(200) within 5 bars.

    Row settings

    SettingWhat it doesDefault
    TimeframeThe bar size: 1 to 30 minutes, 1 to 4 hours, 1 to 4 days, 1 week or 1 month.1 day
    Pre, Reg, ExtThe sessions an intraday study reads.Reg
    bars agoWhich bar the study is read from. latest (0) is the newest bar; 5 is five bars back.latest
    withinHow many recent bars to check. The rule must hold on at least one of them.1
    tolerance %How close two values must be to count as equal.1% for a study
    gap %The minimum distance in the direction of the condition.empty

    Every study, with its inputs, settings and ranges, is in the Study reference. The data a study can read, from the close to order-book inputs, is in Study inputs.

    Modifiers

    ModifierWhat it computesPeriod
    slopeHow steep the study's trend is over the period. Above 0 means rising.up to 200
    correlHow closely two series move together, from −1 (opposite) to +1 (in step).up to 200
    divOne series divided by another.none
    pctrankWhere the latest value sits among its own last N bars, from 0 to 100.252 by default, up to 504

    Plans

    FreeSuperSuper Pro
    Every built-in studyYesYesYes
    Timeframes1 dayAllAll
    InputsPrice and volumeAll but microstructure and order bookAll
    Lookback200 trading days400 trading daysNo cap
    ModifiersNoNoYes

    Lookback is how far back a study reads: its period times the bar size, counted in trading days. SMA(200) on daily bars reads 200 days. SMA(50) on weekly bars reads 250 days, over the Free cap.

    Recipes

    Oversold RSI

    Stocks whose 14-day RSI sits in the bottom third of its range.

    Filters

    • RSI(c,14)<33.33
    How to use it

    Look for a reason to expect a bounce, such as support on the chart, before you buy. Add a liquidity filter to skip thin names.

    Warning

    A stock in a downtrend can stay oversold for weeks.

    Golden cross

    Stocks whose 50-day average crossed above the 200-day average in the last five sessions.

    Filters

    • SMA(c,50)crosses aboveSMA(c,200) (within 5 bars)
    How to use it

    Treat it as a trend change for swing and position trades. Check that volume rose on the cross.

    Warning

    The cross lags price. By the time it prints, much of the move may be done.

    Unusual volume

    Liquid stocks trading over three times their usual volume.

    Filters

    • Relative volume(v,60)>3
    • SMA(bar_dollar_volume,50)>10M
    How to use it

    Open the chart and news to find out why the volume spiked, then decide which way to trade it.

    Triple momentum

    Stocks with RSI above 55, the 20-day average above the 50-day, and MACD above its signal line.

    Filters

    • RSI(c,14)>55
    • SMA(c,20)>SMA(c,50)
    • MACD(c,12,26,9)>MACD(c,12,26,9)
    How to use it

    Use it as a trend-following watchlist and time entries on pullbacks.

    Quick reference

    StyleRecipe or settingWhy
    Day tradingA 5 or 15 minute timeframe with Pre on, plus relative volumeCatches pre-market and opening moves on intraday bars. Needs Super.
    Swing tradingOversold RSI, Unusual volumeShort-term extremes and volume spikes on daily bars.
    Position tradingGolden cross, or the same rule on the 1 week timeframeSlow trend changes that hold for months.
    InvestingSMA(50)>SMA(200) next to your fundamental filtersA trend check, so you buy quality that the market agrees with.

    Tips

    • Set within above 1 for crossing rules. A cross happens on one bar, so with within 1 you only see stocks that crossed on the latest bar.
    • Add a dollar-volume filter, such as SMA(50)>5M on the $Vol input, to any oversold or breakout scan. It drops stocks too thin to trade.
    • Use gap % instead of a plain comparison when "above" should mean "clearly above". SMA(50)>SMA(200) with a 5% gap skips averages that are tangled together.
    • Check bars ago before you trust a result. A study read 5 bars ago describes last week, not today.

    Troubleshooting

    IssueCauseSolution
    My study-to-study filter with Equal to returns nothing.Without a tolerance, two studies have to match exactly, which they never do.Set tolerance % above 0. 1% is a good start.
    "Timeframe … is not allowed for your subscription tier."Free plans run studies on the 1 day timeframe only.Switch to 1 day, or upgrade to Super.
    "Lookback value of … exceeds the maximum allowed value…"The period times the bar size is over your plan's lookback cap.Shorten the period or use a shorter timeframe, or upgrade.
    An input is grayed out, or "Input … is not allowed for your subscription tier."Free plans use price and volume inputs only. Microstructure and order-book inputs need Super Pro.Pick a price or volume input, or upgrade.
    "Technical study modifiers require Super Pro."Modifiers are a Super Pro feature.Remove the modifier, or upgrade to Super Pro.
    The row shows "No target. This filter is not active because no target is selected."The row has no condition or no target, so the scan skips it.Pick a condition, then Value, Study or Price.
    My pre-market scan finds nothing on 5 minute bars.A new intraday row reads the regular session only.Switch on Pre.
    Study is grayed out in the target list.Range can't compare with another study.Pick a different condition first.

    Was this page helpful?

    Still stuck?

    Ask scanr AI in the AI Terminal. It answers from this page. Included with Super and Super Pro.