NinjaScript > Language Reference > Data >

Falling()

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Checks for a falling condition which is true when the current value is less than the value of 1 bar ago.
 

Method Return Value

This method returns true if a falling condition is present; otherwise, false.

 

Syntax
Falling(IDataSeries series)

 
 

Parameters

series

Any DataSeries type object such as an indicator, Close, High, Low, etc...

 

 

Examples

// If the 20 period SMA is falling (in downtrend) go short
if (Falling(SMA(20)))
    EnterShort();