# Signal Settings

## Overview

The **Signal Settings** for Lune Aegis allow you to control the generation and behavior of trade entry signals. These settings provide a high degree of customization, letting you fine-tune the strategy’s responsiveness by leveraging an advanced, AI-driven engine. By configuring the analysis windows and adjusting sensitivity, you can tailor the signal logic to fit your specific trading style and the market you are analyzing.

### Signal Generation Logic

To protect our proprietary algorithms, the exact mechanics of the signal logic are not disclosed. However, the conceptual approach can be understood as follows:

Lune Aegis uses a sophisticated, multi-dimensional AI model to identify trading opportunities. The strategy analyzes a wide range of market characteristics—such as price momentum, volatility, and market efficiency—across multiple time horizons. It then classifies the market into distinct regimes (e.g., trending, ranging, high volatility) to better understand the current environment.

The AI calculates a composite signal score based on the agreement of these different factors. This score is then adjusted based on the identified market regime and recent strategy performance, allowing the model to adapt to changing conditions. This adaptive approach ensures the signal logic remains effective and relevant. All signals are confirmed on the close of a price bar to ensure they do not repaint.

## Settings

The following settings control the core logic of the signal engine.

### **General Settings**

| Setting          | Description                                                 |
| ---------------- | ----------------------------------------------------------- |
| **Long Trades**  | Enables or disables the generation of long (buy) signals.   |
| **Short Trades** | Enables or disables the generation of short (sell) signals. |

### AI & Sensitivity

These settings define how the AI analyzes the market and its overall responsiveness.

| Setting                         | Description                                                                                                                                                                                               | Range / Recommended                                                                                     |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| **Signal Sensitivity**          | Controls the overall responsiveness and frequency of signals. Lower values are more sensitive and produce more signals, while higher values provide stronger filtering for fewer, higher-quality signals. | <ul><li><strong>Range:</strong> 0.1 - 5.0</li><li><strong>Recommended:</strong> 1.0 - 3.0</li></ul>     |
| **Signal Confidence Threshold** | The minimum required signal confidence for a trade entry. A higher value requires stronger confirmation from the AI before a signal is generated.                                                         | <ul><li><strong>Range:</strong> 0.01 - 0.99</li><li><strong>Recommended:</strong> 0.6 - 0.8</li></ul>   |
| **Learning Rate**               | Controls how quickly the AI model adapts to new market data. Lower values result in slower, more stable adaptation.                                                                                       | <ul><li><strong>Range:</strong> 0.01 - 0.20</li><li><strong>Recommended:</strong> 0.03 - 0.10</li></ul> |
| **Analysis Lookback Window**    | Sets the size of the sliding data window the AI model uses for its analysis. A shorter window adapts faster to recent market changes.                                                                     | <ul><li><strong>Range:</strong> 5 - 2000</li><li><strong>Recommended:</strong> 300 - 800</li></ul>      |
| **Regime Detection Lookback**   | Sets the lookback window for market regime analysis and classification. A lower value is more responsive to regime changes.                                                                               | <ul><li><strong>Range:</strong> 5 - 2000</li><li><strong>Recommended:</strong> 30 - 100</li></ul>       |
| **Volatility Lookback**         | Sets the lookback window for volatility calculations and analysis. A lower value is more responsive to short-term volatility changes.                                                                     | <ul><li><strong>Range:</strong> 5 - 2000</li><li><strong>Recommended:</strong> 15 - 50</li></ul>        |

## Best Practices & Usage

* **Balance Sensitivity and Confirmation:** Lowering Signal Sensitivity will generate more signals but may also increase the number of false positives. Higher values provide stronger confirmation but may result in fewer trading opportunities. Find a balance that suits your risk tolerance.
* **Adjust Lookbacks for Your Timeframe:** If you are trading on a lower timeframe, consider using shorter Lookback periods to make the strategy more responsive. For higher timeframes, longer Lookback periods can provide more stable and reliable signals.
* **Start with Recommended Values:** The recommended values provide a solid starting point for most markets. Use them as a baseline and then carefully adjust them based on the specific asset and timeframe you are trading.
* **Tune One Thing at a Time:** When optimizing the settings, adjust only one parameter at a time. This will help you clearly understand the effect of each change on the strategy's performance during backtesting.


---

# 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/signal-settings.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.
