# Lune Aegis

## Overview

**Lune Aegis** is an advanced automated strategy that uses a multi-dimensional AI to analyze market behavior across different time horizons. It classifies the market into distinct regimes—such as trending or ranging—and adapts its logic accordingly. By creating a composite score from a wide range of market factors, **Lune Aegis** identifies robust trading opportunities and adjusts its parameters in real-time based on recent performance.

This dynamic approach makes it a powerful and versatile tool for traders who need a strategy that can intelligently adapt to shifting market conditions.

#### Key Features

* **Multi-Horizon Analysis:** The AI evaluates market data across short, medium, and long-term periods to build a comprehensive view of market dynamics.
* **Advanced Regime Detection:** Intelligently identifies the current market state and adjusts its signal logic to match the environment.
* **Multi-Factor Signal Scoring:** Generates signals based on a composite score derived from multiple layers of market analysis.
* **Performance-Based Adaptation:** Automatically fine-tunes its internal thresholds based on recent trade performance to optimize its behavior over time.
* **Full Automation Compatibility:** Integrates seamlessly with [Lune Auto Trader](broken://pages/CPnGv5FO8y4yofaBHnCx) for immediate and reliable trade execution.

## Backtested Strategy Settings

Easily find and use the best-performing strategy settings by simply copying and pasting from here:

* **Regular Backtests:** <https://www.lunetrading.com/lune-aegis-backtests>
* **Verified Deep Backtests:** <https://discord.com/channels/940718912738328586/1374499015982321786>

{% hint style="warning" %}
**CRITICAL: Replicating Results**

To achieve the exact results shown in our backtests, you must replicate the entire trading environment. Simply copying the strategy inputs is not enough. You must ensure the following match exactly:

1. **Symbol/Instrument:** Use the exact ticker and the correct exchange data feed.
2. **Chart Timeframe:** The chart interval must match the backtest (e.g., 5-minute vs 15-minute).
3. **Candle Type:** Ensure you are using Standard Candles. (Renko or Heikin Ashi will produce different results).
4. **Properties Settings:** Inside the strategy settings "Properties" tab, you must match the Initial Capital, Order Size, and Pyramiding settings.
5. **Session:** Verify if the chart is set to Regular Trading Hours (RTH) or Electronic Trading Hours (ETH).
6. **Data Range:** Our strategies are deeply backtested. If your chart does not load the same historical data range (start and end dates) as the original test, the cumulative results will differ.
   {% endhint %}

{% hint style="info" %}
These backtest results showcase optimized settings across a variety of symbols and market conditions. While the spreadsheets highlight specific equities or assets, the configurations themselves are **versatile and adaptable to any market**, including stocks, crypto, forex, indices, futures, and more.

Each setup is designed to help you quickly implement effective strategies without needing to build them from scratch.
{% endhint %}

## Features

Learn more about Lune Aegis's features.

{% content-ref url="/pages/XcmzVaQPXD6BQkiShpEl" %}
[Dashboard Settings](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/dashboard-settings.md)
{% endcontent-ref %}

{% content-ref url="/pages/5t3MH3HGpeAdOXfjZGtQ" %}
[Signal Settings](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/signal-settings.md)
{% endcontent-ref %}

{% content-ref url="/spaces/TeFPm92blTDzf9FQeqwk/pages/MhaxjBlHknBGk37mzs2v" %}
[Time & Sessions](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/time-and-sessions.md)
{% endcontent-ref %}

{% content-ref url="/pages/dOkRXxFJ3xueGTZ97QvA" %}
[Trade Management](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/trade-management.md)
{% endcontent-ref %}

{% content-ref url="/spaces/TeFPm92blTDzf9FQeqwk/pages/ts2ae9TsSd5QNnCxnZBx" %}
[Advanced Trade Exits](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/advanced-trade-exits.md)
{% endcontent-ref %}

## Alerts

Learn more about Lune Aegis's built-in alert system that allows users to receive multiple TradingView alerts with a single alert.

{% content-ref url="/pages/yXKG3VZxHSYKyM5JabtN" %}
[Alerts](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/alerts.md)
{% endcontent-ref %}

## Update Logs

Learn more about the changes, improvements, and bug fixes introduced to this strategy.

{% content-ref url="/pages/tQUayFJr5Mx7BuUpZliP" %}
[Update Logs](/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis/update-logs.md)
{% endcontent-ref %}

## How To Update

Learn how to update your TradingView strategy.

{% content-ref url="/pages/fK9mfEtYrzLNvMjdckkF" %}
[How To Update](/automated-tradingview-trading-strategies/how-to-update.md)
{% endcontent-ref %}


---

# 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://docs.lunefi.com/automated-tradingview-trading-strategies/lune-automated-strategies/lune-aegis.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.
