aboutsummaryrefslogtreecommitdiff
path: root/downloads/HypeTrader.js
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-06-13 06:00:33 +0200
committerAgando <roduccomm@gmail.com>2026-06-13 06:00:33 +0200
commit764128fbf5c5516eb26700ca3cf2f1ad523c48bd (patch)
treeaa5d736107b55703a40a6f6701f44e7597cc710c /downloads/HypeTrader.js
parent76e26bb6f16e35bffbf76896957bb9753241833c (diff)
auto: 2026-06-13_06:00 changes
Diffstat (limited to 'downloads/HypeTrader.js')
-rw-r--r--downloads/HypeTrader.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/downloads/HypeTrader.js b/downloads/HypeTrader.js
new file mode 100644
index 0000000..acc3a60
--- /dev/null
+++ b/downloads/HypeTrader.js
@@ -0,0 +1,35 @@
+/**
+ * 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;