IsLongWhite ( int length);
true for the current candle if:
- Its Close price is higher than the Open price;
- Its body is longer than each shadow;
- 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 IsLongWhite = IsLongWhite(length);
plot TwoLongWhite = IsLongWhite and
This example draws an arrow marking the last of two consecutive long bullish candles.