IsLongBlack ( int length);
true for the current candle if:
- its close price is lower than its open price;
- its body is longer than either of the shadows;
- its body is longer than the average body size calculated for the specified number of preceding candles.
|length||20||Defines period on which average body height is calculated.|
input length = 20;
def IsLongBlack = IsLongBlack(length);
plot TwoLongBlack = IsLongBlack and
This example draws an arrow marking the last of two consecutive long bearish candles.