KeyReversalUpAtEMA

Description

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, KeyReversalDown, KeyReversalUpAtSMA, KeyReversalDownAtSMA, KeyReversalDownAtEMA.

Parameters

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

double

0 – No reversal information found 1 – Reversal information found

Usage

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

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

Last updated