Check Edge
tt_check_edgeHas this rule ever actually made money? The FREE screen that kills bad ideas before anyone spends a paid backtest on them.
For a single NSE STOCK on DAILY candles ("buy X when RSI < 30, sell a week later") use tt_backtest_idea instead — it takes stocks, daily bars and hold-N-days exits, and runs the real engine in one more call.
rules is a comma-separated list from tt_scan_instruments, e.g.
"price_above_ema20,macd_above_signal". direction is long or short.
exit_rule is 'bars:N', 'opposite', or 'session_close'.
DIRECTION AND EXIT ARE REQUIRED AND HAVE NO DEFAULTS, on purpose. An indicator reading says what to WATCH; it does not say which way to trade it or when to get out. If the user has not said, ASK — do not pick. A quietly-invented exit produces a strategy that looks like their idea and behaves nothing like it.
THIS IS NOT A BACKTEST and must never be called one. It trades the SPOT,
not options; it applies no brokerage, no statutory charges, no slippage
and no sizing. Report the limits string alongside any number. A
positive result means only that the idea has EARNED a real backtest —
say exactly that, then offer tt_promote_to_strategy, which is the only
tool that takes a screened rule set (it builds a validated draft,
creates nothing and charges nothing). Do NOT offer
tt_backtest_strategy here: it takes a template or a strategy_id, not
rules, and it can debit the user's wallet. The order is
tt_promote_to_strategy -> tt_create_strategy -> tt_backtest_strategy.
Never annualise it, never call it profit, never present it as expected
return.
Entries are transitions into the rule set, taken at the NEXT bar's open — never the close that produced the signal. Positions do not overlap.
DATA RULE: the window is lookback_days ENDING 35 days before today
(window.ends) for Indian roots — replays of a trading rule there may
only use data at least 35 days old (exchange rule); US roots end
yesterday. Name that end date; never describe the
result as covering recent sessions.
Returns trades, win rate, total, median, payoff, max drawdown,
a trade_list of the most recent 25 (with trade_list_scope saying
so — the headline figures are over ALL trades and must not be
recomputed from that list), plus the
wire conditions for the rules so nothing is retyped on the way to a
strategy. No auth required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"underlying": "<underlying>"
},
"name": "tt_check_edge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | No | Comma-separated rule names from tt_scan_instruments, e.g. 'price_above_ema20,macd_above_signal'. No default: a call without it is refused, naming it in details.missing_params. | |
| direction | No | 'long' or 'short'. No default: a call without it is refused, naming it in details.missing_params. | |
| exit_rule | No | 'bars:N', 'opposite' or 'session_close'. No default: a call without it is refused, naming it in details.missing_params. | |
| timeframe | No | 5m | |
| underlying | Yes | ||
| lookback_days | No |