# KeyReversalDownAtEMA

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

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

1 The current close is lower than the previous close 2 The current high is larger than or equal to the highest high of the last n bars 3 The current high 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), [*KeyReversalUpAtEMA*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversalupatema).

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

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

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

**double**

0 – No reversal formation found

1 – Reversal formation found

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

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

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

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


---

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