Definition
Checks for a cross below condition over the specified bar look back period.
Method Return Value
This method returns true if a cross above condition occured; otherwise, false.
Syntax
CrossBelow(IDataSeries series1, double value, int lookBackPeriod)
CrossBelow(IDataSeries series1, IDataSeries series2, int lookBackPeriod)
Parameters
lookBackPeriod
|
Number of bars back to check the cross above condition
|
series1 & series2
|
Any DataSeries type object such as an indicator, Close, High, Low, etc...
|
value
|
Any double value
|
Examples
if (CrossBelow(CCI(14), -250, 1))
EnterLong();
if (CrossBelow(EMA(10), EMA(20), 1))
EnterShort();
if (Close[0] < Open[0] && CrossBelow(EMA(10), EMA(20), 5))
EnterShort();
|
|
|