# KeyReversalDownAtSMA

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

KeyReversalDownAtSMA searches within a predefined number of periods to find a turning point with the following characteristics:

1 The current close is lower than the previous close 2 The current high is higher than or equal to the highest high within the last n periods 3 The current high has touched or breached an SMA

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), [*KeyReversalUpAtEMA*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversalupatema), [*KeyReversalDownAtEMA*](https://agenatrader.github.io/AgenaIndicator-documentation/indicators_oscillators/#keyreversaldownatema).

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

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

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

**double**

0 – No reversal formation found 1 – Reversal formation present

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

```csharp
KeyReversalDownAtSMA(int period, int SMAperiod)
KeyReversalDownAtSMA(IDataSeries inSeries, int period, int SMAperiod)
KeyReversalDownAtSMA(int period, int SMAperiod)[int barsAgo]
KeyReversalDownAtSMA(IDataSeries inSeries, int period, int SMAperiod)[int barsAgo]
```

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

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