Strategy grid lookup
strategy_grid_lookupBacktest lookup: what one exact version of a strategy actually did. Buy-the-dip and the moving-average cross, every combination of their knobs, computed over nine years of real prices with the exchange's fees charged both ways — sixteen coins, three of which died. Give the coin and the numbers and you get the return, the trades, the worst drawdown, and what buying and holding did over the same window. Read from a file you can download.
Use when someone quotes a specific dip-buying or moving-average rule ("buy 10% dips, take 5%") and you want its real backtest. For leverage use leverage_survival; for a stop on a plain buy-and-hold, stop_loss_check; to judge a win rate you were shown, overfitting_odds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | BTC, ETH, SOL, DOGE, PEPE, SRM… ticker or full pair. Ask with an unknown one and the answer lists the sixteen we hold. | |
| drop | No | dip only: how far below its recent high to buy, in %. | |
| fast | No | cross only: fast average. | |
| slow | No | cross only: slow average. | |
| stop | No | dip only: stop loss, in %. | |
| hours | No | dip only: give up after this many hours. | |
| family | No | dip (buy when it falls) or cross (moving average crossover). Defaults to dip. | dip |
| target | No | dip only: take profit, in %. | |
| candles | No | cross only: 1d or 4h. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | false when we do not hold that data. Never a zero standing in for an answer. | |
| rule | No | The rule in plain English. | |
| error | No | no_data when ok is false. | |
| reason | No | Why, in one sentence, and what we do have instead. | |
| source | No | The public file these numbers come from. | |
| trades | No | How many trades it took. | |
| return_pct | No | What it returned, after fees. | |
| win_rate_pct | No | Share of winners. | |
| buy_and_hold_pct | No | What buying the coin and leaving it alone returned over the same window. A result without this is advertising. | |
| max_drawdown_pct | No | Worst peak-to-trough fall. | |
| versions_in_family | No | How many versions of this idea exist. | |
| versions_beating_buy_and_hold | No | How many of them beat doing nothing. Often zero. |