IsLongBlack ( int length );
Default values:
length: 20
Description
Returns 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.
Input parameters
Parameter | Default value | Description |
---|---|---|
length | 20 | Defines period on which average body height is calculated. |
Example
input length = 20;
def IsLongBlack = IsLongBlack(length);
plot TwoLongBlack = IsLongBlack[1] and
IsLongBlack;
TwoLongBlack.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
This example draws an arrow marking the last of two consecutive long bearish candles.