ANY

Syntax

CrossingDirection.ANY

Description

Defines the change of relation of two values in the Crosses function irrespective of its direction.

Example

plot avg = Average(close, 10);
plot crossing = Crosses(close, avg, CrossingDirection.ANY);
crossing.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);

This code marks the bars at which the Close price becomes greater or less than its 10 period average.