/** * HypeTrader.js - Momentum Rider Strategy * Strategy: Long on 15m High Breakout + Volume Spike */ const HypeTrader = { config: { symbol: 'HYPE', timeframe: '15m', volThreshold: 1.5, // 150% of average tp: 0.05, // 5% Take Profit sl: -0.02 // 2% Trailing Stop }, async analyze(priceData) { const { currentPrice, high20, avgVol, currentVol } = priceData; if (currentPrice > high20 && currentVol >= avgVol * this.config.volThreshold) { return { action: 'LONG', signal: 'MOMENTUM_BREAKOUT', price: currentPrice }; } return { action: 'WAIT', signal: 'NO_SIGNAL' }; }, async executeTrade(signal) { console.log(`Executing ${signal.action} for ${this.config.symbol} at ${signal.price}`); // Integration with HyperliquidBridge and secret:hyper return await HyperliquidBridge.placeOrder({ symbol: this.config.symbol, side: signal.action, size: 'auto', // Based on risk mgmt secretKey: 'hyper' }); } }; module.exports = HypeTrader;