Sixty-two transparent research strategies for Pacifica perpetual markets:
- 10 directional, relative-value, funding, and order-flow baselines
- 15 grid variants with reproducible Pacifica historical simulations
- 7 review-only copy-trading policies sourcing Hyperliquid, Pacifica, or both
- 30 independently implemented TradingView-origin research translations
The repository publishes the research code used by Neptune Strategy Desk. The strategies, indicators, public-data adapters, cost model, funding treatment, and result generation are dependency-free JavaScript so they can be inspected and reproduced easily.
Research and proposal generation only. This repository does not place, sign, cancel, or modify orders. Copy and grid outputs must be validated against live Pacifica data, the Neptune-bound account, margin, precision, and risk limits before a user approves execution.
| Strategy | Grid behavior | Market |
|---|---|---|
| BTC Arithmetic Grid | Eight equal price intervals; weekly anchor | BTC |
| BTC Geometric Grid | Ten equal log-price intervals; two-week anchor | BTC |
| BTC ATR Adaptive Grid | Width follows 24-hour ATR | BTC |
| BTC Bollinger Grid | 96-hour mean with 2.5σ envelope | BTC |
| BTC Trend-Biased Grid | ATR grid plus 24/120 EMA directional bias | BTC |
| BTC Funding-Aware Grid | Bollinger grid tilted against expensive funding | BTC |
| ETH Arithmetic Grid | Ten equal price intervals; weekly anchor | ETH |
| ETH Volatility-Regime Grid | Width expands and contracts with realized vol | ETH |
| ETH Multi-Timeframe Grid | Blends 48-hour and 240-hour grids | ETH |
| SOL Wide Arithmetic Grid | Twelve levels across a wider SOL range | SOL |
| SOL ATR Adaptive Grid | Fast center with a five-ATR envelope | SOL |
| SOL Breakout-Reset Grid | Re-anchors after a 14% range escape | SOL |
| BTC Long Accumulation Grid | Long-only buying below a two-week anchor | BTC |
| BTC Short Distribution Grid | Short-only selling above a two-week anchor | BTC |
| Blue-Chip Portfolio Grid | Equal-budget BTC, ETH, and SOL grids | BTC, ETH, SOL |
These are close-rebalanced target-position grids. A grid level crossed at an hourly close changes the target on the following bar. This deliberately avoids pretending that mark candles can reconstruct passive queue fills.
| Strategy | Source | Policy |
|---|---|---|
| Hyperliquid Position Mirror | Hyperliquid positions | Equity-normalized target positions |
| Hyperliquid Fill-Stream Copy | Hyperliquid fills | Age- and notional-capped fill proposal |
| Hyperliquid Multi-Leader Consensus | Hyperliquid leaders | Minimum-vote aggregate target |
| Pacifica Position Mirror | Pacifica positions | Equity-normalized target positions |
| Pacifica Trade-Stream Copy | Pacifica trade history/stream | Age- and notional-capped fill proposal |
| Pacifica Multi-Leader Consensus | Pacifica leaders | Minimum-vote aggregate target |
| Cross-Venue Consensus Copy | Hyperliquid + Pacifica | Symbol-mapped cross-venue consensus |
The adapters use documented public endpoints:
- Hyperliquid
POST https://api.hyperliquid.xyz/infowithclearinghouseStateanduserFillsByTime - Pacifica
GET /api/v1/positions,GET /api/v1/account, andGET /api/v1/trades/history
Leader reads require public account addresses only. They never require a leader private key. Proposal execution is intentionally absent; Neptune must use the currently bound Pacifica account and managed signing after explicit approval.
These entries retain TradingView as their source, link to the original author,
and are backed by separate JavaScript implementations for Pacifica data. No Pine
source is redistributed. See TRADINGVIEW_ATTRIBUTION.md
for source-by-source attribution and the important translation caveat.
| Reference family | Pacifica market | Net return | Sharpe | Max drawdown |
|---|---|---|---|---|
| SuperTrend | BTC | -9.58% | -0.20 | 42.89% |
| Squeeze Momentum | BTC | -11.39% | -0.59 | 21.21% |
| SSL Hybrid | ETH | +4.46% | 0.43 | 36.68% |
| Gaussian Channel | BTC | -7.86% | -0.17 | 43.06% |
| UT Bot | BTC | +5.38% | 0.46 | 25.02% |
| WaveTrend | SOL | -23.87% | -1.61 | 32.35% |
| MACD | BTC | -36.55% | -1.74 | 44.22% |
| Ichimoku + RSI | ETH | +9.81% | 0.67 | 21.15% |
| Chandelier Exit | BTC | -35.25% | -1.65 | 39.70% |
| Hull Suite | ETH | +28.35% | 1.13 | 37.40% |
| Bollinger + RSI + MACD | SOL | -8.48% | -0.24 | 18.91% |
| VWAP + OBV RSI | BTC | -7.19% | -0.55 | 19.70% |
| AlphaTrend | BTC | -46.70% | -2.49 | 49.98% |
| PMax | ETH | +23.22% | 0.99 | 43.98% |
| HalfTrend | SOL | -26.71% | -0.60 | 47.85% |
| Trend Magic | BTC | -37.84% | -1.83 | 46.16% |
| Follow Line | ETH | +39.72% | 1.41 | 28.62% |
| Range Filter | SOL | -23.16% | -0.46 | 38.79% |
| Donchian Channel | BTC | +2.91% | 0.34 | 18.02% |
| Keltner mean reversion | ETH | -46.13% | -2.36 | 53.28% |
| Nadaraya-Watson Envelope | SOL | -3.59% | -0.50 | 10.01% |
| QQE MOD | BTC | -19.49% | -0.71 | 34.49% |
| Schaff Trend Cycle | ETH | -21.08% | -0.47 | 36.66% |
| Aroon Oscillator | SOL | +6.58% | 0.53 | 45.74% |
| Elder Impulse | BTC | -52.52% | -3.75 | 53.50% |
| Coppock Curve | ETH | +48.85% | 1.61 | 25.21% |
| Stochastic RSI | SOL | -35.01% | -1.67 | 50.77% |
| Williams %R | BTC | -41.33% | -2.08 | 51.36% |
| Vortex + EMA | ETH | -4.14% | 0.17 | 36.32% |
| Choppiness trend filter | SOL | +3.94% | 0.41 | 27.18% |
These numbers are not TradingView Strategy Tester results. They use the same Pacifica mark-to-mark engine as the other catalog entries: hourly bars, actual Pacifica funding, next-bar targets, and 5 bps per 1x one-way turnover. The translation intentionally keeps losing results visible.
| Strategy | Core signal | Markets |
|---|---|---|
| BTC EMA Trend | Buffered 24/96-hour EMA crossover | BTC |
| BTC Donchian Breakout | 48-hour entry and 24-hour exit channels | BTC |
| BTC Bollinger Reversion | 72-hour rolling price z-score | BTC |
| SOL RSI Reversion | 14-hour RSI extremes and neutral exit | SOL |
| ETH Keltner Breakout | 48-hour EMA with 1.5 × 24-hour ATR envelope | ETH |
| ETH/BTC Relative Value | 240-hour log-ratio z-score | ETH, BTC |
| SOL/BTC Momentum Spread | 72-hour relative return spread | SOL, BTC |
| Blue-Chip Trend Basket | Seven-day momentum sign per sleeve | BTC, ETH, SOL |
| Blue-Chip Funding Contrarian | Eight-hour funding rank spread | BTC, ETH, SOL |
| BTC Trade-Intensity Breakout | Price channel gated by volume and trade count | BTC |
The committed result uses a fixed, reproducible window:
- Environment: Pacifica mainnet
- Window: 2026-01-01 00:00 UTC through 2026-06-30 23:00 UTC
- Interval: 1 hour
- Aligned bars: 4,344
- Markets: BTC, ETH, SOL
- Execution: signal at close, target active on the following bar
- Cost stress: 5 bps per 1x one-way turnover
- Funding: actual Pacifica hourly historical funding rates
- Exposure: maximum 1x gross, without compounding leverage
Grid results are intentionally published even when negative:
| Grid strategy | Net return | Sharpe | Max drawdown | Cost drag |
|---|---|---|---|---|
| BTC Arithmetic | -7.10% | -0.45 | 23.77% | 8.71% |
| BTC Geometric | -21.08% | -1.69 | 27.92% | 5.61% |
| BTC ATR Adaptive | -31.16% | -2.26 | 36.01% | 21.75% |
| BTC Bollinger | -25.00% | -1.94 | 28.93% | 16.53% |
| BTC Trend-Biased | -28.66% | -2.77 | 33.08% | 22.24% |
| BTC Funding-Aware | -21.96% | -1.71 | 25.79% | 16.72% |
| ETH Arithmetic | -7.53% | -0.23 | 32.56% | 8.41% |
| ETH Volatility-Regime | -8.59% | -0.77 | 18.96% | 7.36% |
| ETH Multi-Timeframe | -18.60% | -1.31 | 26.43% | 9.17% |
| SOL Wide Arithmetic | +0.22% | 0.15 | 20.24% | 6.92% |
| SOL ATR Adaptive | -31.56% | -2.18 | 37.82% | 19.42% |
| SOL Breakout-Reset | -3.86% | -0.16 | 26.63% | 7.51% |
| BTC Long Accumulation | -19.95% | -1.90 | 23.29% | 2.43% |
| BTC Short Distribution | +1.47% | 0.48 | 3.39% | 1.97% |
| Blue-Chip Portfolio | -22.61% | -1.41 | 29.62% | 11.96% |
Copy policies do not receive a performance backtest without a selected leader and a complete, timestamped leader history. Their published evidence is adapter normalization, direction handling, staleness checks, scaling, gross caps, per-symbol caps, and consensus tests. This avoids presenting an arbitrary leader as representative.
Requirements: Node.js 22 or newer and outbound access to the Pacifica public API.
npm test
npm run backtestnpm run backtest downloads mark-price candles and funding history directly
from Pacifica, runs the 55 historically testable strategies, prints a summary,
and rewrites results/backtests.json.
No account, wallet, API key, private key, or environment file is required for the test suite or historical simulations.
import { fetchHyperliquidSnapshot } from "./src/copy/adapters.mjs";
import { buildPositionMirrorProposal } from "./src/copy/policies.mjs";
const snapshot = await fetchHyperliquidSnapshot({
account: "0xLEADER_ACCOUNT",
});
const proposal = buildPositionMirrorProposal({
snapshot,
followerEquityUsd: 1_000,
copyRatio: 0.25,
maxGross: 0.75,
maxSymbolWeight: 0.25,
symbolMap: { BTC: "BTC", ETH: "ETH", SOL: "SOL" },
});
console.log(proposal); // review-only; no order is sentsrc/engine.mjs Pacifica data client, indicators, and P&L engine
src/strategies.mjs Original signals plus grid catalog export
src/grid/strategies.mjs Fifteen grid target-position implementations
src/copy/adapters.mjs Hyperliquid and Pacifica read-only source adapters
src/copy/policies.mjs Position, fill, and consensus copy policies
src/copy/catalog.mjs Seven copy-trading definitions
src/tradingview/ Thirty attributed clean-room research translations
src/catalog.mjs Complete 62-strategy catalog
scripts/run-backtests.mjs Reproducible result generator
results/backtests.json Committed metrics and weekly equity curves
test/ Catalog, adapter, and policy tests
- Hourly grid simulations do not reconstruct order-book queue position, passive fill probability, latency, or intrabar path ordering.
- Copy trading introduces source latency, symbol-mapping, leader liquidation, fee, leverage, and follower slippage differences.
- Hyperliquid exposes only a bounded recent fill history through the standard info API; Pacifica history is cursor-paginated. Completeness must be checked.
- Public leader performance can be survivorship-biased and may include deposits, withdrawals, subaccounts, hedges, or off-platform positions.
- A fixed historical window is not walk-forward validation and does not predict future profitability.
- TradingView-origin translations can differ materially from their Pine references because source code is not redistributed and Pacifica uses a different market, dataset, funding stream, execution model, and cost model.
No license is granted at this time. The repository is public for transparency and review; public visibility alone does not grant permission to copy, modify, or redistribute the code.