AI Strategy Playbook
Multi-Coin MACD + RSI Momentum Scanner Agent (MCP Script)
In standard tool-calling MCP setups, scanning 15 coins across 3 indicators requires 45 sequential tool calls and thousands of wasted tokens. Eterna's Deno sandbox crunches the entire matrix in one pass and hands the LLM a clean 3-row shortlist.
Strategy Summary
Use a single `execute_code` loop calling `eterna.getMacd()`, `eterna.getRsi()`, and `eterna.getTickers()` across your entire watchlist, filter in TypeScript for positive MACD histogram acceleration with RSI between 50 and 68, and return only the top 3 ranked setups to the LLM to save 90%+ in context tokens.
Token Reduction~90% fewer tokensFilter inside Deno before returning
IndicatorsMACD + RSI + 24h VolConfluence scoring in TypeScript
Universe800+ USDT perpsScan any liquid subset
Schedulingn8n / CLI / ClaudeWorks interactive or automated
https://mcp.eterna.exchange/mcp1. Single-Pass Multi-Coin Confluence Scanner
const universe = [
"BTCUSDT", "ETHUSDT", "SOLUSDT", "XRPUSDT", "BNBUSDT",
"SUIUSDT", "LINKUSDT", "AVAXUSDT", "TAOUSDT", "AAVEUSDT",
];
const scored = await Promise.all(
universe.map(async (symbol) => {
const [ticker, macd, rsi] = await Promise.all([
eterna.getTickers({ symbol }),
eterna.getMacd({ symbol, interval: "60" }),
eterna.getRsi({ symbol, interval: "60", period: 14 }),
]);
const histogram = Number(macd.histogram ?? 0);
const rsiVal = Number(rsi.value ?? rsi.latest ?? 50);
const change24h = Number(ticker[0].price24hPcnt ?? 0) * 100;
const bullish = histogram > 0 && rsiVal >= 52 && rsiVal <= 68;
const bearish = histogram < 0 && rsiVal >= 32 && rsiVal <= 48;
return {
symbol,
price: Number(ticker[0].lastPrice),
change24hPct: Number(change24h.toFixed(2)),
histogram: Number(histogram.toFixed(5)),
rsi: Number(rsiVal.toFixed(1)),
signal: bullish ? "MOMENTUM_LONG" : bearish ? "MOMENTUM_SHORT" : "NEUTRAL",
};
}),
);
return scored.filter((r) => r.signal !== "NEUTRAL");Returns: Only non-neutral MACD + RSI momentum signals, keeping LLM context compact.
FAQ
Frequently asked questions
Why require RSI between 52 and 68 instead of above 70 for momentum longs?
Entering when RSI is already above 75 often buys the exhaustion wick. Filtering for 52 to 68 captures fresh momentum after the MACD turn while leaving room for continuation.
Primary Sources
References & verification links
- execute_code vs Multi-Tool CallingBenchmarks on why filtering in Deno beats multi-tool JSON bloat.
Start Trading via MCP
Connect your AI agent in 30 seconds
One remote MCP URL. 800+ USDT perpetuals, 380+ spot pairs, 0.014% maker / 0.035% taker, no KYC.