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