> For the complete documentation index, see [llms.txt](https://indicators.agenatrader.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://indicators.agenatrader.com/standard-indicators/keyreversalupatema.md).

# KeyReversalUpAtEMA

#### Description <a href="#description_46" id="description_46"></a>

KeyReversalUpAtEMA searches within a predefined number of periods to find a reversal formation with the following characteristics:

1 The current close is higher than the previous close 2 The current low is smaller than or equal to the lowest low within the last n bars 3 The current low has touched or breached an EMA

See [*KeyReversalUp*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversalup), [*KeyReversalDown*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversaldown), [*KeyReversalUpAtSMA*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversalupatsma), [*KeyReversalDownAtSMA*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversaldownatsma), [*KeyReversalDownAtEMA*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversaldownatema).

#### Parameters <a href="#parameters_41" id="parameters_41"></a>

inSeries Input data series for the indicator period Number of bars included in the calculations EMAperiod Number of periods included in the EMA calculation

#### Return value <a href="#return-value_46" id="return-value_46"></a>

**double**

0 – No reversal information found 1 – Reversal information found

#### Usage <a href="#usage_47" id="usage_47"></a>

```csharp
KeyReversalUpAtEMA(int period, int EMAperiod)
KeyReversalUpAtEMA(IDataSeries inSeries, int period, int EMAperiod)
KeyReversalUpAtEMA(int period, int EMAperiod)[int barsAgo]
KeyReversalUpAtEMA(IDataSeries inSeries, int period, int EMAperiod)[int barsAgo]
```

#### Example <a href="#example_45" id="example_45"></a>

```csharp
// Search for a long entry
if (KeyReversalUpAtEMA(10)[0] == 1)
Print("A long reversal formation has occurred.");
```


---

# 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://indicators.agenatrader.com/standard-indicators/keyreversalupatema.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.
