IsRising()

View as Markdown

Definition

Evaluates a rising condition which is true when the current value is greater than the value of 1 bar ago.

Method Return Value

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

Syntax

IsRising(ISeries\<double\> series)

Parameters

ParameterDescription
seriesAny Series<double> type object such as an indicator, Close, High, Low, etc…

Examples

1protected override void OnBarUpdate()
2{
3 // If the 20 period SMA is rising (in uptrend) go long
4 if (IsRising(SMA(20)))
5 EnterLong();
6}