# Copilot

Trading Copilot is an AI assistant that analyzes market conditions and generates structured trade signals for perpetual trading on Lighter and Hyperliquid. You review the signal (entry price, take-profit, and stop-loss) and execute with one click. You remain in control of every trade.

Access Trading Copilot at: [copilot.minara.ai](https://copilot.minara.ai)

{% hint style="danger" %}
**Leveraged trading carries risk of total loss.** Copilot signals are suggestions, not guarantees. Each trade uses leverage, and positions can be liquidated when the price moves against you. Read [Liquidations](/docs/reference/liquidations.md) and [Margin & leverage](/docs/reference/margin-and-leverage.md) before executing your first signal.
{% endhint %}

***

## 1. How Copilot generates signals

When you click **Ask Long** or **Ask Short**, Copilot evaluates the following inputs and produces a structured trade plan:

**Market structure and price action**

* Multi-timeframe candlestick data matched to your selected trading style
* Trend direction, volatility structure, key price levels
* Technical indicators: EMA, RSI, MACD

**Order book and liquidity**

* Real-time order book depth
* Bid/ask imbalance and recent trade flow

**Derivatives market signals**

* Funding rate history and direction
* Open interest changes
* Positioning dynamics from derivatives data

**Risk filtering**

Before presenting a signal, Copilot filters out setups with unfavorable risk-to-reward ratios, insufficient stop-loss buffers, or structurally invalid risk parameters.

The output includes:

* Trade direction: Long, Short, or Neutral
* Suggested entry price, take-profit (TP), and stop-loss (SL)
* Brief explanation of the signal rationale

<figure><img src="/files/jwBLgZShoPuBmDQL6iJZ" alt=""><figcaption></figcaption></figure>

***

## 2. Signal parameters you control

**Trading style**: determines the timeframe Copilot focuses on:

* `Scalping`: 3-minute chart, short in-and-out trades
* `Day`: 15-minute chart, same-day entries and exits
* `Swing`: 4-hour chart, positions held days to weeks

**Strategy**: determines the type of setup Copilot looks for:

* `Max Gain`: high reward-to-risk setups with strong backtest upside; fewer trades, larger moves
* `Max Win Rate` *(coming soon)*: higher-probability setups with more flexible entry conditions

**Initial margin**: your default margin amount for quick orders. Does not affect signal output.

***

## 3. Supported assets

Copilot generates signals for perpetuals available on Lighter and Hyperliquid. This includes:

* Crypto: Bitcoin (BTC), Ethereum (ETH), Solana (SOL), and hundreds of other tokens
* Commodities: gold (XAU), silver (SILVER), crude oil
* Stocks: Apple (AAPL), Tesla (TSLA), NVIDIA (NVDA), Amazon (AMZN), Microsoft (MSFT), and other major US equities

***

## 4. Infrastructure

Minara does not provide liquidity or act as a counterparty. Perpetual trades execute on Lighter or Hyperliquid, depending on which wallet you use. Pricing, leverage, funding rates, and liquidity come from the underlying exchange. Minara is the AI interface and execution layer on top.

***

## 5. Deposit and transfer funds

Before trading, you need funds in a Lighter or Hyperliquid perps wallet. See [Deposit](/docs/get-started/deposit.md) for creating a wallet, depositing USDC, and transferring funds between wallets including across the two exchanges.

***

## 6. Executing a trade

Once Copilot generates a signal, it pre-fills a limit order with the suggested entry, take-profit, and stop-loss. Before confirming, you can adjust:

* Leverage
* Initial margin

Place the order with one click. Manual market and limit orders are also available for advanced users.

***

## 7. Managing open positions

**Close all positions**: closes all open positions at market price (requires confirmation).

**Manual close**: close individual positions via market or limit order.

**Set take-profit and stop-loss on open positions:**

Go to Trade > Positions, select a position, and click "Add":

<figure><img src="/files/ZgCv1O6FnlF8eUQro09a" alt=""><figcaption></figcaption></figure>

Set TP and/or SL values, optionally add split targets, then confirm:

<figure><img src="/files/1at9BmY3TtKh3cr8b6bt" alt=""><figcaption></figcaption></figure>

Your take-profit and stop-loss are now active on the position:

<figure><img src="/files/9zJzKUH1MBljhdIS30ny" alt=""><figcaption></figcaption></figure>

Realized PnL updates immediately after execution.

***

## 8. Open order management

You can cancel individual pending orders or use **Cancel All Orders** to clear everything at once.

***

## 9. Margin mode

Copilot supports both margin modes:

* `Cross margin`: all positions share the same margin balance
* `Isolated margin`: margin is isolated per position

Switch margin modes directly in the trading interface.


---

# Agent Instructions: 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://minara.ai/docs/trade/trading-copilot.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.
