Skip to main content
Glama

screener_backtest

Read-onlyIdempotent

Historically replay a cross-sectional screen at every bar. Matching instruments form an equal-weight long or short portfolio, entered at the next bar open and held to the following bar open, then re-screened. Use this when the question is whether repeatedly trading screener matches worked — a single-symbol backtest of coins that match today is not a substitute. Costs follow actual portfolio turnover, so an unchanged holding is not charged as a fresh round trip.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
logicNoDefault all.
quoteNoDefault USDT.
rulesYes
feeBpsNoPer side. Default 4.
lookbackNoBars. Default 300.
directionNoDefault long.
timeframeNoDefaults to the chart.
slippageBpsNoPer side. Default 1.
maxPositionsNoEqual-weight slots, 1 to 50. Default 10.
universeSizeNoDefault 50.
manualSymbolsNoOptional symbols forced into the universe before current-volume ranking.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / rules / items / properties / right / description
      Previous value: -"{\"kind\":\"constant\",\"value\":30} or {\"kind\":\"operand\",\"operand\":{…}}"New value: +"A number, or another operand in the same form as left."
    • removedInput schema / properties / rules / items / properties / right / type
      Removed value: -"object"
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources