rising (vars Data) : bool

falling (vars Data) : bool

Determines if a series rises or falls, i.e. if Data[0] is above or below Data[1].

Parameters:

Data Data series.

Returns:

true if the series rises or falls, false otherwise.

Modifies

rMomentum - Data movement in percent per time frame; indicates the 'speed' of the rising or falling.

Remarks:

Example:

function run()
{
  ...
  vars Price = series(price());
  if(rising(Price)) 
    enterLong();
  else
    exitLong();
}

See also:

crossOver/Under, peak/valley, risingF/fallingF, series

► latest version online