and
Logical AND
and(left, right)
Parameters
| Name | Type | Description |
|---|---|---|
left |
bool | First boolean operand |
right |
bool | Second boolean operand |
Formula
result = (left AND right)
Examples
// price up and volume above average
and(close > open, volume > sma(volume, 20));
Returns
bool
Notes
Internal logical operator. Returns TRUE when both left and right are true, FALSE otherwise.