Syntax
CrossingDirection.ABOVE
Description
This constant is used with the Crosses
function to find when the first value becomes greater than the second.
Note that this constant can be replaced with reserved word yes
.
Example
plot avg = Average(close, 10);
plot crossing = Crosses(close, avg, CrossingDirection.ABOVE);
crossing.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
This code marks the bars at which the Close price gets higher than its 10 period average.