> For the complete documentation index, see [llms.txt](https://hyperalpha.gitbook.io/hyperalpha-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hyperalpha.gitbook.io/hyperalpha-docs/platform-features/hyperalpha-long-short-copy-trading.md).

# HyperAlpha Long/Short Copy-Trading

The L/S Copy Trading (Long/Short Sentiment) terminal on HyperAlpha (hyperalpha.org) is an institutional-grade routing gateway that programmatically fuses macro on-chain sentiment analytics with sub-second execution.

The foundational core of this module addresses a singular quantitative thesis: Distill market noise and weaponize collective crowd psychology. Instead of tracking isolated individual wallet profiles, allocators can instantly deploy comprehensive sentiment hedging and arbitrage strategies across high-liquidity digital assets (BTC, ETH, SOL, HYPE, etc.) by executing real-time macro ledger audits of aggregate position ratios, open interest volumes, and active participant densities across the entire Hyperliquid network.

### The Algorithmic Execution Logic Flow

$$\text{Asset Class Selection} \longrightarrow \text{Global Sentiment Audit (Pros vs Retail)} \longrightarrow \text{Equity Sizing Control} \longrightarrow \text{Secondary Smart Filtration} \longrightarrow \text{Initialize 24/7 Millisecond Clearing}$$

### 1. Global Multi-Chain Sentiment Auditing Matrix

Prior to initializing any directional exposure, the HyperAlpha core engine automatically polls full-node ledger data to generate a real-time on-chain "Health Check" of the designated asset, segmenting participants into two distinct behavioral matrixes:

#### HyperAlpha Macro Sentiment Game-Theory Matrix

🟢 Pro-Trader Sentiment (Smart Money): Real-time aggregation of elite whale accounts characterized by historical high win rates and minimal drawdowns. Exposes their raw \[Total Long/Short Volume] alongside the \[Active Address Long/Short Ratio].

\[Forward Mode]: Seamlessly mirrors the macro trajectories of verified market leaders, aligning your capital with institutional core trend volume.

🔴 Retail Sentiment (Dumb Money): Isolates the real-time order flows and position distributions of the high-drawdown retail crowd prone to chasing momentum tops or panic-selling bottoms, successfully refining high-entropy market noise.

\[Direct Mode] : Executes standard exposure that mirrors the structural positioning of the active retail consensus.

\[Reverse Mode (Strongly Recommended)]: Deploys advanced contrarian game theory. Fades retail exposure precisely as crowd sentiment triggers extreme multi-chain peaks (Fade the Retail). In perpetual derivatives, massive retail capitulation or unhedged FOMO operates as a premium counter-indicator with exceptional predictive alpha.

### 2. Immutable Non-Custodial Architecture & Margin Validation

* Absolute Asset Sovereignty: The interface is built on a 100% non-custodial layout, establishing a read-only telemetry link to display the 【Available Margin Balance】 fetched directly from your API-authorized Hyperliquid perpetual account.
* Execution Vector Mapping: All primary capital remains locked securely within Hyperliquid’s native smart contract layer. HyperAlpha functions strictly as an execution gateway, validating that your available clearing balance satisfies basic margin safety requirements before releasing the strategy to the ledger, eliminating pool counterparty vulnerabilities.

### 3. Dynamic Equity Sizing Algorithms & Primitive Leverage Caps

* Dynamic Sizing Coefficients (% of Total Equity): Permanently eradicates the margin gaps between disparate tasks caused by traditional fixed-amount allocation. HyperAlpha strictly calculates order sizes based on a Percentage of Total Equity. Consequently, your operational exposure automatically compounds during net asset expansion and down-scales proportionally during drawdowns, mathematically shielding your core balance.
* Primitive Leverage Matrix (Up to 40x): The terminal offers variable, seamless leverage adjustment that matches the native Hyperliquid protocol rules. Operators can micro-adjust their risk exposure barriers up to a maximum cap of 40x native leverage, depending entirely on their volatility parameters.

### 4. Intelligent Filters & Signal Invalidation Windows

* Smart Indicators Overlays: Allocators can choose to layer AI-driven quantitative filters—such as "Trend Following" or "Mean Reversion"—over raw sentiment feeds. Once active, even if a global market sentiment wave triggers a trade signal, the router will suppress the order unless Volatility parameters or Trend Strength indices satisfy precise mathematical thresholds, preventing capital erosion inside rangebound conditions.
* Signal Freshness Constraints (Time Range): Enforces a rigid life-cycle boundary on incoming trading intents. If a copy directive fails to achieve a confirmed status of "Filled" within your custom specified window due to rapid order-book spreads, the engine programmatically skips and discards the stale signal, preventing your portfolio from chasing entries.

### 5. Emotional Eradication: Ironclad Automated Trailing Guardrails

To completely detach greed, hesitation, and panic from the capital lifecycle, every macro sentiment strategy must run under the absolute discipline of hard-coded execution limits, featuring fully automated Trailing Take-Profit and Stop-Loss (Trailing TP/SL) protocols:

* Trailing Take-Profit (Trailing TP %): Once your position's floating ROE touches your designated activation milestone, the trailing chronometer awakens. As long as the one-way momentum expands, the profit boundary scales up continuously. The exact millisecond the asset retraces by your specified ratio from its absolute local peak, the engine triggers a forced market exit, locking down maximal floating alpha.
* Fixed / Trailing Stop-Loss (SL %): A hard-coded, zero-tolerance programmatic discipline that cuts toxic exposure during sudden macro trend reversals, maintaining the fundamental capital integrity of your terminal profile at all costs.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hyperalpha.gitbook.io/hyperalpha-docs/platform-features/hyperalpha-long-short-copy-trading.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
